: 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 
# Separate run and job id labels

Written against: ba9dbd7cba8097928f9939579eb39779dc0dfc49

## Evidence chain

- Surface: `https://ci.nply.org/cgi-bin/minci.cgi/index.html` and `?project-name=kidang`
- Problem: run rows link to `run-id`, but the shared `.report-id` table header is labelled as a job/report column.
- Design evidence: `README.md` describes a minimal dashboard/report viewing interface; rendered pages now have distinct run and job concepts.
- Owner: `main.c` table renderers and `minci.css` table column labels.
- Scope and affected surfaces: dashboard runs, project runs, dashboard jobs, project jobs, run detail job list.
- Uncertainty: none.

## Design decision

Use separate column classes for run identity and job identity. Run listing rows should use a run-specific class and label; job listing rows should use the existing report/job identity class. This preserves minci's compact table style while removing a vocabulary collision.

## Reuse

- Existing table structure: `.row`, `.head`, `.cell`.
- Existing status classes: `.report-pass`, `.report-fail`, `.report-status`.
- Exemplar: legacy report table classes in `main.c` + `minci.css`.

## Changes

1. `main.c`
   - Change: in run-list rendering, use `head run-id` / `cell run-id` or `head report-run` / `cell report-run` for links to `?run-id=`.
   - Preserve: job/report rows continue linking to `?report-id=`.
   - Verify: dashboard run rows visibly show run ids and still navigate to run pages.

2. `minci.css`
   - Change: add width and wide-layout pseudo-label for the new run id class, e.g. `content: 'run'`.
   - Preserve: `.report-id` remains labelled as `job` for job/report tables.
   - Verify: dashboard runs say `run`; jobs views say `job`.

## Scope

- Inherit: all run listing tables.
- Verify: dashboard runs, project runs, jobs view, project jobs, run detail.
- Exclude: URL schema changes; keep `run-id` and `report-id` query fields.

## Validation

- Product: open dashboard and confirm run list columns read as run/status/project/commit/target/latest.
- Interface: verify `index.html`, `index.html?project-name=kidang`, `index.html?view=jobs`, and `index.html?run-id=7`.
- System: confirm no new duplicate table pattern is introduced; only column class names differ.
- Repository: `make` on the target build host → expected successful `minci.cgi` build.

## Stop conditions

- Stop if CSS pseudo-labels cannot distinguish run and job contexts without changing existing table structure broadly.

## Design documentation

- After acceptance and validation: update README report-viewing section to name the run → job relationship if not already clear.