René's URL Explorer Experiment


Title: improvement(settings): make workspace settings navigation feel instant by waleedlatif1 · Pull Request #6964 · simstudioai/sim · GitHub

Open Graph Title: improvement(settings): make workspace settings navigation feel instant by waleedlatif1 · Pull Request #6964 · simstudioai/sim

X Title: improvement(settings): make workspace settings navigation feel instant by waleedlatif1 · Pull Request #6964 · simstudioai/sim

Description: Summary Switching workspace settings tabs ran four sequential round-trips with no visual feedback — a cold RSC request, the panel render, the section's lazy chunk, then its queries. The heading was pushed up from the section body via a layout effect, so the most static thing on the page arrived last and visibly blanked between sections. Resolve the heading in the route layout from the section's navigation entry, so it renders with the shell instead of after the body's chunk. One shared resolver normalizes a [section] segment for the layout, the access gate and generateMetadata. Decide segment validity in the layout too, above the loading boundary. Inside a Suspense boundary notFound()/redirect() can no longer set the response status, so a legacy or unknown settings URL loaded directly would answer 200 and redirect in a second round trip. Deciding it above the boundary keeps the 404 and the 307 — and it is where segment-level routing belonged anyway. Add loading.tsx. Without it the App Router holds the outgoing section on screen until the gate resolves, so a click reads as a dead click. It is also what makes the prefetch worth anything: with no loading boundary in the subtree the scheduler skips the segment request entirely. Prefetch the route payload on sidebar hover/focus. The rows are buttons so leaving a dirty section runs the unsaved-changes guard, which costs them Next's automatic prefetch — the slowest hop was never warmed. Mirrors the existing credits-chip pattern. Scope the general-settings server prefetch to the three sections that read it (general, billing, admin) instead of blocking all 28. Overlap two pairs of independent awaits in the access gate. Every await there sits in front of the section body. Warm workspace credentials under the type the secrets panel queries. The existing warm wrote the unfiltered key, so the panel still fetched cold. Scope Workspace plane only. Earlier revisions extended this to the account, organization and self-host planes; review found the loading boundary softened 404s there, and the shell's meta painted a denied section's heading during SSR because the opt-out runs in a layout effect. Feeding the header server-side on those planes needs per-section access at layout level — a routing change beyond this PR — so they are left untouched rather than half-migrated. Also considered and dropped: experimental.staleTimes (its static value silently downgraded Next 16's own default, and dynamic is an app-wide router-cache change this PR does not need — the segment cache already floors prefetch entries at 30s); a body skeleton (no precedent at this layer — ResourceChromeFallback renders real chrome over rows={[]}, credit-usage renders its title over an empty body); and warming all 28 section chunks from the sidebar (measured ~113–163 extra modules across six of the hottest routes on the boundary audit — the six that predate this PR are kept). Type of Change Improvement (performance) Testing bun run type-check, bun run lint, bun run check:audits (incl. the module-graph boundary check, which caught the chunk-warming regression) and the block-registry check pass. 778 tests pass. New coverage for resolveSettingsSection's alias table — untested on either side of the move — and for the general-settings prefetch gate; all new assertions verified against deliberate mutants, including one earlier test that passed against a broken field-merge implementation. Not verified in a running browser — the frame sequence is reasoned from the Next 16.3.1 scheduler and router sources, not observed. 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)

Open Graph Description: Summary Switching workspace settings tabs ran four sequential round-trips with no visual feedback — a cold RSC request, the panel render, the section's lazy chunk, then its queries. The heading...

X Description: Summary Switching workspace settings tabs ran four sequential round-trips with no visual feedback — a cold RSC request, the panel render, the section's lazy chunk, then its queries. The hea...

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

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:e4aa3e95-93d4-3dd5-f91b-0715ffa319b8
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id9998:29D5DB:97EABB:D097A6:6AFB4C92
html-safe-nonce3cdbf582ee43da56c754262de2ab1250b19e204307daadbb5aa3bc0ad78f7a56
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5OTk4OjI5RDVEQjo5N0VBQkI6RDA5N0E2OjZBRkI0QzkyIiwidmlzaXRvcl9pZCI6IjExNzIwNzg2NzExNTQ1OTcwMTAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac8e6d14cc41318fad7cc1f69d6bbf17d8502b86dc661ee5cf01883e46d4d85ab8
hovercard-subject-tagpull_request:4336467054
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/6964/files
twitter:imagehttps://avatars.githubusercontent.com/u/40672544?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/40672544?s=400&v=4
og:image:altSummary Switching workspace settings tabs ran four sequential round-trips with no visual feedback — a cold RSC request, the panel render, the section's lazy chunk, then its queries. The heading...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Noneacf7616d06cc051644705b379878c9bb13dc5e70ecf4ffd9b34140f8ac01d7e1
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
release26504db649b58525278f77a52b80ba5f10d5f4de
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/simstudioai/sim/pull/6964/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fpull%2F6964%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%2F6964%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/6964/files
Reloadhttps://github.com/simstudioai/sim/pull/6964/files
Reloadhttps://github.com/simstudioai/sim/pull/6964/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
waleedlatif1https://github.com/waleedlatif1
staginghttps://github.com/simstudioai/sim/tree/staging
perf/settings-loadhttps://github.com/simstudioai/sim/tree/perf/settings-load
Conversation 26 https://github.com/simstudioai/sim/pull/6964
Commits 6 https://github.com/simstudioai/sim/pull/6964/commits
Checks 30 https://github.com/simstudioai/sim/pull/6964/checks
Files changed https://github.com/simstudioai/sim/pull/6964/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/6964/files
improvement(settings): make workspace settings navigation feel instant https://github.com/simstudioai/sim/pull/6964/files#top
Show all changes 6 commits https://github.com/simstudioai/sim/pull/6964/files
c92fedd improvement(settings): make settings section navigation feel instant waleedlatif1 Aug 22, 2026 https://github.com/simstudioai/sim/pull/6964/commits/c92fedd030e92b8c2b8ffb969433a1469a53cbdb
322dbf4 improvement(settings): drop the skeleton and the app-wide router cach… waleedlatif1 Aug 22, 2026 https://github.com/simstudioai/sim/pull/6964/commits/322dbf46edd4175c417688b42a275ccf5bba18e2
55d5d4b improvement(settings): fix header regressions found in review waleedlatif1 Aug 22, 2026 https://github.com/simstudioai/sim/pull/6964/commits/55d5d4b10979868b3e060886cec695727b6828e3
d87db95 improvement(settings): scope the change to the workspace settings plane waleedlatif1 Aug 22, 2026 https://github.com/simstudioai/sim/pull/6964/commits/d87db951afe8255f5fdf1e620edc2b2927b36b47
fe1252a improvement(settings): stop re-resolving credential-group availability waleedlatif1 Aug 22, 2026 https://github.com/simstudioai/sim/pull/6964/commits/fe1252a8f86902be61c0d39c4be87084df9dbd8e
2067689 improvement(settings): resolve only the entitlements the gate can act on waleedlatif1 Aug 22, 2026 https://github.com/simstudioai/sim/pull/6964/commits/20676895271042970a85a1fa0646219e9e861ff5
Clear filters https://github.com/simstudioai/sim/pull/6964/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/6964/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/6964/files
layout.tsx https://github.com/simstudioai/sim/pull/6964/files#diff-46791891f75330f89eb27e7ea33609c28ce724657d28cb3d38e6bb935d3088f4
loading.tsx https://github.com/simstudioai/sim/pull/6964/files#diff-4ee7f921961038338f47a1de0bd4decb0ddd840c5dd813c671cc93c69dd4b15f
page.test.tsx https://github.com/simstudioai/sim/pull/6964/files#diff-875f761df5becd0df9a8fce938ff019668b4d21b51ddc906c45154a2a0c81f5b
page.tsx https://github.com/simstudioai/sim/pull/6964/files#diff-9237dd5eb61b0ca8ac0bdbf17fba44956afe465cddafcc49e6744dc7c6bde7e1
navigation.test.ts https://github.com/simstudioai/sim/pull/6964/files#diff-4e76e2b7b0672536b8ca63b35adbfa378d8dc181b46da8b982bf6a117af68258
navigation.ts https://github.com/simstudioai/sim/pull/6964/files#diff-f2f1af2d51fa290d01aa65f7db6f85a77bd61e39282e33962fce58fa54f9d780
settings-sidebar.tsx https://github.com/simstudioai/sim/pull/6964/files#diff-07f29e63f13800371e94bbb26f9c17492c83df7f027deb6d0199702560d32788
navigation.ts https://github.com/simstudioai/sim/pull/6964/files#diff-a7b9aa7de628a7c413599eb668d16b706165d104e5913308c2ef6f9253e3f272
settings-header-shell.test.tsx https://github.com/simstudioai/sim/pull/6964/files#diff-4b6bb285c930568f847aaed9668a30f76f1ea2d7496cd06fce3680de4d45892d
settings-header.tsx https://github.com/simstudioai/sim/pull/6964/files#diff-3d234352f39ccc5c170e72e9f5262bc343c0db7782b47097cb6f802e3348f89e
credentials.ts https://github.com/simstudioai/sim/pull/6964/files#diff-ca7307d0241b48ad5a75a8869ddc986abb13d00b3170a21896285cdacf8d7492
fetch-workspace-credentials.ts https://github.com/simstudioai/sim/pull/6964/files#diff-cff021a26ee8fb562c9ce58d6fbf6e6dc9bd49b9cba1dd4e3060013e994b000e
apps/sim/app/workspace/[workspaceId]/settings/[section]/layout.tsxhttps://github.com/simstudioai/sim/pull/6964/files#diff-46791891f75330f89eb27e7ea33609c28ce724657d28cb3d38e6bb935d3088f4
View file https://github.com/simstudioai/sim/blob/20676895271042970a85a1fa0646219e9e861ff5/apps/sim/app/workspace/%5BworkspaceId%5D/settings/%5Bsection%5D/layout.tsx
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/6964/{{ revealButtonHref }}
apps/sim/app/workspace/[workspaceId]/settings/[section]/loading.tsxhttps://github.com/simstudioai/sim/pull/6964/files#diff-4ee7f921961038338f47a1de0bd4decb0ddd840c5dd813c671cc93c69dd4b15f
View file https://github.com/simstudioai/sim/blob/20676895271042970a85a1fa0646219e9e861ff5/apps/sim/app/workspace/%5BworkspaceId%5D/settings/%5Bsection%5D/loading.tsx
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/6964/{{ revealButtonHref }}
apps/sim/app/workspace/[workspaceId]/settings/[section]/page.test.tsxhttps://github.com/simstudioai/sim/pull/6964/files#diff-875f761df5becd0df9a8fce938ff019668b4d21b51ddc906c45154a2a0c81f5b
View file https://github.com/simstudioai/sim/blob/20676895271042970a85a1fa0646219e9e861ff5/apps/sim/app/workspace/%5BworkspaceId%5D/settings/%5Bsection%5D/page.test.tsx
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/6964/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/6964/files#diff-875f761df5becd0df9a8fce938ff019668b4d21b51ddc906c45154a2a0c81f5b
https://github.com/simstudioai/sim/pull/6964/files#diff-875f761df5becd0df9a8fce938ff019668b4d21b51ddc906c45154a2a0c81f5b
https://github.com/simstudioai/sim/pull/6964/files#diff-875f761df5becd0df9a8fce938ff019668b4d21b51ddc906c45154a2a0c81f5b
https://github.com/simstudioai/sim/pull/6964/files#diff-875f761df5becd0df9a8fce938ff019668b4d21b51ddc906c45154a2a0c81f5b
https://github.com/simstudioai/sim/pull/6964/files#diff-875f761df5becd0df9a8fce938ff019668b4d21b51ddc906c45154a2a0c81f5b
https://github.com/simstudioai/sim/pull/6964/files#diff-875f761df5becd0df9a8fce938ff019668b4d21b51ddc906c45154a2a0c81f5b
https://github.com/simstudioai/sim/pull/6964/files#diff-875f761df5becd0df9a8fce938ff019668b4d21b51ddc906c45154a2a0c81f5b
https://github.com/simstudioai/sim/pull/6964/files#diff-875f761df5becd0df9a8fce938ff019668b4d21b51ddc906c45154a2a0c81f5b
https://github.com/simstudioai/sim/pull/6964/files#diff-875f761df5becd0df9a8fce938ff019668b4d21b51ddc906c45154a2a0c81f5b
https://github.com/simstudioai/sim/pull/6964/files#diff-875f761df5becd0df9a8fce938ff019668b4d21b51ddc906c45154a2a0c81f5b
https://github.com/simstudioai/sim/pull/6964/files#diff-875f761df5becd0df9a8fce938ff019668b4d21b51ddc906c45154a2a0c81f5b
Please reload this pagehttps://github.com/simstudioai/sim/pull/6964/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/6964/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.