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
# Distinguish job artifacts
Written against: ba9dbd7cba8097928f9939579eb39779dc0dfc49
## Evidence chain
- Surface: job detail page, e.g. `https://ci.nply.org/cgi-bin/minci.cgi/index.html?report-id=18`.
- Problem: artifacts are rendered as a bare `<ul class="report-artifacts">` immediately between metadata and the log. When a job has artifacts, the link reads as ordinary body content and is not clearly separated from job metadata or log output.
- Design evidence: `README.md` says Jobfile submissions may have artifact links; `minci.css` already distinguishes log content with `.report-log` and metadata with `.lefthead.*`. The product identity is minimal text-first reporting, not rich cards or colored badges.
- Owner: `main.c` job detail renderer and `minci.css` job-detail spacing.
- Scope and affected surfaces: job detail pages with and without artifacts.
- Uncertainty: none.
## Design decision
Keep artifacts as semantic list content, but introduce a small labelled section before the log. Use a heading or labelled block (`Artifacts`) plus the existing unordered list. This makes artifacts discoverable without changing colours, adding icons, or inventing a component system.
## Reuse
- Existing semantic container: `<ul>` / `<li>` for artifact links.
- Existing detail-page pattern: `.lefthead.*` labels and `.report-log` block separation.
- Exemplar: `.report-log-box::before` uses text labelling instead of visual ornament.
## Changes
1. `main.c`
- Change: wrap artifact output in a section-like block on the job detail page. Use semantic HTML available through kcgi, preferably a heading followed by `<ul class="report-artifacts">`.
- Preserve: artifact links remain plain anchors in list items; no JavaScript and no new dependency.
- Verify: `report-id=18` shows a clear `Artifacts` label above `kidang.fcgi`.
2. `main.c`
- Change: suppress the artifact section when a job has no artifacts if the generated ORT API makes counting cheap; otherwise keep an empty labelled list but ensure it does not visually dominate.
- Preserve: logs remain visible even when there are no artifacts.
- Verify: jobs without artifacts do not show a confusing empty block.
3. `minci.css`
- Change: add modest vertical spacing for `.report-artifacts` and, if needed, a label class using current typography. Avoid new colors, borders, shadows, or badges.
- Preserve: the existing minimal report page identity.
- Verify: artifact area is visually distinct from run/date metadata and from `.report-log`.
## Scope
- Inherit: all job detail pages with artifact rows.
- Verify: foundationpkgs package job and kidang build job.
- Exclude: artifact storage layout, checksums, download server config, and dashboard artifact indicators.
## Validation
- Product: open `report-id=18` and confirm `kidang.fcgi` is immediately discoverable as an artifact.
- Interface: verify job pages with artifacts and without artifacts at narrow and wide widths.
- System: confirm generated HTML remains semantic: heading/label plus `<ul><li><a>`.
- Repository: `make` on the target build host → expected successful `minci.cgi` build.
## Stop conditions
- Stop if kcgi HTML helpers in the current dependency set cannot emit the intended semantic element without broad renderer changes; use a labelled `<div>` plus existing `<ul>` instead.
## Design documentation
- After acceptance and validation: update README report-viewing section to say job pages show logs and artifact lists.