René's URL Explorer Experiment


Title: feat(desktop): floating hover-peek sidebar by waleedlatif1 · Pull Request #6086 · simstudioai/sim · GitHub

Open Graph Title: feat(desktop): floating hover-peek sidebar by waleedlatif1 · Pull Request #6086 · simstudioai/sim

X Title: feat(desktop): floating hover-peek sidebar by waleedlatif1 · Pull Request #6086 · simstudioai/sim

Description: What On the macOS desktop shell the collapsed sidebar has no width at all (--sidebar-collapsed-width: 0), unlike web's 51px icon rail — so once collapsed the only ways back were ⌘B and the small title-bar toggle. Hovering that toggle now floats the sidebar in as a card over the content, inset from the window edge, retracting when the pointer leaves. Clicking the same control still docks it for good. Web and macOS native fullscreen (which falls back to the icon rail) are untouched. How The card is the existing .sidebar-shell-outer, re-styled — not a second surface. is 1800 lines with scroll and expansion state, so it must never re-mount; keeping the same element in the same tree position guarantees that. One CSS rule re-points --sidebar-width at a new --sidebar-expanded-width, and the inner shell plus the aside follow with no per-element width overrides. Chrome is all existing tokens: rounded-lg (--radius, same 8px as the content pane it floats beside), border-[var(--border)] (byte-identical to that pane's), shadow-overlay and z-[var(--z-modal)] (what the app's other edge-anchored panels use). The fill is the sidebar's own --surface-1, so docked and floating are the same surface. Enter/exit use the popper idiom emcn's Radix surfaces already use (fade-in-0 zoom-in-95). These are keyframe animations, not transitions, deliberately: an animation runs from mount, so no hidden "from" frame and no requestAnimationFrame to step into — rAF is throttled in an unfocused window and would strand the card mounted-but-invisible. w-auto, not a length: width cannot interpolate to or from auto, so entering and leaving snap instead of animating. With a length the card widened as it appeared and left a 248px ghost shrinking to zero in flow on retract. Retraction is a document-level pointermove hit-test, not mouseleave: every menu the sidebar opens lives in a body portal, so mouseleave would retract the card the instant you reached for a menu item. The card and trigger are matched geometrically (coordinates can't go stale when the tooltip subtree re-renders); poppers are matched via the same predicate emcn's own modal uses. Also fixed Search palette migrated from raw z-40/z-50 to --z-modal. It was the one overlay the new card outranked, and the raw values also placed it below --z-toast, inverting the order globals.css documents. Fixing it at the root beat teaching the peek to dodge it. Settings drive-bys — all pre-existing violations in files this PR already touches: passwords-view: two literal pixel text sizes → scale tokens (text-sm/text-caption), and its cards now route through SettingsResourceRow instead of four re-derived chrome constants (mirroring the established custom-blocks pattern). browser: three {null}-bodied SettingsSections — the only such usage in the codebase — collapse into one section of real label+action rows. Testing 18 unit tests for the peek hook: hover dwell, geometric hit-test, popper-keeps-open, modal dismissal, the gap between trigger and card, Escape yielding to an open popper, reduced motion, and a regression test for the scrim bug below. 5 tests covering --sidebar-expanded-width across collapse/expand/resize/rehydrate. Verified live in the desktop app via CDP: card geometry [8, 40, 250, 812], 8px radius, shadow on, transform-origin top-left, the 90ms dwell gate, and traversal from trigger into card without retracting. Not verified: the animation feel. Background windows throttle both timers and CSS animations, and the harness could not reliably bring the Electron window frontmost, so every measurement of the enter/exit animation was invalid. Geometry and chrome were verified with real numbers; the fade/zoom needs a human eye. Review notes Three real bugs were found and fixed during review, each with a test: Moving from the trigger into the card retracted it — SidebarTooltip returns bare children when disabled, so suppressing the tooltip remounted the button and nulled the ref mid-hover. Fixed by anchoring the hover region to a stable wrapper and hit-testing geometrically. An earlier attempt used [data-native-surface-overlay]:not([aria-modal="true"]) — but emcn stamps that marker on the modal scrim and never sets aria-modal (Radix puts it on a different node), so the exclusion matched nothing and a fixed inset-0 scrim would have pinned the card open permanently. With a modal already open, hovering still opened the card over it, because the dismissal effect only fired on the transition. lint:check fails repo-wide on terminal-session.tsx (noFocusedTests on xterm's fit.fit()) — verified pre-existing on clean staging, untouched here.

Open Graph Description: What On the macOS desktop shell the collapsed sidebar has no width at all (--sidebar-collapsed-width: 0), unlike web's 51px icon rail — so once collapsed the only ways back were ⌘B and the smal...

X Description: What On the macOS desktop shell the collapsed sidebar has no width at all (--sidebar-collapsed-width: 0), unlike web's 51px icon rail — so once collapsed the only ways back were ⌘B and the ...

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

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:01d90e89-cb76-dc08-0f9c-894023ca26e1
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idDB1E:25A7D0:50475D:727B10:6AFB3BE6
html-safe-noncea5c58981fd2db95685633161ffb209b6808eed06c94802c0306ed1053015ff3a
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQjFFOjI1QTdEMDo1MDQ3NUQ6NzI3QjEwOjZBRkIzQkU2IiwidmlzaXRvcl9pZCI6IjIyMzYzOTQ5NDQ2MTAzODQ4NzAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac7e870acd9221361abc0f1791120f6161ed678428e429cd1eca38e342de64d534
hovercard-subject-tagpull_request:4165884378
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/6086/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:altWhat On the macOS desktop shell the collapsed sidebar has no width at all (--sidebar-collapsed-width: 0), unlike web's 51px icon rail — so once collapsed the only ways back were ⌘B and the smal...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None2169b0dfbef67ed6b128074a5ed45bb7d5d1859783b10178b09a7765ad5f3693
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
release3b4fc8df5ef1c6757e733a23e6b81b6725021823
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/simstudioai/sim/pull/6086/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fpull%2F6086%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%2F6086%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/6086/files
Reloadhttps://github.com/simstudioai/sim/pull/6086/files
Reloadhttps://github.com/simstudioai/sim/pull/6086/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
worktree-sidebar-hover-peekhttps://github.com/simstudioai/sim/tree/worktree-sidebar-hover-peek
Conversation 21 https://github.com/simstudioai/sim/pull/6086
Commits 3 https://github.com/simstudioai/sim/pull/6086/commits
Checks 27 https://github.com/simstudioai/sim/pull/6086/checks
Files changed https://github.com/simstudioai/sim/pull/6086/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/6086/files
feat(desktop): floating hover-peek sidebar https://github.com/simstudioai/sim/pull/6086/files#top
Show all changes 3 commits https://github.com/simstudioai/sim/pull/6086/files
a88b104 feat(desktop): floating hover-peek sidebar Jul 30, 2026 https://github.com/simstudioai/sim/pull/6086/commits/a88b104463902e19e12ddb73640e140a73b5d27b
3ec18bc fix(desktop): close the peek's three timer races Jul 30, 2026 https://github.com/simstudioai/sim/pull/6086/commits/3ec18bc8460eac0ae3fcead0cb9b008d359f090f
abf1bde fix(desktop): arm the peek before first paint Jul 30, 2026 https://github.com/simstudioai/sim/pull/6086/commits/abf1bde709ad22eee959d107c1a0f39042e1ab35
Clear filters https://github.com/simstudioai/sim/pull/6086/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/6086/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/6086/files
globals.css https://github.com/simstudioai/sim/pull/6086/files#diff-a39154a049a8386121aeb235168db7af1a32dc7720f223bce3b809f4aebca0a9
layout.tsx https://github.com/simstudioai/sim/pull/6086/files#diff-2dc52a8bd70debdb1209497ce0a6e12dc85301649fb739dca3990b4df6ad7646
use-sidebar-peek.test.tsx https://github.com/simstudioai/sim/pull/6086/files#diff-2ab04dd28c029f7286982ed2716e43e0c7f00097224b0eb7c465d4f6890da393
use-sidebar-peek.ts https://github.com/simstudioai/sim/pull/6086/files#diff-4b97d87dd5ec61e22a82d2652dfb7fa2e44cd22e8f03bc23ccd65ef7113daa1a
workspace-chrome.tsx https://github.com/simstudioai/sim/pull/6086/files#diff-8bd390af8b5e2c55746eaa18cf75cf5f75f3c16bb334add73e1ef76d5978a9c9
browser.test.tsx https://github.com/simstudioai/sim/pull/6086/files#diff-e62260bc12c1e5d9343dc9236d3277a9dbb211032c5583b6cfbe0137e1eb54ce
browser.tsx https://github.com/simstudioai/sim/pull/6086/files#diff-5c9e80e1a5b0983c6429338c3791abd3754e8c05e4e993eafc22bd911282c859
passwords-view.test.tsx https://github.com/simstudioai/sim/pull/6086/files#diff-e5d4bdbf7e57dcf56196f50336bf5270e51a39c5a9785cd1d5940eb861caa478
passwords-view.tsx https://github.com/simstudioai/sim/pull/6086/files#diff-a3c159413d894d6615d7ecb938425944fd520384f796dd48b00597f245514479
search-modal.tsx https://github.com/simstudioai/sim/pull/6086/files#diff-6079272eb6db9ad2587cdddb940f11661ac9ffde205d2e16d14ca1f7809277ea
sidebar.tsx https://github.com/simstudioai/sim/pull/6086/files#diff-fe0f9ef26aae01478e9790a231ce91eaa9af5ccb0acd5656ead6f12ef7f332c3
store.test.ts https://github.com/simstudioai/sim/pull/6086/files#diff-fda7b43afc550964aca20035b7d85975f9539efaa5091468f17c6d07972c8279
store.ts https://github.com/simstudioai/sim/pull/6086/files#diff-d3932b2affc630638490c69dede5421239cf407060656e728aba02a3fb26ba98
apps/sim/app/_styles/globals.csshttps://github.com/simstudioai/sim/pull/6086/files#diff-a39154a049a8386121aeb235168db7af1a32dc7720f223bce3b809f4aebca0a9
View file https://github.com/simstudioai/sim/blob/abf1bde709ad22eee959d107c1a0f39042e1ab35/apps/sim/app/_styles/globals.css
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/6086/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/6086/files#diff-a39154a049a8386121aeb235168db7af1a32dc7720f223bce3b809f4aebca0a9
https://github.com/simstudioai/sim/pull/6086/files#diff-a39154a049a8386121aeb235168db7af1a32dc7720f223bce3b809f4aebca0a9
https://github.com/simstudioai/sim/pull/6086/files#diff-a39154a049a8386121aeb235168db7af1a32dc7720f223bce3b809f4aebca0a9
https://github.com/simstudioai/sim/pull/6086/files#diff-a39154a049a8386121aeb235168db7af1a32dc7720f223bce3b809f4aebca0a9
apps/sim/app/layout.tsxhttps://github.com/simstudioai/sim/pull/6086/files#diff-2dc52a8bd70debdb1209497ce0a6e12dc85301649fb739dca3990b4df6ad7646
View file https://github.com/simstudioai/sim/blob/abf1bde709ad22eee959d107c1a0f39042e1ab35/apps/sim/app/layout.tsx
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/6086/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/6086/files#diff-2dc52a8bd70debdb1209497ce0a6e12dc85301649fb739dca3990b4df6ad7646
https://github.com/simstudioai/sim/pull/6086/files#diff-2dc52a8bd70debdb1209497ce0a6e12dc85301649fb739dca3990b4df6ad7646
Please reload this pagehttps://github.com/simstudioai/sim/pull/6086/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/6086/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.