Skip to content

fix(ui): compact, end-aligned anchored confirmations - #3849

Merged
bobleer merged 1 commit into
openBitFun:mainfrom
bobleer:bob/fix-anchored-confirm-popover
Nov 9, 2026
Merged

bobleer merged 1 commit into
openBitFun:mainfrom
bobleer:bob/fix-anchored-confirm-popover

Conversation

@bobleer

@bobleer bobleer commented Nov 9, 2026

Copy link
Copy Markdown
Collaborator

Summary

Anchored (beside-the-trigger) confirmation popovers now read as compact questions and line up with the action that opened them.

  • Title uses the section heading scale (15px semibold) and wraps up to three lines instead of the modal's 24px bold single line with a fade, so long names such as scheduled task or model names are no longer cut off. DialogTitle gains an optional lines prop.
  • Anchored surfaces get even 16px padding and small action buttons.
  • useAnchoredLayer accepts a logical align (start by default, RTL aware). Anchored Dialogs use end, so the popover's right edge meets the trigger's right edge instead of spilling right from its left edge. Menus, Select and Combobox keep start alignment.

Type and Areas

Type: UI/UX

Areas: design system (@openbitfun/ui), web UI

Motivation / Impact

Delete confirmations for scheduled tasks, model configurations and other trailing actions looked unbalanced: an oversized truncated title, and a popover extending away from the button that opened it. All anchored confirmations (confirmDanger / confirmDialog with an anchor and direct ConfirmDialog anchor=... uses) pick up the new layout. Modal confirmations are unchanged.

Verification

  • pnpm --dir design-system run build:ui
  • node --test design-system/packages/ui/tests/{dialog,confirm-dialog,select,overlay-kernel,registry}.test.mjs: 22 passed
  • pnpm --dir src/web-ui exec vitest run src/infrastructure/confirm-dialog src/shared/ui/ConfirmationInteraction.test.tsx: 20 passed (position expectations updated for end alignment)
  • pnpm --dir src/web-ui exec tsc --noEmit -p .: passed
  • pnpm run check:repo-hygiene: passed

Not checked visually in the running desktop app. Layout-only change; no remote scenario behavior is affected.

Reviewer Notes

Near the left viewport edge the popover is still clamped inside the window, and it still flips above the trigger near the bottom edge.

Checklist

  • This PR is focused and does not include secrets, temporary prompts, generated scratch files, or unrelated artifacts.
  • Relevant verification is recorded above, or skipped checks are explained.
  • User-facing strings, docs, and locales are updated where applicable.

Anchored confirmations reused the modal dialog title (24px bold, single
line with a fade), so long item names were cut off and the title
overpowered the popover. They also aligned their left edge to the
trigger, so popovers opened from trailing actions spilled to the right.

- Anchored ConfirmDialog titles use the section heading scale and wrap
  up to three lines; DialogTitle gains an optional `lines` prop.
- Anchored surfaces get even 16px padding and small action buttons.
- useAnchoredLayer accepts a logical `align` (start by default, RTL
  aware); anchored Dialogs align their end edge with the trigger.
  Menus, Select and Combobox keep start alignment.
@bobleer
bobleer merged commit 088946e into openBitFun:main Nov 9, 2026
9 checks passed
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