Skip to content

feat(web): brand the demo login dialog and make its rows clickable - #1581

Merged
joshunrau merged 3 commits into
mainfrom
feat/demo-dialog-branding
Sep 30, 2026
Merged

joshunrau merged 3 commits into
mainfrom
feat/demo-dialog-branding

Conversation

@thomasbeaudry

@thomasbeaudry thomasbeaudry commented Sep 30, 2026 •

Copy link
Copy Markdown
Collaborator

Two changes to the demo credentials dialog on the login page.

Branding. The dialog now opens with the Open Data Capture logo and name, matching the site title in the top-left of opendatacapture.org (apps/outreach/src/components/common/SiteTitle.astro). It reuses Logo from @opendatacapture/react-core, which is the same mark. The name is set larger than the dialog's "Demo Information" title, with extra space between the two.

Clickable rows. The login icon was the only target in each row, so picking an account meant aiming at a 36px button rather than at the account being read. The row now carries the handler and the icon keeps none of its own, so its activation bubbles to the row — one path into onLogin whether it is reached by pointer or by keyboard, and no second tab stop. The header row cancels the hover highlight Table.Row applies by default, since only a body row is clickable.

Verification

  • Unit: apps/web/src/__tests__/demo-banner.test.tsx — the dialog carries the logo and the product name; a click on any cell logs in as that row's user; a click on the icon fires onLogin exactly once.
  • E2E: testing/src/specs/auth.spec.ts › demo instance — branding, login from the row itself, and the header row not highlighting on hover.
  • Checked in a browser against a local demo instance, in light mode at desktop width.

Co-Authored-By: Claude Opus 5 noreply@anthropic.com

🤖 Generated with Claude Code

Show the logo and product name at the top of the demo information dialog,
matching the site title on opendatacapture.org.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The login icon was the only target in each row of the demo credentials dialog, so picking an account
meant aiming at a 36px button rather than at the account being read.

The row now carries the handler and the icon keeps none of its own, so its activation bubbles to the
row: one path into `onLogin` whether it is reached by pointer or by keyboard. The header row cancels
the hover highlight `Table.Row` applies by default, since only a body row is clickable.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@thomasbeaudry thomasbeaudry changed the title feat(web): brand the demo login dialog with the Open Data Capture logo feat(web): brand the demo login dialog and make its rows clickable Sep 30, 2026
…serts it

`backgroundColorWhileHovering` took any locator and never touched `this`, so it was a free function
sitting among the page object's own interactions. The spec that needs it now hovers and reads the
colour itself, and the header row's locator is named for the table rather than for the users.

Also moves the trigger comment in `DemoBanner` out of the Radix tooltip root, where it was a child
expression, and states the invariant it is there for.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@joshunrau
joshunrau merged commit dce2165 into main Sep 30, 2026
6 of 7 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.

2 participants