Repository navigation
fix(web): notices on Settings pages start below the page title and its buttons - #653
Merged
Merged
Conversation
…s buttons Notices land in the top-right corner, which on Settings is where each page keeps its buttons: Providers' Check again, Open setup and +, Keybindings, Agent Instructions, Diagnostics, the Plugins & Skills search box, and the phone's close button. Adding an account dropped its notice on the + just clicked. A page now marks the block notices must stay below (`useNoticeClearanceRef`). It publishes that block's bottom edge, measured as if the page were scrolled to the top, and the notice stack starts below the lowest marked block, sliding there. SettingsPageHeader marks itself (which also covers the Scheduled page), Plugins & Skills marks its tabs and search, and the phone Settings header marks itself. Leaving the page clears it.
|
The latest updates on your projects. Learn more about Vercel for GitHub. 1 Skipped Deployment
|
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Notices land in the top-right corner, which on Settings is where each page keeps its buttons: Providers' "Check again", "Open setup" and +, Keybindings, Agent Instructions, Diagnostics, the Plugins & Skills search box, and the phone's close button. Adding an account dropped its notice right on the + just clicked.
A page now marks the block notices must stay below with
useNoticeClearanceRef(components/ui/noticeLayer.tsx). It publishes that block's bottom edge, measured as if the page were scrolled to the top, as--notice-top-clearance; with several marked blocks the lowest wins. The notice viewport's top becomesmax(usual spot, clearance + 8px)and slides there in 200ms, so moving into or out of Settings doesn't jump. No per-page numbers.Marked blocks:
SettingsPageHeader(which also covers the Scheduled page and its "New task" button), the Plugins & Skills tabs + search block, and the phone Settings header. Leaving the page clears it.Checked in an isolated dev app on a wide window and at phone width: notices sit below each Settings page's title row, stay put while scrolling, and return to the usual spot outside Settings. A new browser test fails without the change.
vp fmt,vp lint,vp run typecheck, and the toast, Settings and Scheduled browser tests pass.