: nply/minci

1 
2 
3 
4 
5 
6 
7 
8 
9 
10 
11 
12 
13 
14 
15 
16 
17 
18 
19 
20 
21 
22 
23 
24 
25 
26 
27 
28 
29 
30 
31 
32 
33 
34 
35 
36 
37 
38 
39 
40 
41 
42 
43 
44 
45 
46 
47 
48 
49 
50 
51 
52 
53 
54 
55 
56 
57 
58 
59 
60 
# Reduce table overflow on narrow views

Written against: ba9dbd7cba8097928f9939579eb39779dc0dfc49

## Evidence chain

- Surface: dashboard and project tables with long targets such as `x86_64-unknown-linux-gnu`.
- Problem: rows use `white-space: nowrap`, fixed column widths, and row-level overflow clipping, so long target text competes with adjacent commit/latest fields.
- Design evidence: `minci.css` establishes compact responsive tables with hidden headers on narrow layouts and full flex table at `min-width: 80rem`.
- Owner: `minci.css` table layout; `main.c` only supplies existing semantic column classes.
- Scope and affected surfaces: run/job list tables on dashboard and project pages.
- Uncertainty: exact narrow breakpoint behavior should be checked in a browser or by inspecting rendered HTML/CSS at small widths.

## Design decision

Keep the compact table identity, but make narrow rows prioritize identity and status. On narrow screens, hide lower-priority target/latest details or let them occupy a secondary line; on wide screens, keep the full tabular layout with explicit target/latest columns.

## Reuse

- Existing responsive breakpoint: `@media (min-width: 80rem)`.
- Existing table classes: `.row`, `.head`, `.cell`, `.report-target`, `.report-newest`, `.report-commit`.
- Exemplar: existing hidden commit behavior before the wide breakpoint.

## Changes

1. `minci.css`
   - Change: make `.report-target` follow the existing narrow-layout treatment used by `.report-commit`: hide or constrain it before the wide breakpoint.
   - Preserve: target remains visible in wide table layouts.
   - Verify: narrow rows no longer visually collide with latest/date fields.

2. `minci.css`
   - Change: if target must remain visible on narrow layouts, allow run/job rows to wrap only target/latest into a second line while preserving table scan order.
   - Preserve: the current no-card, no-framework table style.
   - Verify: project/status/report remain scannable at mobile widths.

3. `main.c`
   - Change: avoid adding new markup unless CSS alone cannot express the layout.
   - Preserve: generated HTML stays a simple sequence of `.row` and `.cell` divs.
   - Verify: old legacy report table remains unchanged.

## Scope

- Inherit: all new run/job tables using `report-target`.
- Verify: legacy machine/system report tables are unaffected.
- Exclude: color, typography, and broader visual redesign.

## Validation

- Product: open dashboard and project pages with long target text and confirm target does not overlap/visually run into latest.
- Interface: test both narrow and wide viewport behavior for dashboard runs, dashboard jobs, project runs, and project jobs.
- System: confirm no new table variant duplicates existing responsive rules.
- Repository: `make` on the target build host → expected successful `minci.cgi` build.

## Stop conditions

- Stop if hiding target on narrow screens removes required information from the only available view; choose the secondary-line approach instead.

## Design documentation

- After acceptance and validation: none required.