Skip to content

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
mainfrom
fix/alerts-clear-of-controls
Open

calvinbrewer wants to merge 1 commit into
mainfrom
fix/alerts-clear-of-controls

Conversation

@calvinbrewer

@calvinbrewer calvinbrewer commented Dec 4, 2026 •

Copy link
Copy Markdown
Contributor

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.md says this.

An alert raised while a dialog is open is drawn behind the dialog's backdrop, as before. That is not changed here.

Checked

  • Classic record page, a laid-out page, an open dialog and a 390px-wide window, by screenshot.
  • New browser test in alerts.e2e.ts: a staying danger alert 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 verify and bun run test:e2e pass (59 tests).

The test needed a SignOff component 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:

Assess with Polylane

…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

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant