Skip to content

Keep the Live switch in one place, on and off - #32

Merged
Joon2000 merged 1 commit into
mainfrom
fix/live-switch-position
Oct 1, 2026
Merged

Joon2000 merged 1 commit into
mainfrom
fix/live-switch-position

Conversation

@HeesungB

@HeesungB HeesungB commented Oct 1, 2026

Copy link
Copy Markdown
Collaborator

Why

The Live switch on Transactions (#31) moved when it was pressed. Off, it stood at the end of the filter row, after Apply and Clear; on, it was the first of the live controls. Turning Live on put the button somewhere else, and turning it off again meant looking for it.

What

  • One place. The switch is the first thing in both toolbars: before Template on the paged list, before Pause on the live screen. It is the mode the rest of the row depends on, and on the live screen Pause and the interval stay right next to it.
  • One size. Live off and Live on share one width (84px), and the live toolbar is held to the paged toolbar's height (52px, the height its text fields give it). The switch and the top of the table no longer shift between the two states.
  • The dot is drawn, not typed. The ● glyph took its size and baseline from the font, so it came out larger than the label and off its centre line, and the space after it was dropped inside the flex button. It is now an 8px circle on the button's centre with a 6px gap: faint when off, the live colour when on.
  • The button carries aria-pressed, so the state is said as well as drawn.

The label text Live on is kept, which screens.test.mjs asserts.

Checked locally

  • pnpm lint, pnpm typecheck, pnpm test (core 138 · backend 143 · frontend 68), pnpm build — all green.
  • In Chrome at 1920px wide against a local Canton participant (shared-identity), measured on both states: the switch at the same x/y (297, 201) and width (84px), the toolbar 52px in both, the dot 8px with its centre on the button's centre (0px offset). The table's first row is within 1px between the two states.

🤖 Generated with Claude Code

Off, the switch stood at the end of the filter row; on, at the start of the live controls, so pressing it
moved it out from under the pointer. It is now the first thing in both toolbars, one width for "Live off"
and "Live on", and the live toolbar is as tall as the paged one, so neither the switch nor the table below
moves when it is pressed.

The dot is drawn as an 8px circle instead of a "●" glyph: the glyph took its size and height from the font
and came out larger than the label and off its centre line. Off it is faint, on it is the live colour, and
the button carries aria-pressed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@HeesungB
HeesungB requested a review from Joon2000 October 1, 2026 04:38

@Joon2000 Joon2000 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Joon2000
Joon2000 merged commit 64ba12a into main Oct 1, 2026
5 checks passed
@Joon2000
Joon2000 deleted the fix/live-switch-position branch October 1, 2026 05:13
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