Repository navigation
good-first: wire settings Field labels with htmlFor and id - #460
Conversation
|
🐱 By the way, I left a small Easter egg in |
unjica
left a comment
There was a problem hiding this comment.
Thanks for the contribution — and the cat Easter egg made me smile. 😄
Before we merge, could you please remove it from settings-ui.tsx? We’d like to keep shared UI components free of unrelated comments so we can apply the same convention consistently across the codebase.
There’s also the build failure to address (SettingsToggle needs to accept and forward the id prop used by AlertsClient).
Once those are fixed and the build is green, I’ll take another look. Thanks again!
Fix formatting by adding a newline at the end of the file.
|
Hey @unjica! 👋 Thanks for the review. I've fixed the SettingsToggle The build is now passing. Ready for another look! 🚀 |
|
I use Arch btw |
unjica
left a comment
There was a problem hiding this comment.
Thanks for the follow-up — Easter egg is gone and the build is green. Almost there.
Blocker: In AlertsClient, the toggle fields set htmlFor but never pass a matching id on SettingsToggle:
htmlFor="error-spike-toggle"→ needsid="error-spike-toggle"on the togglehtmlFor="quota-toggle"→ needsid="quota-toggle"on the toggle
SettingsToggle already forwards id via ...rest, so this is just wiring at the call sites. Number inputs (error-threshold, error-window, quota-threshold) look correct.
Without those ids, clicking the Field label does nothing for the toggles, which is the main acceptance criteria for #380.
Nit (non-blocking): The onChange rewrites in Labs / Notifications / Preferences (ignore the boolean and flip from state) aren’t needed for this issue — the previous (v) => … form matched SettingsToggle’s API. Fine to leave if you prefer, but not required for merge.
Once the two toggle ids are in, I’ll approve.
|
Hey @unjica! 👋 Thanks for the review. I've added the missing
Now clicking the Field labels should toggle the switches correctly. Ready for another look! 🚀
|
|
Conflicts resolved and branch updated! Ready for another look whenever you have time 🙂 |
…metry-Tracker#460) and product email line-close (Telemetry-Tracker#553). Co-authored-by: Cursor <[email protected]>
Base branch: open feature and fix PRs against
develop. Milestone releases promotedevelop→main— see docs/RELEASE.md.Summary
#380
How to test
Code review (Bugbot)
/review-bugbotin Cursor before opening this PR (optional but recommended — GitHub Bugbot may skip duplicate review).cursor/BUGBOT.mdif a finding was a false positive)Checklist
pnpm test; useRUN_DB_INTEGRATION_TESTS=true+ Postgres if API integration behavior changed)pnpm lint)pnpm build)[Unreleased](if user-facing)Security / privacy