René's URL Explorer Experiment


Title: feat(canvas): add a setting to turn off auto-focus when clicking blocks by waleedlatif1 · Pull Request #6685 · simstudioai/sim · GitHub

Open Graph Title: feat(canvas): add a setting to turn off auto-focus when clicking blocks by waleedlatif1 · Pull Request #6685 · simstudioai/sim

X Title: feat(canvas): add a setting to turn off auto-focus when clicking blocks by waleedlatif1 · Pull Request #6685 · simstudioai/sim

Description: Summary Adds an Auto-focus on click preference under Settings → General. Clicking a block animates the camera to center it, and it zooms in far enough that you lose sight of the rest of the workflow. Defaults to on, so nothing changes unless you turn it off. Gates only the focusBlockInView call in handleNodeClick. userFocusedWorkflowIdRef is still marked on every plain node click — it's what stops from running fitView over your framing, so skipping it would have blown away the framing of exactly the people who turned the setting off to keep it. New auto_focus_on_click column (additive, non-null default true), threaded through the existing user-settings contract, query, and React Query hook. No new API surface — the PATCH route already spreads the validated body into the upsert. Re-records the auto-connect and canvas-error-notification tooltip previews and adds one for the new setting. All three re-encoded to match the existing assets (h264 / yuv420p / 60fps / faststart); the error-notification clip had 2.45s of empty lead before the toast appeared, which is now trimmed. Scope worth a second opinion focusBlockInView has three callers. This gates the click path only. Deliberately left alone: Arrow-key navigation — without the camera following, selection lands on an off-screen block with no feedback. Block creation — a new block can land outside the viewport; not moving the camera means it appears nowhere. Note expand (note-block.tsx) — fires on the second click, pans at the current zoom rather than zooming, and exists so an expanded note isn't half off-screen. Each of those is unchanged behavior, so this PR can't regress them. Happy to widen the setting to cover them if reviewers disagree. Type of Change New feature Testing Tested manually. type-check, check:api-validation, and check:migrations pass; canvas suite green (349 tests). Tooltip clips were rendered at the 240px width Tooltip.Preview actually uses and inspected frame by frame. 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 Adds an Auto-focus on click preference under Settings → General. Clicking a block animates the camera to center it, and it zooms in far enough that you lose sight of the rest of the workfl...

X Description: Summary Adds an Auto-focus on click preference under Settings → General. Clicking a block animates the camera to center it, and it zooms in far enough that you lose sight of the rest of the workfl...

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

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:a2cb302c-5a3e-cccf-0d73-3f8b0e357832
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id9940:EE197:AA5B69:E97820:6AFB50C7
html-safe-noncef359c6f3ebd79e156e06194fcbd6c93ac5ff8aad11d3ebf330791690c04a14fd
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5OTQwOkVFMTk3OkFBNUI2OTpFOTc4MjA6NkFGQjUwQzciLCJ2aXNpdG9yX2lkIjoiNzc1OTU4ODQ3MTk2OTg5NDU5OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacd657467cdc85e84e4ff82b79d5e1a1d85590e9af79ce70ae38619334836111d6
hovercard-subject-tagpull_request:4275785271
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/6685/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 Adds an Auto-focus on click preference under Settings → General. Clicking a block animates the camera to center it, and it zooms in far enough that you lose sight of the rest of the workfl...
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/6685/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fpull%2F6685%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%2F6685%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/6685/files
Reloadhttps://github.com/simstudioai/sim/pull/6685/files
Reloadhttps://github.com/simstudioai/sim/pull/6685/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
feat/disable-canvas-autofocushttps://github.com/simstudioai/sim/tree/feat/disable-canvas-autofocus
Conversation 7 https://github.com/simstudioai/sim/pull/6685
Commits 3 https://github.com/simstudioai/sim/pull/6685/commits
Checks 30 https://github.com/simstudioai/sim/pull/6685/checks
Files changed https://github.com/simstudioai/sim/pull/6685/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/6685/files
feat(canvas): add a setting to turn off auto-focus when clicking blocks https://github.com/simstudioai/sim/pull/6685/files#top
Show all changes 3 commits https://github.com/simstudioai/sim/pull/6685/files
489d55b feat(canvas): add a setting to turn off auto-focus when clicking blocks waleedlatif1 Aug 13, 2026 https://github.com/simstudioai/sim/pull/6685/commits/489d55b566448ec095950381218a645d4bacba8f
177dfad fix(canvas): keep click-marked framing when auto-focus is off, recut … waleedlatif1 Aug 13, 2026 https://github.com/simstudioai/sim/pull/6685/commits/177dfad895c76e07e2cc21ef8be62af0f3b0322e
53681fb docs(canvas): correct useAutoFocusOnClick scope to clicks only waleedlatif1 Aug 14, 2026 https://github.com/simstudioai/sim/pull/6685/commits/53681fb6bc251abc0b2c9c4ed07cb38f04494149
Clear filters https://github.com/simstudioai/sim/pull/6685/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/6685/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/6685/files
general.tsx https://github.com/simstudioai/sim/pull/6685/files#diff-1399306bf79ad53ce246baccbfae7d3037e74a2b52fc447a212261f6d1940867
workflow.tsx https://github.com/simstudioai/sim/pull/6685/files#diff-633646152e985737e5fd12931da50f7d1f2b76bc3fbb589f7ce3fcf26f69da01
general-settings.ts https://github.com/simstudioai/sim/pull/6685/files#diff-c2a8b3f8c395c761de7cc46262d31bf26dcde16bdb20cffbb3cc76d2847bfd04
user.ts https://github.com/simstudioai/sim/pull/6685/files#diff-095f7a2d1473a6ce47da4b69d1c8ded6cf538a9c9a9f8d2957dc5539d16b827c
queries.ts https://github.com/simstudioai/sim/pull/6685/files#diff-d18ab434493cafbda9c5cb8a5d4c28634fe92598706fb9a49c19759274e7f78f
auto-connect-on-drop.mp4 https://github.com/simstudioai/sim/pull/6685/files#diff-da6cc41d34e54732637fb1b4fe79a43133b7caff806d02f16b5e9761dd9a1bf0
auto-focus-on-click.mp4 https://github.com/simstudioai/sim/pull/6685/files#diff-5109c140a0f3354d3f704c0c04ee93c0ebe6c076ed43c9e096b6aa992880af28
canvas-error-notification.mp4 https://github.com/simstudioai/sim/pull/6685/files#diff-bb699dd085bb08c326983a8629f5afe0c67a5874b0f46f48bdcfd44096ec93a6
0290_settings_auto_focus_on_click.sql https://github.com/simstudioai/sim/pull/6685/files#diff-a2635ab821276dea7628b288daaab2ff11411496034526080e481579ee1dcf4d
0290_snapshot.json https://github.com/simstudioai/sim/pull/6685/files#diff-1852b6cf4b79aec5dc0f635bbb40e34e0661f7c53034d3b6d0664353249a37ba
_journal.json https://github.com/simstudioai/sim/pull/6685/files#diff-37150cc65ad16ee6fbc5fa318fc096be7730e16d63eaf863e3df5521b7030649
schema.ts https://github.com/simstudioai/sim/pull/6685/files#diff-9a959e2ce3cb4c86957bbae021d06eae364f7b0cb18964f5873bab53220af928
schema.mock.ts https://github.com/simstudioai/sim/pull/6685/files#diff-3b648ee44a059e5fc069169fdfd7c32c89200a3e79b5d0dc25227d3470da73af
apps/sim/app/workspace/[workspaceId]/settings/components/general/general.tsxhttps://github.com/simstudioai/sim/pull/6685/files#diff-1399306bf79ad53ce246baccbfae7d3037e74a2b52fc447a212261f6d1940867
View file https://github.com/simstudioai/sim/blob/53681fb6bc251abc0b2c9c4ed07cb38f04494149/apps/sim/app/workspace/%5BworkspaceId%5D/settings/components/general/general.tsx
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/6685/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/6685/files#diff-1399306bf79ad53ce246baccbfae7d3037e74a2b52fc447a212261f6d1940867
https://github.com/simstudioai/sim/pull/6685/files#diff-1399306bf79ad53ce246baccbfae7d3037e74a2b52fc447a212261f6d1940867
https://github.com/simstudioai/sim/pull/6685/files#diff-1399306bf79ad53ce246baccbfae7d3037e74a2b52fc447a212261f6d1940867
https://github.com/simstudioai/sim/pull/6685/files#diff-1399306bf79ad53ce246baccbfae7d3037e74a2b52fc447a212261f6d1940867
apps/sim/app/workspace/[workspaceId]/w/[workflowId]/workflow.tsxhttps://github.com/simstudioai/sim/pull/6685/files#diff-633646152e985737e5fd12931da50f7d1f2b76bc3fbb589f7ce3fcf26f69da01
View file https://github.com/simstudioai/sim/blob/53681fb6bc251abc0b2c9c4ed07cb38f04494149/apps/sim/app/workspace/%5BworkspaceId%5D/w/%5BworkflowId%5D/workflow.tsx
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/6685/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/6685/files#diff-633646152e985737e5fd12931da50f7d1f2b76bc3fbb589f7ce3fcf26f69da01
https://github.com/simstudioai/sim/pull/6685/files#diff-633646152e985737e5fd12931da50f7d1f2b76bc3fbb589f7ce3fcf26f69da01
https://github.com/simstudioai/sim/pull/6685/files#diff-633646152e985737e5fd12931da50f7d1f2b76bc3fbb589f7ce3fcf26f69da01
https://github.com/simstudioai/sim/pull/6685/files#diff-633646152e985737e5fd12931da50f7d1f2b76bc3fbb589f7ce3fcf26f69da01
https://github.com/simstudioai/sim/pull/6685/files#diff-633646152e985737e5fd12931da50f7d1f2b76bc3fbb589f7ce3fcf26f69da01
https://github.com/simstudioai/sim/pull/6685/files#diff-633646152e985737e5fd12931da50f7d1f2b76bc3fbb589f7ce3fcf26f69da01
https://github.com/simstudioai/sim/pull/6685/files#diff-633646152e985737e5fd12931da50f7d1f2b76bc3fbb589f7ce3fcf26f69da01
apps/sim/hooks/queries/general-settings.tshttps://github.com/simstudioai/sim/pull/6685/files#diff-c2a8b3f8c395c761de7cc46262d31bf26dcde16bdb20cffbb3cc76d2847bfd04
View file https://github.com/simstudioai/sim/blob/53681fb6bc251abc0b2c9c4ed07cb38f04494149/apps/sim/hooks/queries/general-settings.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/6685/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/6685/files#diff-c2a8b3f8c395c761de7cc46262d31bf26dcde16bdb20cffbb3cc76d2847bfd04
https://github.com/simstudioai/sim/pull/6685/files#diff-c2a8b3f8c395c761de7cc46262d31bf26dcde16bdb20cffbb3cc76d2847bfd04
https://github.com/simstudioai/sim/pull/6685/files#diff-c2a8b3f8c395c761de7cc46262d31bf26dcde16bdb20cffbb3cc76d2847bfd04
https://github.com/simstudioai/sim/pull/6685/files#diff-c2a8b3f8c395c761de7cc46262d31bf26dcde16bdb20cffbb3cc76d2847bfd04
Please reload this pagehttps://github.com/simstudioai/sim/pull/6685/files
https://github.com/simstudioai/sim/pull/6685/files#diff-c2a8b3f8c395c761de7cc46262d31bf26dcde16bdb20cffbb3cc76d2847bfd04
apps/sim/lib/api/contracts/user.tshttps://github.com/simstudioai/sim/pull/6685/files#diff-095f7a2d1473a6ce47da4b69d1c8ded6cf538a9c9a9f8d2957dc5539d16b827c
View file https://github.com/simstudioai/sim/blob/53681fb6bc251abc0b2c9c4ed07cb38f04494149/apps/sim/lib/api/contracts/user.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/6685/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/6685/files#diff-095f7a2d1473a6ce47da4b69d1c8ded6cf538a9c9a9f8d2957dc5539d16b827c
https://github.com/simstudioai/sim/pull/6685/files#diff-095f7a2d1473a6ce47da4b69d1c8ded6cf538a9c9a9f8d2957dc5539d16b827c
https://github.com/simstudioai/sim/pull/6685/files#diff-095f7a2d1473a6ce47da4b69d1c8ded6cf538a9c9a9f8d2957dc5539d16b827c
apps/sim/lib/users/queries.tshttps://github.com/simstudioai/sim/pull/6685/files#diff-d18ab434493cafbda9c5cb8a5d4c28634fe92598706fb9a49c19759274e7f78f
View file https://github.com/simstudioai/sim/blob/53681fb6bc251abc0b2c9c4ed07cb38f04494149/apps/sim/lib/users/queries.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/6685/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/6685/files#diff-d18ab434493cafbda9c5cb8a5d4c28634fe92598706fb9a49c19759274e7f78f
https://github.com/simstudioai/sim/pull/6685/files#diff-d18ab434493cafbda9c5cb8a5d4c28634fe92598706fb9a49c19759274e7f78f
https://github.com/simstudioai/sim/pull/6685/files#diff-d18ab434493cafbda9c5cb8a5d4c28634fe92598706fb9a49c19759274e7f78f
https://github.com/simstudioai/sim/pull/6685/files#diff-d18ab434493cafbda9c5cb8a5d4c28634fe92598706fb9a49c19759274e7f78f
apps/sim/public/tooltips/auto-connect-on-drop.mp4https://github.com/simstudioai/sim/pull/6685/files#diff-da6cc41d34e54732637fb1b4fe79a43133b7caff806d02f16b5e9761dd9a1bf0
View file https://github.com/simstudioai/sim/blob/53681fb6bc251abc0b2c9c4ed07cb38f04494149/apps/sim/public/tooltips/auto-connect-on-drop.mp4
Open in desktop https://desktop.github.com
apps/sim/public/tooltips/auto-focus-on-click.mp4https://github.com/simstudioai/sim/pull/6685/files#diff-5109c140a0f3354d3f704c0c04ee93c0ebe6c076ed43c9e096b6aa992880af28
View file https://github.com/simstudioai/sim/blob/53681fb6bc251abc0b2c9c4ed07cb38f04494149/apps/sim/public/tooltips/auto-focus-on-click.mp4
Open in desktop https://desktop.github.com
apps/sim/public/tooltips/canvas-error-notification.mp4https://github.com/simstudioai/sim/pull/6685/files#diff-bb699dd085bb08c326983a8629f5afe0c67a5874b0f46f48bdcfd44096ec93a6
View file https://github.com/simstudioai/sim/blob/53681fb6bc251abc0b2c9c4ed07cb38f04494149/apps/sim/public/tooltips/canvas-error-notification.mp4
Open in desktop https://desktop.github.com
packages/db/migrations/0290_settings_auto_focus_on_click.sqlhttps://github.com/simstudioai/sim/pull/6685/files#diff-a2635ab821276dea7628b288daaab2ff11411496034526080e481579ee1dcf4d
View file https://github.com/simstudioai/sim/blob/53681fb6bc251abc0b2c9c4ed07cb38f04494149/packages/db/migrations/0290_settings_auto_focus_on_click.sql
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/6685/{{ revealButtonHref }}
Please reload this pagehttps://github.com/simstudioai/sim/pull/6685/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/6685/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.