René's URL Explorer Experiment


Title: fix(folders): show the folder trail in table and knowledge base headers by waleedlatif1 · Pull Request #6515 · simstudioai/sim · GitHub

Open Graph Title: fix(folders): show the folder trail in table and knowledge base headers by waleedlatif1 · Pull Request #6515 · simstudioai/sim

X Title: fix(folders): show the folder trail in table and knowledge base headers by waleedlatif1 · Pull Request #6515 · simstudioai/sim

Description: Summary A table or knowledge base opened from inside a folder rendered Tables / name, dropping every folder between it and the root, while a file's header showed the full Files / docs / name path. The detail pages never read the resource's own folderId, so the trail could not include it. Rather than patch the two headers, all six foldered surfaces (Files, Tables, Knowledge — list and detail) now build their trail from one shared builder: folderAncestorChain(folderId, lookup) in lib/folders/tree.ts is the single upward walk. Both getFolderPath variants delegate to it. The two lock predicates deliberately keep their inline walks — they short-circuit at the first locked ancestor on a per-row render path. folderBreadcrumbItems takes a trailing slot for detail pages, as a discriminated union so an open-folder rename can't be passed alongside it and silently dropped. useFolderAncestors owns the folder tree plus the foldersResolved staleness rule; useFolderNavigation delegates to it. FOLDERED_RESOURCE_HEADERS owns each resource's root label, root icon, and list path, which seven sites previously restated. Files' list trail moved off splitting the materialized path string, which couldn't tell two same-named siblings apart, onto the shared parentId walk. Also fixes the Files loading trail, whose folder crumbs used the nuqs setter while rendering on the file detail route — appending ?folderId= to the open file's own URL instead of navigating to the list. Type of Change Bug fix Testing tsc --noEmit, bun run lint:check, and bun run check:react-query / check:api-validation / check:client-boundary all clean. 2902 tests across 249 files pass, including new coverage for the chain walk and the detail-page trail; I verified those tests fail against a deliberately broken implementation. Not yet verified in a browser — the dev server won't start from a git worktree (Turbopack resolves the outer repo as root). The visual change is the folder segments now appearing in table/KB headers, so it's worth a look on the preview before merge. 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 A table or knowledge base opened from inside a folder rendered Tables / name, dropping every folder between it and the root, while a file's header showed the full Files / docs / name p...

X Description: Summary A table or knowledge base opened from inside a folder rendered Tables / name, dropping every folder between it and the root, while a file's header showed the full Files / docs / na...

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

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:e094d469-2de9-89b4-0c9d-42696b3eeeef
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idD676:25245F:7BEF79:AAD0BF:6AFB45E7
html-safe-noncec030bc7eec0aa7736c2f69b90f331945f6a97bb15bee6350119c696f20f1bd9d
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENjc2OjI1MjQ1Rjo3QkVGNzk6QUFEMEJGOjZBRkI0NUU3IiwidmlzaXRvcl9pZCI6IjU4MTY0NDk4NTAyNjYwNDM4NzkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacfdb3d40052e26b1fb9430757080909c0227fbe7e1ac98d61ff7529bebaa31ec8
hovercard-subject-tagpull_request:4249399406
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/6515/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 A table or knowledge base opened from inside a folder rendered Tables / name, dropping every folder between it and the root, while a file's header showed the full Files / docs / name p...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Noned849b928f455c800985398e7f1b659425adb312a5fa14fba5d9a14e62e9fe5dd
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
releasea6c2f87cbcb6414452377b4967858ed6a66f1109
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/simstudioai/sim/pull/6515/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fpull%2F6515%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%2F6515%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/6515/files
Reloadhttps://github.com/simstudioai/sim/pull/6515/files
Reloadhttps://github.com/simstudioai/sim/pull/6515/files
simstudioaihttps://github.com/simstudioai
simhttps://github.com/simstudioai/sim
Codehttps://github.com/simstudioai/sim
Issues129 (129)https://github.com/simstudioai/sim/issues
Pull requests199 (199)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
folder-toolbar-headerhttps://github.com/simstudioai/sim/tree/folder-toolbar-header
Conversation 11 https://github.com/simstudioai/sim/pull/6515
Commits 4 https://github.com/simstudioai/sim/pull/6515/commits
Checks 30 https://github.com/simstudioai/sim/pull/6515/checks
Files changed https://github.com/simstudioai/sim/pull/6515/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/6515/files
fix(folders): show the folder trail in table and knowledge base headers https://github.com/simstudioai/sim/pull/6515/files#top
Show all changes 4 commits https://github.com/simstudioai/sim/pull/6515/files
4997440 fix(folders): show the folder trail in table and knowledge base headers waleedlatif1 Aug 11, 2026 https://github.com/simstudioai/sim/pull/6515/commits/4997440346da5db6d2c9f32df4b141edbd950af2
010608d fix(knowledge): confirm before a breadcrumb navigates away from an un… waleedlatif1 Aug 11, 2026 https://github.com/simstudioai/sim/pull/6515/commits/010608d0bed59ebf624a6496733bebd5ef33687d
e409ad9 fix(knowledge): source the pluralized root label from the folder regi… waleedlatif1 Aug 11, 2026 https://github.com/simstudioai/sim/pull/6515/commits/e409ad9bd58d3fd7600d3253fa241f87eb55324d
1df52e0 chore(folders): tighten the shared breadcrumb docs and dedupe the anc… waleedlatif1 Aug 11, 2026 https://github.com/simstudioai/sim/pull/6515/commits/1df52e02f1b66cd9ab8097e38a0ca8463af61ece
Clear filters https://github.com/simstudioai/sim/pull/6515/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/6515/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/6515/files
folder-breadcrumbs.ts https://github.com/simstudioai/sim/pull/6515/files#diff-c9e59d499930bb4ea4dd9470549e9facb7f05fef966add53e2bcabc5b69c697f
foldered-resources.ts https://github.com/simstudioai/sim/pull/6515/files#diff-069e50a6409c03da75c9c2a27364b5c12320eca38f7e20c3fb8a43a65ff74afa
folders.test.ts https://github.com/simstudioai/sim/pull/6515/files#diff-313c3eca7da8ac2f9eb33a5e3af686e98dedc6fd135bd80aebf0df7c33c78f64
index.ts https://github.com/simstudioai/sim/pull/6515/files#diff-c4a245a2535d154a9859253f7aa12cd277a4df0a976d5a973d04cc308fbddb96
search-params.ts https://github.com/simstudioai/sim/pull/6515/files#diff-4dfc3e6cdc90aa821b5d2878e950693a5d0ab03017614fd64debebd7c0a342a6
use-folder-ancestors.ts https://github.com/simstudioai/sim/pull/6515/files#diff-77e8ee340f460bfc62b5527899bad0ed2d9c866f88b456e23a25504609e24f93
use-folder-navigation.ts https://github.com/simstudioai/sim/pull/6515/files#diff-09bab5ab24f100133c545663ee0105c640bde246cd15be0ef84f06fd0a8a52b7
files.tsx https://github.com/simstudioai/sim/pull/6515/files#diff-0284e2e46ba0636bd37fb01a0bee2a53844af9bbaf0a5879e3b182c0f34e67a9
document.tsx https://github.com/simstudioai/sim/pull/6515/files#diff-a99aa06bddd087d73ff5aade48aee6821f62f95c800662505252fbf29976f71f
loading.tsx https://github.com/simstudioai/sim/pull/6515/files#diff-55e532b181abd34ecfc1014c356b0d7dba2fe214cbc3f236ef4edd06120afb5d
base.tsx https://github.com/simstudioai/sim/pull/6515/files#diff-9b1c8365e920c2c33ce67896c76e98caf6c8535794de2ce1d01ea707bb2b2161
loading.tsx https://github.com/simstudioai/sim/pull/6515/files#diff-6d02584ec78d047939fb33f699fb653c8a9b0564ce5bc70bdeb1632953bf7958
knowledge.tsx https://github.com/simstudioai/sim/pull/6515/files#diff-c94a1040beada0cc0b8033410cc00f26610a4d0a25eeb6123bbf3a2206021142
loading.tsx https://github.com/simstudioai/sim/pull/6515/files#diff-62424c715c506ccf71fa443dba6cbc984d8760b9ee2696d066a3f6fd8e5470e5
page.tsx https://github.com/simstudioai/sim/pull/6515/files#diff-eb72a2496ddfcede69d918d0262dfc93e9c59189d6f3d78e308a155a6ad0d485
recently-deleted.tsx https://github.com/simstudioai/sim/pull/6515/files#diff-b168e7e8c7e0d495fe4fbfc0398957a43fd1de5b02251b1d09818486206aef4d
table.tsx https://github.com/simstudioai/sim/pull/6515/files#diff-5a65d49f1fb75a42db9178db41caa5cb9bf776a547ab82822e99a13bd51a1669
tables.tsx https://github.com/simstudioai/sim/pull/6515/files#diff-6f863f5398bd7eec36119c2c77deb2483dbe0374d1bb6909d3e6a279d857bbdc
folder-tree.ts https://github.com/simstudioai/sim/pull/6515/files#diff-7544230539ab024cea9ed44a37d71dd08eff71897bd146188fc270114c67f92b
tree.ts https://github.com/simstudioai/sim/pull/6515/files#diff-5ca3076c615d0d69691988944dcc988a7327a587bc25e4c9a47f8c8f8d5932bd
apps/sim/app/workspace/[workspaceId]/components/folders/folder-breadcrumbs.tshttps://github.com/simstudioai/sim/pull/6515/files#diff-c9e59d499930bb4ea4dd9470549e9facb7f05fef966add53e2bcabc5b69c697f
View file https://github.com/simstudioai/sim/blob/1df52e02f1b66cd9ab8097e38a0ca8463af61ece/apps/sim/app/workspace/%5BworkspaceId%5D/components/folders/folder-breadcrumbs.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/6515/{{ revealButtonHref }}
apps/sim/app/workspace/[workspaceId]/components/folders/foldered-resources.tshttps://github.com/simstudioai/sim/pull/6515/files#diff-069e50a6409c03da75c9c2a27364b5c12320eca38f7e20c3fb8a43a65ff74afa
View file https://github.com/simstudioai/sim/blob/1df52e02f1b66cd9ab8097e38a0ca8463af61ece/apps/sim/app/workspace/%5BworkspaceId%5D/components/folders/foldered-resources.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/6515/{{ revealButtonHref }}
apps/sim/app/workspace/[workspaceId]/components/folders/folders.test.tshttps://github.com/simstudioai/sim/pull/6515/files#diff-313c3eca7da8ac2f9eb33a5e3af686e98dedc6fd135bd80aebf0df7c33c78f64
View file https://github.com/simstudioai/sim/blob/1df52e02f1b66cd9ab8097e38a0ca8463af61ece/apps/sim/app/workspace/%5BworkspaceId%5D/components/folders/folders.test.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/6515/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/6515/files#diff-313c3eca7da8ac2f9eb33a5e3af686e98dedc6fd135bd80aebf0df7c33c78f64
https://github.com/simstudioai/sim/pull/6515/files#diff-313c3eca7da8ac2f9eb33a5e3af686e98dedc6fd135bd80aebf0df7c33c78f64
https://github.com/simstudioai/sim/pull/6515/files#diff-313c3eca7da8ac2f9eb33a5e3af686e98dedc6fd135bd80aebf0df7c33c78f64
apps/sim/app/workspace/[workspaceId]/components/folders/index.tshttps://github.com/simstudioai/sim/pull/6515/files#diff-c4a245a2535d154a9859253f7aa12cd277a4df0a976d5a973d04cc308fbddb96
View file https://github.com/simstudioai/sim/blob/1df52e02f1b66cd9ab8097e38a0ca8463af61ece/apps/sim/app/workspace/%5BworkspaceId%5D/components/folders/index.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/6515/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/6515/files#diff-c4a245a2535d154a9859253f7aa12cd277a4df0a976d5a973d04cc308fbddb96
https://github.com/simstudioai/sim/pull/6515/files#diff-c4a245a2535d154a9859253f7aa12cd277a4df0a976d5a973d04cc308fbddb96
apps/sim/app/workspace/[workspaceId]/components/folders/search-params.tshttps://github.com/simstudioai/sim/pull/6515/files#diff-4dfc3e6cdc90aa821b5d2878e950693a5d0ab03017614fd64debebd7c0a342a6
View file https://github.com/simstudioai/sim/blob/1df52e02f1b66cd9ab8097e38a0ca8463af61ece/apps/sim/app/workspace/%5BworkspaceId%5D/components/folders/search-params.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/6515/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/6515/files#diff-4dfc3e6cdc90aa821b5d2878e950693a5d0ab03017614fd64debebd7c0a342a6
Please reload this pagehttps://github.com/simstudioai/sim/pull/6515/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/6515/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.