René's URL Explorer Experiment


Title: fix(resources): sort folders and resources as one list so pinned items reach the top by waleedlatif1 · Pull Request #6213 · simstudioai/sim · GitHub

Open Graph Title: fix(resources): sort folders and resources as one list so pinned items reach the top by waleedlatif1 · Pull Request #6213 · simstudioai/sim

X Title: fix(resources): sort folders and resources as one list so pinned items reach the top by waleedlatif1 · Pull Request #6213 · simstudioai/sim

Description: Summary Folders were sorted separately and concatenated above their sibling resources, so a pinned file/table/knowledge base could never rank above an unpinned folder — pinning only reordered within each partition Files, Tables, and Knowledge now sort folders and items as ONE list via a shared sortResources comparator: pinned → sort key → name Rows with no value for the active column (a folder has no row count or token count) sort last in both directions; the name tiebreak is never inverted by desc Audited every other foldered surface and aligned the ones that contradicted the pages: the mothership resource browse trees (file/table/KB levels partitioned folders-first with items in raw API order), the collapsed sidebar flyout (nested levels partitioned folders-first while its own root interleaved by sortOrder), the sidebar file tree, and the recently-deleted tiebreak Files' sort params were nullable only to encode "folders name/asc, files updated/desc"; with one list that state no longer exists, so they default to updated/desc like Tables and Knowledge Prefetch: all three pages already primed their items + folders, but not pinned ids or workspace members. Pinned ids are the primary sort key now, so painting without them rendered the list in the wrong order and then visibly re-sorted; members back the Owner column. Both now hydrate with the lists Type of Change Bug fix Testing Unit tests for the comparator (interleaving, pinned floats over unpinned folders in both directions, nulls last, direction-independent name tiebreak) and for the browse-tree ordering and the new prefetch keys. Verified each test goes red when the behavior is reverted. tsc, bun run lint, check:client-boundary, check:react-query, check:api-validation all pass. Not yet verified in a running browser. 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 Folders were sorted separately and concatenated above their sibling resources, so a pinned file/table/knowledge base could never rank above an unpinned folder — pinning only reordered with...

X Description: Summary Folders were sorted separately and concatenated above their sibling resources, so a pinned file/table/knowledge base could never rank above an unpinned folder — pinning only reordered with...

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

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:d18f85b0-8d0d-9258-bea2-5a0ccd9d37d4
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idEB1A:1D33A1:B5DE64:F9F64F:6AFB52E9
html-safe-nonce67b334457380d4f9d08bd4ce68815ddd67a79b0143b8ab49c40b991cbd984ff1
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQjFBOjFEMzNBMTpCNURFNjQ6RjlGNjRGOjZBRkI1MkU5IiwidmlzaXRvcl9pZCI6Ijc3ODIxNDYxMzczOTg1MjUyMSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacd8556993dd6841a4de980f92cc984cfb04f8c14a5830a3d5d741647349b297de
hovercard-subject-tagpull_request:4196919219
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/6213/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 Folders were sorted separately and concatenated above their sibling resources, so a pinned file/table/knowledge base could never rank above an unpinned folder — pinning only reordered with...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None7122bb414b542dba14d71a3f0b9f6fd2abce715b9f5912d082800563e6c806d1
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
releasecbf66c024bb6d10e6955baa7413c54cf13a201bb
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/simstudioai/sim/pull/6213/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fpull%2F6213%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%2F6213%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/6213/files
Reloadhttps://github.com/simstudioai/sim/pull/6213/files
Reloadhttps://github.com/simstudioai/sim/pull/6213/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
worktree-resource-sort-no-folder-priorityhttps://github.com/simstudioai/sim/tree/worktree-resource-sort-no-folder-priority
Conversation 7 https://github.com/simstudioai/sim/pull/6213
Commits 5 https://github.com/simstudioai/sim/pull/6213/commits
Checks 27 https://github.com/simstudioai/sim/pull/6213/checks
Files changed https://github.com/simstudioai/sim/pull/6213/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/6213/files
fix(resources): sort folders and resources as one list so pinned items reach the top https://github.com/simstudioai/sim/pull/6213/files#top
Show all changes 5 commits https://github.com/simstudioai/sim/pull/6213/files
8dc7789 fix(resources): stop hoisting folders so pinned items reach the top waleedlatif1 Aug 3, 2026 https://github.com/simstudioai/sim/pull/6213/commits/8dc77891a0f5931c2d5c7eeac6df6adee57a534f
9c102f2 improvement(resources): prefetch pinned ids and members with the reso… waleedlatif1 Aug 3, 2026 https://github.com/simstudioai/sim/pull/6213/commits/9c102f2ee447f618ed81b3d69d52a46c1d3b6677
bae8c9c chore(knowledge): drop the dead pre-redesign knowledge base sort waleedlatif1 Aug 3, 2026 https://github.com/simstudioai/sim/pull/6213/commits/bae8c9c95b528f6a6626ac32b284b00667721c10
99c7278 fix(resources): sort unknown owners last and align the knowledge sort… waleedlatif1 Aug 3, 2026 https://github.com/simstudioai/sim/pull/6213/commits/99c7278e86292a2d8f0fd5d5b3c3e8550e345cb4
3e494e2 chore(knowledge): delete the dead base-card grid view waleedlatif1 Aug 3, 2026 https://github.com/simstudioai/sim/pull/6213/commits/3e494e29e5e3c5f1dd7a4a8b8580c562e178ca59
Clear filters https://github.com/simstudioai/sim/pull/6213/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/6213/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/6213/files
sim-url-state.md https://github.com/simstudioai/sim/pull/6213/files#diff-8d95accf8fe872b8883f20d95471749261964819f7a8dea5bf7d53623fc84ec2
index.ts https://github.com/simstudioai/sim/pull/6213/files#diff-c4a245a2535d154a9859253f7aa12cd277a4df0a976d5a973d04cc308fbddb96
resource-sort.test.ts https://github.com/simstudioai/sim/pull/6213/files#diff-5d797129c43a3b1456c2935fa2c0eceb3209b54c9edb731057d3c56bd2f0201f
resource-sort.ts https://github.com/simstudioai/sim/pull/6213/files#diff-f35fb9edb518d827f0da08733a617f4b20d2867c5c5eb49a60cf198743aa5686
files.tsx https://github.com/simstudioai/sim/pull/6213/files#diff-0284e2e46ba0636bd37fb01a0bee2a53844af9bbaf0a5879e3b182c0f34e67a9
prefetch.ts https://github.com/simstudioai/sim/pull/6213/files#diff-f595ec6ab8c5f6f515485fd5eae3af465efa5a440d278114109318a589a90346
search-params.ts https://github.com/simstudioai/sim/pull/6213/files#diff-5772dc589ce3b200ce2c9a8a45374200a12637d24e85c74d03d7784624fd9d06
add-resource-dropdown.tsx https://github.com/simstudioai/sim/pull/6213/files#diff-ea316da40c4381b5519cdfa45bd9cb2295d8cb8c20b24b745a7d0b72efdbde98
resource-folder-tree.test.ts https://github.com/simstudioai/sim/pull/6213/files#diff-4940f526556566cb00798c310c8a52c008107cc18c628d63cb05ecee89f88251
resource-folder-tree.ts https://github.com/simstudioai/sim/pull/6213/files#diff-7a1edc6f3fe255c1cf9f12fe09b64ebe90c6b4f757ced6aa032696df6840a0e2
base-card.tsx https://github.com/simstudioai/sim/pull/6213/files#diff-a3d5a0541244e9b35c6afb6c571b78a21b2fe21165fb4dc20f3e93c82b7a53a8
index.ts https://github.com/simstudioai/sim/pull/6213/files#diff-281a75303fe656086a205eed631965f88423da36d9a7fb46c4df98e4346a8009
constants.ts https://github.com/simstudioai/sim/pull/6213/files#diff-4a9d7ea4667a5b2c36a4cee111165751a5a298cebdbf0b25ce42073c722bf6d1
index.ts https://github.com/simstudioai/sim/pull/6213/files#diff-331fbdd1aa46ae21cdb75519e173e38aaa5f7c130393b74bb0500d73d26ade49
knowledge.tsx https://github.com/simstudioai/sim/pull/6213/files#diff-c94a1040beada0cc0b8033410cc00f26610a4d0a25eeb6123bbf3a2206021142
prefetch.ts https://github.com/simstudioai/sim/pull/6213/files#diff-cbabd41588f9501e29016577c4bd074a22f2b379aa7860fa0f01780c3fc5b9e7
filter.ts https://github.com/simstudioai/sim/pull/6213/files#diff-0a7e7bca8bac197a8a0df3dda8a64836e4fa8cce5708dc92313c5ea5915b6d55
sort.ts https://github.com/simstudioai/sim/pull/6213/files#diff-b5d0c6ddf5e21c45c924068483b109fa853038171582e18186f435928b14a99b
prefetch-resource-list-chrome.ts https://github.com/simstudioai/sim/pull/6213/files#diff-23842cb0d2ce53207f70b4de1031d61ff92c4101bf4fd803372e4a40ee333727
prefetch.test.ts https://github.com/simstudioai/sim/pull/6213/files#diff-0f96fdbc0043b9049bd7b95533743eec99f8fae0184fd3464b17ed4f5c19e1d5
recently-deleted.tsx https://github.com/simstudioai/sim/pull/6213/files#diff-b168e7e8c7e0d495fe4fbfc0398957a43fd1de5b02251b1d09818486206aef4d
prefetch.ts https://github.com/simstudioai/sim/pull/6213/files#diff-89315f08bdc0de4369a4c676ab352d148ad9f065b2d79e828e78f2c1aab06b77
tables.tsx https://github.com/simstudioai/sim/pull/6213/files#diff-6f863f5398bd7eec36119c2c77deb2483dbe0374d1bb6909d3e6a279d857bbdc
collapsed-sidebar-menu.tsx https://github.com/simstudioai/sim/pull/6213/files#diff-c40f5d9681d9bb2d0a3fa7bb3b011e08062d06f291d731b5d64a0713d1f4f3e6
file-list.tsx https://github.com/simstudioai/sim/pull/6213/files#diff-36a115f4d9dff92b9cb3f1d669c1abc6e4a8aed0aea3093a48af8535927f2a97
utils.ts https://github.com/simstudioai/sim/pull/6213/files#diff-c40e2129c52c5620bcf1911d2037a545a66bff78e7097a8166a936183e05d579
pinned-items.ts https://github.com/simstudioai/sim/pull/6213/files#diff-3f5ac5f117fc42ce08a13371bd5270c542c8e26318d73cd606427e3389f66bde
pinned-item-keys.ts https://github.com/simstudioai/sim/pull/6213/files#diff-9cdcc47f8658a89de101ccc77a7bec2f1120bbfd7dc5179aa8dcda38fe659aa7
sort-params.ts https://github.com/simstudioai/sim/pull/6213/files#diff-3bf58dadf9ab3930db4f6fb4e23718e2f81e14f2c576a01276f9bf5456e66966
.claude/rules/sim-url-state.mdhttps://github.com/simstudioai/sim/pull/6213/files#diff-8d95accf8fe872b8883f20d95471749261964819f7a8dea5bf7d53623fc84ec2
View file https://github.com/simstudioai/sim/blob/3e494e29e5e3c5f1dd7a4a8b8580c562e178ca59/.claude/rules/sim-url-state.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/6213/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/6213/files#diff-8d95accf8fe872b8883f20d95471749261964819f7a8dea5bf7d53623fc84ec2
https://github.com/simstudioai/sim/pull/6213/files#diff-8d95accf8fe872b8883f20d95471749261964819f7a8dea5bf7d53623fc84ec2
apps/sim/app/workspace/[workspaceId]/components/folders/index.tshttps://github.com/simstudioai/sim/pull/6213/files#diff-c4a245a2535d154a9859253f7aa12cd277a4df0a976d5a973d04cc308fbddb96
View file https://github.com/simstudioai/sim/blob/3e494e29e5e3c5f1dd7a4a8b8580c562e178ca59/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/6213/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/6213/files#diff-c4a245a2535d154a9859253f7aa12cd277a4df0a976d5a973d04cc308fbddb96
https://github.com/simstudioai/sim/pull/6213/files#diff-c4a245a2535d154a9859253f7aa12cd277a4df0a976d5a973d04cc308fbddb96
apps/sim/app/workspace/[workspaceId]/components/folders/resource-sort.test.tshttps://github.com/simstudioai/sim/pull/6213/files#diff-5d797129c43a3b1456c2935fa2c0eceb3209b54c9edb731057d3c56bd2f0201f
View file https://github.com/simstudioai/sim/blob/3e494e29e5e3c5f1dd7a4a8b8580c562e178ca59/apps/sim/app/workspace/%5BworkspaceId%5D/components/folders/resource-sort.test.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/6213/{{ revealButtonHref }}
apps/sim/app/workspace/[workspaceId]/components/folders/resource-sort.tshttps://github.com/simstudioai/sim/pull/6213/files#diff-f35fb9edb518d827f0da08733a617f4b20d2867c5c5eb49a60cf198743aa5686
View file https://github.com/simstudioai/sim/blob/3e494e29e5e3c5f1dd7a4a8b8580c562e178ca59/apps/sim/app/workspace/%5BworkspaceId%5D/components/folders/resource-sort.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/6213/{{ revealButtonHref }}
Please reload this pagehttps://github.com/simstudioai/sim/pull/6213/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/6213/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.