René's URL Explorer Experiment


Title: fix(settings): accurate View navigation after restore in recently deleted by waleedlatif1 · Pull Request #4546 · simstudioai/sim · GitHub

Open Graph Title: fix(settings): accurate View navigation after restore in recently deleted by waleedlatif1 · Pull Request #4546 · simstudioai/sim

X Title: fix(settings): accurate View navigation after restore in recently deleted by waleedlatif1 · Pull Request #4546 · simstudioai/sim

Description: Summary In Settings → Recently Deleted, after restoring an item the View button rendered for every resource type but only navigated correctly for workflows/tables/knowledge bases. Files dropped users on the generic files list, and folders dropped users on the workflows root with nothing focused. This change makes View land on the actual restored item: Files → /workspace/{id}/files/{fileId} (was /workspace/{id}/files). The [fileId] route already exists and files.tsx reads params.fileId to focus the file. Folders → walks the restored folder's parent chain via the active useFolders query and calls useFolderStore.setExpanded(id, true) for the folder + all ancestors before pushing to /w. The folder store survives client-side navigation, so the sidebar opens with the restored folder expanded and visible. Workflow / Table / Knowledge Base targets are unchanged — already correct. Also small cleanups in the same component: toError(error).message instead of an instanceof Error ternary, dropped an unnecessary Fragment around config.renderTabIcon, and moved type ResourceType above its first use. Test plan Delete a workflow → restore from Recently Deleted → click View → lands on /w/{id} for that workflow Delete a table → restore → View → lands on /tables/{id} Delete a knowledge base → restore → View → lands on /knowledge/{id} Delete a top-level file → restore → View → lands on /files/{id} with the file focused Delete a top-level folder → restore → View → sidebar shows it expanded Delete a nested folder (folder inside a folder) → restore → View → sidebar shows the nested folder expanded with all parents expanded too

Open Graph Description: Summary In Settings → Recently Deleted, after restoring an item the View button rendered for every resource type but only navigated correctly for workflows/tables/knowledge bases. Files dropped use...

X Description: Summary In Settings → Recently Deleted, after restoring an item the View button rendered for every resource type but only navigated correctly for workflows/tables/knowledge bases. Files dropped use...

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

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:1922eb27-169c-db32-38b0-f7b74652d859
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idD2D4:ECC72:28984B:39915D:6AFB6F09
html-safe-nonce54d11cd15d5e4b5d08d8c4572bd5589943aedf7b1fd79b58d778b0c015db3d6f
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMkQ0OkVDQzcyOjI4OTg0QjozOTkxNUQ6NkFGQjZGMDkiLCJ2aXNpdG9yX2lkIjoiODA5MjQ3NzIxNzk4NTc1Mjg0MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmace89547e226fdff7cb7a6a756d049df09e98ab0aa693141b5866370e21bb7ec33
hovercard-subject-tagpull_request:3658107645
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/4546/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 In Settings → Recently Deleted, after restoring an item the View button rendered for every resource type but only navigated correctly for workflows/tables/knowledge bases. Files dropped use...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonecca289ecd54650fcf3c0b037a58b97186dee2cc4406819d87fab93728fd83700
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
release88808b1fae5ab8a526a73e7ce5542a10eb9d6971
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/simstudioai/sim/pull/4546/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fpull%2F4546%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%2F4546%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/4546/files
Reloadhttps://github.com/simstudioai/sim/pull/4546/files
Reloadhttps://github.com/simstudioai/sim/pull/4546/files
simstudioaihttps://github.com/simstudioai
simhttps://github.com/simstudioai/sim
Codehttps://github.com/simstudioai/sim
Issues129 (129)https://github.com/simstudioai/sim/issues
Pull requests198 (198)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
waleedlatif1/restore-view-navhttps://github.com/simstudioai/sim/tree/waleedlatif1/restore-view-nav
Conversation 10 https://github.com/simstudioai/sim/pull/4546
Commits 3 https://github.com/simstudioai/sim/pull/4546/commits
Checks 12 https://github.com/simstudioai/sim/pull/4546/checks
Files changed https://github.com/simstudioai/sim/pull/4546/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/4546/files
fix(settings): accurate View navigation after restore in recently deleted https://github.com/simstudioai/sim/pull/4546/files#top
Show all changes 3 commits https://github.com/simstudioai/sim/pull/4546/files
0f259e0 fix(settings): accurate View navigation after restore in recently del… waleedlatif1 May 10, 2026 https://github.com/simstudioai/sim/pull/4546/commits/0f259e08b6b7d50365a27f82f9ac11b04b5560ad
92cca40 fix: fall back to archived folders for parent-chain lookup waleedlatif1 May 10, 2026 https://github.com/simstudioai/sim/pull/4546/commits/92cca4057d1ea08b2e3d5b076c488cde59192ef1
bb58ef3 chore(styling): canonicalize size-* shorthand for equal height/width waleedlatif1 May 10, 2026 https://github.com/simstudioai/sim/pull/4546/commits/bb58ef3feed4ff1027b2b4ac547151a183eb9475
Clear filters https://github.com/simstudioai/sim/pull/4546/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/4546/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/4546/files
SKILL.md https://github.com/simstudioai/sim/pull/4546/files#diff-a4f57e3d69c02e699f31279795e33b3b11ee0cd4e546580f263ffe1c0a9c4b0b
emcn-design-review.md https://github.com/simstudioai/sim/pull/4546/files#diff-72e546670fd2476a1ea07d4f5975bfafe723273a37bc8295b31fb36bb9c4edeb
emcn-components.md https://github.com/simstudioai/sim/pull/4546/files#diff-a0a237e57d53a751ca901fccd23564947402293d6183be9abdb235a5ae4c58ee
sim-styling.md https://github.com/simstudioai/sim/pull/4546/files#diff-6cf48ff86dcf8172995c7b3a0af6e1d2c814fa197b04805cc922a5327f486ba8
emcn-design-review.md https://github.com/simstudioai/sim/pull/4546/files#diff-455bfcbae5a085b3ddbeb3e2f2fbe4ae43d3c4c4f20fc838370a08d22d6d4f6d
AGENTS.md https://github.com/simstudioai/sim/pull/4546/files#diff-a54ff182c7e8acf56acfd6e4b9c3ff41e2c41a31c9b211b2deb9df75d9a478f9
CLAUDE.md https://github.com/simstudioai/sim/pull/4546/files#diff-6ebdb617a8104a7756d0cf36578ab01103dc9f07e4dc6feb751296b9c402faf7
recently-deleted.tsx https://github.com/simstudioai/sim/pull/4546/files#diff-b168e7e8c7e0d495fe4fbfc0398957a43fd1de5b02251b1d09818486206aef4d
.agents/skills/emcn-design-review/SKILL.mdhttps://github.com/simstudioai/sim/pull/4546/files#diff-a4f57e3d69c02e699f31279795e33b3b11ee0cd4e546580f263ffe1c0a9c4b0b
View file https://github.com/simstudioai/sim/blob/bb58ef3feed4ff1027b2b4ac547151a183eb9475/.agents/skills/emcn-design-review/SKILL.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/4546/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/4546/files#diff-a4f57e3d69c02e699f31279795e33b3b11ee0cd4e546580f263ffe1c0a9c4b0b
https://github.com/simstudioai/sim/pull/4546/files#diff-a4f57e3d69c02e699f31279795e33b3b11ee0cd4e546580f263ffe1c0a9c4b0b
https://github.com/simstudioai/sim/pull/4546/files#diff-a4f57e3d69c02e699f31279795e33b3b11ee0cd4e546580f263ffe1c0a9c4b0b
https://github.com/simstudioai/sim/pull/4546/files#diff-a4f57e3d69c02e699f31279795e33b3b11ee0cd4e546580f263ffe1c0a9c4b0b
https://github.com/simstudioai/sim/pull/4546/files#diff-a4f57e3d69c02e699f31279795e33b3b11ee0cd4e546580f263ffe1c0a9c4b0b
.claude/commands/emcn-design-review.mdhttps://github.com/simstudioai/sim/pull/4546/files#diff-72e546670fd2476a1ea07d4f5975bfafe723273a37bc8295b31fb36bb9c4edeb
View file https://github.com/simstudioai/sim/blob/bb58ef3feed4ff1027b2b4ac547151a183eb9475/.claude/commands/emcn-design-review.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/4546/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/4546/files#diff-72e546670fd2476a1ea07d4f5975bfafe723273a37bc8295b31fb36bb9c4edeb
https://github.com/simstudioai/sim/pull/4546/files#diff-72e546670fd2476a1ea07d4f5975bfafe723273a37bc8295b31fb36bb9c4edeb
.claude/rules/emcn-components.mdhttps://github.com/simstudioai/sim/pull/4546/files#diff-a0a237e57d53a751ca901fccd23564947402293d6183be9abdb235a5ae4c58ee
View file https://github.com/simstudioai/sim/blob/bb58ef3feed4ff1027b2b4ac547151a183eb9475/.claude/rules/emcn-components.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/4546/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/4546/files#diff-a0a237e57d53a751ca901fccd23564947402293d6183be9abdb235a5ae4c58ee
.claude/rules/sim-styling.mdhttps://github.com/simstudioai/sim/pull/4546/files#diff-6cf48ff86dcf8172995c7b3a0af6e1d2c814fa197b04805cc922a5327f486ba8
View file https://github.com/simstudioai/sim/blob/bb58ef3feed4ff1027b2b4ac547151a183eb9475/.claude/rules/sim-styling.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/4546/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/4546/files#diff-6cf48ff86dcf8172995c7b3a0af6e1d2c814fa197b04805cc922a5327f486ba8
https://github.com/simstudioai/sim/pull/4546/files#diff-6cf48ff86dcf8172995c7b3a0af6e1d2c814fa197b04805cc922a5327f486ba8
.cursor/commands/emcn-design-review.mdhttps://github.com/simstudioai/sim/pull/4546/files#diff-455bfcbae5a085b3ddbeb3e2f2fbe4ae43d3c4c4f20fc838370a08d22d6d4f6d
View file https://github.com/simstudioai/sim/blob/bb58ef3feed4ff1027b2b4ac547151a183eb9475/.cursor/commands/emcn-design-review.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/4546/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/4546/files#diff-455bfcbae5a085b3ddbeb3e2f2fbe4ae43d3c4c4f20fc838370a08d22d6d4f6d
https://github.com/simstudioai/sim/pull/4546/files#diff-455bfcbae5a085b3ddbeb3e2f2fbe4ae43d3c4c4f20fc838370a08d22d6d4f6d
AGENTS.mdhttps://github.com/simstudioai/sim/pull/4546/files#diff-a54ff182c7e8acf56acfd6e4b9c3ff41e2c41a31c9b211b2deb9df75d9a478f9
View file https://github.com/simstudioai/sim/blob/bb58ef3feed4ff1027b2b4ac547151a183eb9475/AGENTS.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/4546/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/4546/files#diff-a54ff182c7e8acf56acfd6e4b9c3ff41e2c41a31c9b211b2deb9df75d9a478f9
https://github.com/simstudioai/sim/pull/4546/files#diff-a54ff182c7e8acf56acfd6e4b9c3ff41e2c41a31c9b211b2deb9df75d9a478f9
CLAUDE.mdhttps://github.com/simstudioai/sim/pull/4546/files#diff-6ebdb617a8104a7756d0cf36578ab01103dc9f07e4dc6feb751296b9c402faf7
View file https://github.com/simstudioai/sim/blob/bb58ef3feed4ff1027b2b4ac547151a183eb9475/CLAUDE.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/4546/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/4546/files#diff-6ebdb617a8104a7756d0cf36578ab01103dc9f07e4dc6feb751296b9c402faf7
https://github.com/simstudioai/sim/pull/4546/files#diff-6ebdb617a8104a7756d0cf36578ab01103dc9f07e4dc6feb751296b9c402faf7
...sim/app/workspace/[workspaceId]/settings/components/recently-deleted/recently-deleted.tsxhttps://github.com/simstudioai/sim/pull/4546/files#diff-b168e7e8c7e0d495fe4fbfc0398957a43fd1de5b02251b1d09818486206aef4d
View file https://github.com/simstudioai/sim/blob/bb58ef3feed4ff1027b2b4ac547151a183eb9475/apps/sim/app/workspace/%5BworkspaceId%5D/settings/components/recently-deleted/recently-deleted.tsx
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/4546/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/4546/files#diff-b168e7e8c7e0d495fe4fbfc0398957a43fd1de5b02251b1d09818486206aef4d
https://github.com/simstudioai/sim/pull/4546/files#diff-b168e7e8c7e0d495fe4fbfc0398957a43fd1de5b02251b1d09818486206aef4d
https://github.com/simstudioai/sim/pull/4546/files#diff-b168e7e8c7e0d495fe4fbfc0398957a43fd1de5b02251b1d09818486206aef4d
https://github.com/simstudioai/sim/pull/4546/files#diff-b168e7e8c7e0d495fe4fbfc0398957a43fd1de5b02251b1d09818486206aef4d
https://github.com/simstudioai/sim/pull/4546/files#diff-b168e7e8c7e0d495fe4fbfc0398957a43fd1de5b02251b1d09818486206aef4d
https://github.com/simstudioai/sim/pull/4546/files#diff-b168e7e8c7e0d495fe4fbfc0398957a43fd1de5b02251b1d09818486206aef4d
https://github.com/simstudioai/sim/pull/4546/files#diff-b168e7e8c7e0d495fe4fbfc0398957a43fd1de5b02251b1d09818486206aef4d
https://github.com/simstudioai/sim/pull/4546/files#diff-b168e7e8c7e0d495fe4fbfc0398957a43fd1de5b02251b1d09818486206aef4d
https://github.com/simstudioai/sim/pull/4546/files#diff-b168e7e8c7e0d495fe4fbfc0398957a43fd1de5b02251b1d09818486206aef4d
https://github.com/simstudioai/sim/pull/4546/files#diff-b168e7e8c7e0d495fe4fbfc0398957a43fd1de5b02251b1d09818486206aef4d
Please reload this pagehttps://github.com/simstudioai/sim/pull/4546/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/4546/files
https://github.com/simstudioai/sim/pull/4546/files#diff-b168e7e8c7e0d495fe4fbfc0398957a43fd1de5b02251b1d09818486206aef4d
https://github.com/simstudioai/sim/pull/4546/files#diff-b168e7e8c7e0d495fe4fbfc0398957a43fd1de5b02251b1d09818486206aef4d
https://github.com/simstudioai/sim/pull/4546/files#diff-b168e7e8c7e0d495fe4fbfc0398957a43fd1de5b02251b1d09818486206aef4d
https://github.com/simstudioai/sim/pull/4546/files#diff-b168e7e8c7e0d495fe4fbfc0398957a43fd1de5b02251b1d09818486206aef4d
https://github.com/simstudioai/sim/pull/4546/files#diff-b168e7e8c7e0d495fe4fbfc0398957a43fd1de5b02251b1d09818486206aef4d
Please reload this pagehttps://github.com/simstudioai/sim/pull/4546/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.