Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chore/gracefully handle large text or json in table editor #26792

Merged

Conversation

joshenlim
Copy link
Member

@joshenlim joshenlim commented May 27, 2024

Currently setting the limit for max characters we allow to render in the dashboard to be at 10Kb, although happy to debate what that number should be (I think it can be higher)

Within the grid, if the cell value is beyond the threshold:
image

Clicking load will then attempt to load the whole value:
image

Likewise within the side panel:
If the value is too large, the input field itself is disabled - CTA to edit via expanding the editor
image

Side note: updated the actions here to be behind a dropdown so it takes up less real estate
image

Same UX:
image

@joshenlim joshenlim requested a review from a team as a code owner May 27, 2024 11:05
Copy link

vercel bot commented May 27, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
studio-staging ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 29, 2024 8:10am
6 Ignored Deployments
Name Status Preview Comments Updated (UTC)
database-new ⬜️ Ignored (Inspect) May 29, 2024 8:10am
design-system ⬜️ Ignored (Inspect) Visit Preview May 29, 2024 8:10am
docs ⬜️ Ignored (Inspect) Visit Preview May 29, 2024 8:10am
studio ⬜️ Ignored (Inspect) Visit Preview May 29, 2024 8:10am
studio-self-hosted ⬜️ Ignored (Inspect) Visit Preview May 29, 2024 8:10am
zone-www-dot-com ⬜️ Ignored (Inspect) Visit Preview May 29, 2024 8:10am

Copy link

supabase bot commented May 27, 2024

No changes detected in supabase directory.
This pull request has been ignored for the connected project xguihxuzqibwxjnimxev due to its connection settings.
Go to Project Integrations Settings ↗︎ in order to change this behavior.


Branching Preview Branches by Supabase.
Learn more about Supabase for Git ↗︎.

Copy link

…tor' of github.com:supabase/supabase into chore/gracefully-handle-large-text-or-json-in-table-editor
Copy link
Member

@alaister alaister left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@joshenlim joshenlim merged commit 0a0f226 into master May 29, 2024
15 checks passed
@joshenlim joshenlim deleted the chore/gracefully-handle-large-text-or-json-in-table-editor branch May 29, 2024 09:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants