review: the scan the first two commits needed

Five findings, all valid.  The substantive one: the video page's Download /
Delete / Refresh / AddToPlaylist strip was still four bare buttons in a `<p>` --
the direct analogue of the archive row this PR started with -- and the scan that
was supposed to catch exactly that reported the app clean.

It only ever saw `{fooButton}` interpolations, and most of the app writes its
buttons out in place.  Scanning for adjacent button ELEMENTS finds twelve more
rows in the same state: reorder icons in the playlist and field-schema tables,
both service tables on the controller page, its hotspot Save/QR pair and its
Restart/Shutdown pair, the downloads footer, the one-time pad's Generate/Cheat
Sheet, and the ration calculator's CSV/Print.  All rowed.

Two holes had to be closed before that scan could be trusted, because a scan
that reports noise is worse than one with a stated limit:

  - `tagsIn` never captured the tag NAME, so `ROW_COMPONENTS.has(undefined)` was
    false for every tag and the list of components that lay out their own
    children -- Group, ButtonGroup, Modal.Actions -- silently accepted none of
    them.  56 false positives, every modal footer in the app among them.
  - A row whose style is a const (`style={seasonRowStyle}`) says nothing in its
    own attributes.  Resolved now; the dates selector's seasons row is a
    four-column grid with a gap and was reported three times.

Also from review: the row body is found by walking to the MATCHING close rather
than the first `</div>`, which one nested div would have truncated -- and the
collection form now nests one, so this was about to matter.  Cancel and Save
travel together in a row of their own pushed to the end; `margin-left: auto` on
Save alone was right for a row that could not wrap, and would now drop Save onto
a second line by itself with Cancel left among the action buttons.  The doc
page's comment no longer implies the picker's 1em separation was not a change.

One more found on the way: the file browser's filter row is flex with no gap, and
its collapse-all button carried `margin-left: 0.5em` for it.  The gap is the
container's.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Roland 2026-08-05 17:06:56 -06:00
parent 076e982b69
commit 4a51662714
No known key found for this signature in database
GPG key ID: 1BA620CE6C9A4680
12 changed files with 200 additions and 61 deletions

View file

@ -286,6 +286,7 @@ function MobileServiceRow({service, onAction}) {
<div style={{fontSize: '0.9em', color: 'var(--muted)'}}>{service.description}</div>}
</Table.Cell>
<Table.Cell numeric>
<div className='wrolpi-button-row' style={{justifyContent: 'flex-end'}}>
{isRunning ? (
<IconButton
icon='stop'
@ -319,6 +320,7 @@ function MobileServiceRow({service, onAction}) {
role='primary'
onClick={handleViewLogs}
/>
</div>
<ServiceLogsModal
service={service}
logsOpen={logsOpen}
@ -366,6 +368,7 @@ function DesktopServiceRow({service, onAction, dockerized}) {
</Table.Cell>
<Table.Cell>{service.port || '-'}</Table.Cell>
<Table.Cell>
<div className='wrolpi-button-row'>
{isRunning ? (
<IconButton
icon='stop'
@ -399,6 +402,7 @@ function DesktopServiceRow({service, onAction, dockerized}) {
role='primary'
onClick={handleViewLogs}
/>
</div>
<ServiceLogsModal
service={service}
logsOpen={logsOpen}
@ -1575,7 +1579,7 @@ function HotspotSettingsForm() {
onChange={(value) => setForm({...form, protocol: value})}
/>
</Group>
<div style={{marginTop: '0.8em'}}>
<div className='wrolpi-button-row' style={{marginTop: '0.8em'}}>
<Button
color='violet'
disabled={dockerized}
@ -1586,7 +1590,6 @@ function HotspotSettingsForm() {
icon='qrcode'
label='Scan this code to join the hotspot'
color='violet'
style={{marginLeft: '0.5em'}}
onClick={() => setQrOpen(true)}
/>
<Modal size='small' open={qrOpen} onClose={() => setQrOpen(false)} closeIcon>
@ -1620,7 +1623,7 @@ function AdminControlsSection() {
<HotspotSettingsForm/>
{!dockerized && (
<div style={{marginTop: '1em'}}>
<div className='wrolpi-button-row' style={{marginTop: '1em'}}>
<RestartButton/>
<ShutdownButton/>
</div>