René's URL Explorer Experiment


Title: feat(tables): autosave persisted default views by j15z · Pull Request #6724 · simstudioai/sim · GitHub

Open Graph Title: feat(tables): autosave persisted default views by j15z · Pull Request #6724 · simstudioai/sim

X Title: feat(tables): autosave persisted default views by j15z · Pull Request #6724 · simstudioai/sim

Description: Summary This first PR in a two-layer table-views stack replaces the unsaved "All" state for new tables with a persisted "Default" view. When table-views is enabled, filter, sort, column visibility, and layout changes autosave to the active view, and returning to a table restores the saved default configuration. Existing tables without a persisted view keep the legacy "All" fallback; this PR intentionally adds no backfill migration. Workspace forks now copy every saved table view, and a copied legacy table receives a persisted "Default" view seeded from its current table configuration so the fork preserves what users see. Initial hydration preserves a deep-linked sort and queues filter, sort, or hidden-column gestures made before the views query identifies their owner. A stale table-view URL adopts the real default before pending layout is resolved, so an early resize is never written to the legacy table metadata under the wrong owner. Upgrading a legacy All URL to the persisted default also preserves and flushes any local work completed during hydration. Layout and hidden-column metadata written while the flag was off remains the baseline for fields an ungated Default view has not stored yet, and early layout gestures are saved to the owner chosen during hydration. Same-view autosave echoes use order-insensitive structural equality to skip an identical filter instead of remounting the editor and wiping an in-progress draft. A newly created blank view stays blank while its query-cache row and URL selection catch up, and deleting a sorted column removes the dead sort from both the URL and persisted view. The current default cannot be deleted from the Views menu; another view must become default first, so the table always retains an autosave owner. The feature flag remains a UI gate: view controls, fetching, hydration, and autosave stay behind table-views in both table-detail and embedded surfaces. The routes and persistence layer remain available by design, and new or forked tables create/copy view rows even while the flag is off so rollout state survives toggles. With the flag off, users continue to get the legacy Filter/Sort behavior. The child PR, #6725, adds default-view selection and refines the view, column, and filter controls. Type of Change Bug fix New feature Breaking change Documentation Other: ___________ Testing Five focused view-menu, view-state, service, query-hook, and workspace-fork suites: 104 tests passed. bun run lint and bun run lint:check bun run check:audits (30 repository policy audits) bun run type-check (26 package tasks) bun run apps/sim/scripts/check-block-registry.ts origin/staging bun run check:migrations origin/staging Review focus: default-view creation stays transactional with table creation, hydration cannot rewind early local work, concurrent view updates merge configuration patches without losing newer state, and workspace forks preserve persisted and legacy table configurations. Checklist Code follows project style guidelines Self-reviewed my changes Tests added/updated and passing No new warnings introduced I confirm that I have read and agree to the terms outlined in the Contributor License Agreement (CLA) Screenshots/Videos Not included. Automated tests cover default selection, reload hydration, autosave behavior, and workspace-fork preservation. Post-Deploy Monitoring & Validation For 24 hours, monitor table creation, workspace-fork, and table-view create/update errors for new 4xx or 5xx responses. Validate that a newly created table has exactly one "Default" view and that filter, sort, and layout changes survive navigation and reload. Validate that forked tables preserve their saved views and that a legacy table without views receives one persisted default in the fork. Treat repeated save-error toasts, missing or duplicate default views, or restored stale configuration as rollback triggers. Owner: Tables feature maintainers. Roll back this PR if the creation, fork, or persistence error rate increases materially.

Open Graph Description: Summary This first PR in a two-layer table-views stack replaces the unsaved "All" state for new tables with a persisted "Default" view. When table-views is enabled, filter, sort...

X Description: Summary This first PR in a two-layer table-views stack replaces the unsaved "All" state for new tables with a persisted "Default" view. When table-views is enabl...

Opengraph URL: https://github.com/simstudioai/sim/pull/6724

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:ef6554aa-4b1a-11d2-a367-dc2a293f5ef3
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idB166:2F4711:6F7265:9CEB33:6AFB67C4
html-safe-noncecd9ee74939f48d11b8079a3cf2b964dd93fe43d7cfad922bac06485d99702851
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMTY2OjJGNDcxMTo2RjcyNjU6OUNFQjMzOjZBRkI2N0M0IiwidmlzaXRvcl9pZCI6IjM1MzM1NDQzNzE1OTQ2ODQzNTciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac7bbbbda15a38c316bdd73cefc17c7bf3db3e8c51a6eec66bc9dee6c783f8a699
hovercard-subject-tagpull_request:4284471340
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/simstudioai/sim/pull/6724/files
twitter:imagehttps://avatars.githubusercontent.com/u/96924014?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/96924014?s=400&v=4
og:image:altSummary This first PR in a two-layer table-views stack replaces the unsaved "All" state for new tables with a persisted "Default" view. When table-views is enabled, filter, sort...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Noneea33d13c96d0ff66bd8fa906b193d2213536b78cb06b0c50a4632c58b1418f94
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/simstudioai/sim git https://github.com/simstudioai/sim.git
octolytics-dimension-user_id199344406
octolytics-dimension-user_loginsimstudioai
octolytics-dimension-repository_id912559512
octolytics-dimension-repository_nwosimstudioai/sim
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id912559512
octolytics-dimension-repository_network_root_nwosimstudioai/sim
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release59ef97164c52cf59bd10558ddec9c4f482763988
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/simstudioai/sim/pull/6724/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fpull%2F6724%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fpull%2F6724%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=simstudioai%2Fsim
Reloadhttps://github.com/simstudioai/sim/pull/6724/files
Reloadhttps://github.com/simstudioai/sim/pull/6724/files
Reloadhttps://github.com/simstudioai/sim/pull/6724/files
simstudioaihttps://github.com/simstudioai
simhttps://github.com/simstudioai/sim
Codehttps://github.com/simstudioai/sim
Issues129 (129)https://github.com/simstudioai/sim/issues
Pull requests197 (197)https://github.com/simstudioai/sim/pulls
Actionshttps://github.com/simstudioai/sim/actions
Projectshttps://github.com/simstudioai/sim/projects
Security and qualityhttps://github.com/simstudioai/sim/security
Insightshttps://github.com/simstudioai/sim/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fsimstudioai%2Fsim%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fsimstudioai%2Fsim%2Fissues%2Fnew%2Fchoose
j15zhttps://github.com/j15z
staginghttps://github.com/simstudioai/sim/tree/staging
feat/better-table-views-uxhttps://github.com/simstudioai/sim/tree/feat/better-table-views-ux
Conversation 47 https://github.com/simstudioai/sim/pull/6724
Commits 9 https://github.com/simstudioai/sim/pull/6724/commits
Checks 29 https://github.com/simstudioai/sim/pull/6724/checks
Files changed https://github.com/simstudioai/sim/pull/6724/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/6724/files
feat(tables): autosave persisted default views https://github.com/simstudioai/sim/pull/6724/files#top
Show all changes 9 commits https://github.com/simstudioai/sim/pull/6724/files
0c86b21 feat(tables): autosave persisted default views j15z Aug 15, 2026 https://github.com/simstudioai/sim/pull/6724/commits/0c86b21f887a08bf1c16bd3316fa28d3ee691408
42eac75 fix(tables): close persisted view lifecycle gaps j15z Aug 19, 2026 https://github.com/simstudioai/sim/pull/6724/commits/42eac75ed1cc564f5bc2d899f12390a8fe7f7b2b
742852b fix(tables): preserve edits through view hydration j15z Aug 19, 2026 https://github.com/simstudioai/sim/pull/6724/commits/742852bf4be06dd6554445fb590a2bb89858be4d
c07a07d fix(tables): preserve the persisted default owner j15z Aug 20, 2026 https://github.com/simstudioai/sim/pull/6724/commits/c07a07dfe534587701ae49746c933cf220256c6f
daefc28 fix(tables): preserve legacy layout through view adoption j15z Aug 20, 2026 https://github.com/simstudioai/sim/pull/6724/commits/daefc287753ca21ab7172f5296c76e81a40ad5db
03a4e49 fix(tables): close final view autosave races j15z Aug 20, 2026 https://github.com/simstudioai/sim/pull/6724/commits/03a4e4944f21ce43134640b0f1c56e0852750c25
39c9bc8 fix(tables): preserve valid saved sort on stale links j15z Aug 20, 2026 https://github.com/simstudioai/sim/pull/6724/commits/39c9bc89e406d3e32c9cfeb47bcfcf3e0a878c2e
2a379fa fix(tables): make the first saved view the default j15z Aug 20, 2026 https://github.com/simstudioai/sim/pull/6724/commits/2a379fa4c32ad87158a9c6fe1342cadbd3341e90
79e6451 fix(tables): refuse to delete a table's last saved view j15z Aug 20, 2026 https://github.com/simstudioai/sim/pull/6724/commits/79e6451387e0b7ff2922e73767e175d6011a13fb
Clear filters https://github.com/simstudioai/sim/pull/6724/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/6724/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/6724/files
route.ts https://github.com/simstudioai/sim/pull/6724/files#diff-a1c55acbf2750eb4ac1e57c007d8c8fc516a76608cffd346ee652533fd2a3e6e
save-view-modal.tsx https://github.com/simstudioai/sim/pull/6724/files#diff-bc99d41d524d60dd40ad6a77a2b781b4020095b1643c9d33ebb5a8ca15ba6b28
views-menu.test.tsx https://github.com/simstudioai/sim/pull/6724/files#diff-5a33ef7a9970993a8b81720c22105296080a38f01399e07225deaf4d363b5a13
views-menu.tsx https://github.com/simstudioai/sim/pull/6724/files#diff-a15e422746a146cf8c23adeb9435aa1af4849ae0b55d00d6d17a05481fea098e
table.tsx https://github.com/simstudioai/sim/pull/6724/files#diff-5a65d49f1fb75a42db9178db41caa5cb9bf776a547ab82822e99a13bd51a1669
view-state.test.ts https://github.com/simstudioai/sim/pull/6724/files#diff-a11f0de5501e688df1bc0bf64e901e2ddbc9ca166a82415618925a068c08e5b5
view-state.ts https://github.com/simstudioai/sim/pull/6724/files#diff-b9bbed92b5a225076086a5ef04bea9baa94de627a1808111e0387873378fbf3c
copy-resources.test.ts https://github.com/simstudioai/sim/pull/6724/files#diff-963c6ff31e66e98956f6635d910841a48e456cf551f33319f6f1dfc6e9789287
copy-resources.ts https://github.com/simstudioai/sim/pull/6724/files#diff-8090f65dbd57000145cea8bb14673ad7008ab9c9bf550c267d736e4abf3c7ffb
tables.test.ts https://github.com/simstudioai/sim/pull/6724/files#diff-e8f0c479945a05fcd2f89070b6e2fca86b6227403b80903c5e4f8e9b5bafe28d
tables.ts https://github.com/simstudioai/sim/pull/6724/files#diff-1d761ed5a7a2ed9ba4435d0f39c5f1f7ac13c177b301c401b38f5a6d731ac8cb
tables.ts https://github.com/simstudioai/sim/pull/6724/files#diff-927ba827479bb6f5c0c9cee9dfe1067112e939610060f6a1e939f232b976257d
views.ts https://github.com/simstudioai/sim/pull/6724/files#diff-931d7e08dcbb0ebe1d2fb9b0e24a9cf741282555e877e33f1646905a41c5c7ad
constants.ts https://github.com/simstudioai/sim/pull/6724/files#diff-3789ef10f28c4ed64a7728377279f3fb4f153bc42fb87c1db3405e79ee97fcf5
service.test.ts https://github.com/simstudioai/sim/pull/6724/files#diff-2fd49bbd808f68441079cc4f5d97eaa321ab62a7f9dcb868ecbe1ac38152efb7
service.ts https://github.com/simstudioai/sim/pull/6724/files#diff-691e9b1dc59be0015a1be5ea6189899b241d4e979a8b40e088dd7d722cfaadb6
service.test.ts https://github.com/simstudioai/sim/pull/6724/files#diff-7d21d57a91b6c5b8f98425683f7061e6227504327b8a033f614186e4df66e7c0
service.ts https://github.com/simstudioai/sim/pull/6724/files#diff-928a7c643e9b74a68c200d1f12c973f3602126a07a2d86c9cb7a92339609b822
schema.ts https://github.com/simstudioai/sim/pull/6724/files#diff-9a959e2ce3cb4c86957bbae021d06eae364f7b0cb18964f5873bab53220af928
apps/sim/app/api/table/[tableId]/views/[viewId]/route.tshttps://github.com/simstudioai/sim/pull/6724/files#diff-a1c55acbf2750eb4ac1e57c007d8c8fc516a76608cffd346ee652533fd2a3e6e
View file https://github.com/simstudioai/sim/blob/79e6451387e0b7ff2922e73767e175d6011a13fb/apps/sim/app/api/table/%5BtableId%5D/views/%5BviewId%5D/route.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/6724/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/6724/files#diff-a1c55acbf2750eb4ac1e57c007d8c8fc516a76608cffd346ee652533fd2a3e6e
https://github.com/simstudioai/sim/pull/6724/files#diff-a1c55acbf2750eb4ac1e57c007d8c8fc516a76608cffd346ee652533fd2a3e6e
...p/workspace/[workspaceId]/tables/[tableId]/components/save-view-modal/save-view-modal.tsxhttps://github.com/simstudioai/sim/pull/6724/files#diff-bc99d41d524d60dd40ad6a77a2b781b4020095b1643c9d33ebb5a8ca15ba6b28
View file https://github.com/simstudioai/sim/blob/79e6451387e0b7ff2922e73767e175d6011a13fb/apps/sim/app/workspace/%5BworkspaceId%5D/tables/%5BtableId%5D/components/save-view-modal/save-view-modal.tsx
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/6724/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/6724/files#diff-bc99d41d524d60dd40ad6a77a2b781b4020095b1643c9d33ebb5a8ca15ba6b28
https://github.com/simstudioai/sim/pull/6724/files#diff-bc99d41d524d60dd40ad6a77a2b781b4020095b1643c9d33ebb5a8ca15ba6b28
https://github.com/simstudioai/sim/pull/6724/files#diff-bc99d41d524d60dd40ad6a77a2b781b4020095b1643c9d33ebb5a8ca15ba6b28
https://github.com/simstudioai/sim/pull/6724/files#diff-bc99d41d524d60dd40ad6a77a2b781b4020095b1643c9d33ebb5a8ca15ba6b28
...im/app/workspace/[workspaceId]/tables/[tableId]/components/views-menu/views-menu.test.tsxhttps://github.com/simstudioai/sim/pull/6724/files#diff-5a33ef7a9970993a8b81720c22105296080a38f01399e07225deaf4d363b5a13
View file https://github.com/simstudioai/sim/blob/79e6451387e0b7ff2922e73767e175d6011a13fb/apps/sim/app/workspace/%5BworkspaceId%5D/tables/%5BtableId%5D/components/views-menu/views-menu.test.tsx
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/6724/{{ revealButtonHref }}
apps/sim/app/workspace/[workspaceId]/tables/[tableId]/components/views-menu/views-menu.tsxhttps://github.com/simstudioai/sim/pull/6724/files#diff-a15e422746a146cf8c23adeb9435aa1af4849ae0b55d00d6d17a05481fea098e
View file https://github.com/simstudioai/sim/blob/79e6451387e0b7ff2922e73767e175d6011a13fb/apps/sim/app/workspace/%5BworkspaceId%5D/tables/%5BtableId%5D/components/views-menu/views-menu.tsx
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/6724/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/6724/files#diff-a15e422746a146cf8c23adeb9435aa1af4849ae0b55d00d6d17a05481fea098e
https://github.com/simstudioai/sim/pull/6724/files#diff-a15e422746a146cf8c23adeb9435aa1af4849ae0b55d00d6d17a05481fea098e
https://github.com/simstudioai/sim/pull/6724/files#diff-a15e422746a146cf8c23adeb9435aa1af4849ae0b55d00d6d17a05481fea098e
https://github.com/simstudioai/sim/pull/6724/files#diff-a15e422746a146cf8c23adeb9435aa1af4849ae0b55d00d6d17a05481fea098e
https://github.com/simstudioai/sim/pull/6724/files#diff-a15e422746a146cf8c23adeb9435aa1af4849ae0b55d00d6d17a05481fea098e
https://github.com/simstudioai/sim/pull/6724/files#diff-a15e422746a146cf8c23adeb9435aa1af4849ae0b55d00d6d17a05481fea098e
https://github.com/simstudioai/sim/pull/6724/files#diff-a15e422746a146cf8c23adeb9435aa1af4849ae0b55d00d6d17a05481fea098e
https://github.com/simstudioai/sim/pull/6724/files#diff-a15e422746a146cf8c23adeb9435aa1af4849ae0b55d00d6d17a05481fea098e
Please reload this pagehttps://github.com/simstudioai/sim/pull/6724/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/6724/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.