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
# Make runs and jobs switch explicit
Written against: ba9dbd7cba8097928f9939579eb39779dc0dfc49
## Evidence chain
- Surface: dashboard and project pages.
- Problem: the current switch appears as a lone inline word in the breadcrumb, e.g. `Dashboard › Runs jobs`, making current view and alternate view hard to parse.
- Design evidence: `README.md` describes a minimal web interface; `minci.css` uses simple header text and links, so the correction should remain text-only and compact.
- Owner: `main.c` header rendering for dashboard and project pages.
- Scope and affected surfaces: dashboard runs/jobs and project runs/jobs.
- Uncertainty: none.
## Design decision
Render the switch as explicit text: `view: runs | jobs`. The current view is plain text; the alternate view is a link. This keeps the minimal UI while making navigation state unambiguous.
## Reuse
- Existing header structure: `body > header`, `h1`, inline `a` and `span`.
- Existing routes: `index.html`, `index.html?view=jobs`, `index.html?project-name=<name>`, `index.html?project-name=<name>&view=jobs`.
- Exemplar: current breadcrumb header in `main.c`.
## Changes
1. `main.c`
- Change: replace bare alternate link in dashboard header with `view: runs | jobs`.
- Preserve: `Dashboard › Runs` / `Dashboard › Jobs` breadcrumb identity.
- Verify: current view is visible without relying on link styling.
2. `main.c`
- Change: apply the same switch on project pages.
- Preserve: project name remains in breadcrumb.
- Verify: project-specific links preserve the `project-name` query parameter.
3. `minci.css`
- Change: only add a tiny spacing helper class if needed; avoid color or button styling.
- Preserve: fixed dark header and existing link style.
- Verify: switch remains readable in narrow and wide layouts.
## Scope
- Inherit: dashboard and project list pages.
- Verify: query strings generated for both modes.
- Exclude: run detail and job detail pages unless adding a back link is separately requested.
## Validation
- Product: click from dashboard runs to jobs and back; click from `kidang` project runs to jobs and back.
- Interface: verify no breadcrumb reads as concatenated text such as `Runs jobs`.
- System: confirm routes still use existing query parameters and no routing layer is added.
- Repository: `make` on the target build host → expected successful `minci.cgi` build.
## Stop conditions
- Stop if making the switch explicit requires route parsing beyond the existing query-string check.
## Design documentation
- After acceptance and validation: none required beyond current README unless wording around runs/jobs changes.