Repository navigation
fix(ui): draw alerts in the top right corner, clear of the foot of the page - #56
Open
calvinbrewer wants to merge 1 commit into
Open
calvinbrewer wants to merge 1 commit into
calvinbrewer wants to merge 1 commit into
Conversation
…e page An alert that stays (danger, working, stays) sat over the bottom centre of the page until it was dismissed: a form's buttons, a panel pinned to the bottom, the last rows of a list. The stack is now under the top bar on the right, and narrower. A browser test raises a staying alert from a button held at the foot of a page, then presses that button and reaches the last row of the list without dismissing it. Co-Authored-By: Claude Fable 5.2 <[email protected]>
This branch has not been 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.
What
Alerts are now drawn in the top right corner of the page, under the top bar, 320px wide. They were at the bottom centre, 384px wide.
Why
An alert that stays (
danger,working,stays) sat over the foot of the page until it was dismissed: a form's buttons, a panel pinned to the bottom, the last rows of a list. In an app built on Spools, a refused form submit raised a staying alert over the submit button of a bottom-pinned panel, and the button could not be pressed again until the alert was dismissed.The cost
No corner is empty. In the top right, a staying alert can sit over the right end of whatever is directly under the top bar until it is dismissed: a list's "New" button and search box, and the last tabs of the classic record page. Top centre would clear the list toolbar but cover a record's first tabs and favourite star.
docs/alerts.mdsays this.An alert raised while a dialog is open is drawn behind the dialog's backdrop, as before. That is not changed here.
Checked
alerts.e2e.ts: a stayingdangeralert is raised from a button held at the foot of a page, then the button is pressed again and the last row of the list is reached without dismissing. It fails on the old placement and passes on the new one.bun run verifyandbun run test:e2epass (59 tests).The test needed a
SignOffcomponent in the starter's test UI and one more item in the Pipeline test layout. The docs search index is regenerated for the changed page. Patch changeset included.🤖 Generated with Claude Code
Ask Polylane for an impact assessment of this pull request: