: nply/minci

commit 0527610a5ac9ed04ef9daa1a2d60884ec4bffbb1
parent afb38684344e077b73ad7d355c0bf3599bd24763
Author: Bharatvaj Hemanth <bharatvaj@yahoo.com>
Date: Mon, 14 Sep 2026 19:50:06 +0530

Add AI workspace files
7 files changed, 308 insertions(+), 0 deletions(-)
A
.claude/skills/improve-ui
|
2
++
A
design-plans/001-separate-run-and-job-id-labels.md
|
55
+++++++++++++++++++++++++++++++++++++++++++++++++++++++
A
design-plans/002-make-runs-jobs-switch-explicit.md
|
60
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
A
design-plans/003-reduce-table-overflow-on-narrow-views.md
|
60
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
A
design-plans/004-distinguish-job-artifacts.md
|
60
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
A
design-plans/005-semantic-runs-jobs-switch.md
|
60
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
A
skills-lock.json
|
11
+++++++++++
diff --git a/.claude/skills/improve-ui b/.claude/skills/improve-ui
@@ -0,0 +1 @@
+../../.agents/skills/improve-ui+
\ No newline at end of file
diff --git a/design-plans/001-separate-run-and-job-id-labels.md b/design-plans/001-separate-run-and-job-id-labels.md
@@ -0,0 +1,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.
diff --git a/design-plans/002-make-runs-jobs-switch-explicit.md b/design-plans/002-make-runs-jobs-switch-explicit.md
@@ -0,0 +1,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.
diff --git a/design-plans/003-reduce-table-overflow-on-narrow-views.md b/design-plans/003-reduce-table-overflow-on-narrow-views.md
@@ -0,0 +1,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.
diff --git a/design-plans/004-distinguish-job-artifacts.md b/design-plans/004-distinguish-job-artifacts.md
@@ -0,0 +1,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.
diff --git a/design-plans/005-semantic-runs-jobs-switch.md b/design-plans/005-semantic-runs-jobs-switch.md
@@ -0,0 +1,60 @@
+# Make the runs and jobs switch semantic
+
+Written against: ba9dbd7cba8097928f9939579eb39779dc0dfc49
+
+## Evidence chain
+
+- Surface: dashboard and project headers, e.g. `https://ci.nply.org/cgi-bin/minci.cgi/index.html` and `?view=jobs`.
+- Problem: the switch is rendered as inline breadcrumb text plus a lone alternate link (`Dashboard › Runs jobs`, `Dashboard › Jobs runs`). The relationship between current view and alternate view is understandable only by inference.
+- Design evidence: `README.md` frames minci as a minimal web interface; current `main.c` already uses simple structural HTML (`header`, heading, links, tables). The user explicitly asked to maintain semantic HTML while improving spacing and flow.
+- Owner: `main.c` header rendering and `minci.css` header/link spacing.
+- Scope and affected surfaces: dashboard runs/jobs and project runs/jobs.
+- Uncertainty: none.
+
+## Design decision
+
+Separate breadcrumb identity from view switching. Keep the existing heading for location, then add a small semantic navigation block for the local view switch: `view: runs | jobs`. Use plain links/spans, not buttons, because this is navigation between URLs.
+
+## Reuse
+
+- Existing `body > header`, `h1`, `a`, `span` pattern.
+- Existing URLs: `index.html`, `index.html?view=jobs`, `index.html?project-name=<name>`, and `index.html?project-name=<name>&view=jobs`.
+- Exemplar: current fixed header and text-first table navigation.
+
+## Changes
+
+1. `main.c`
+   - Change: after the breadcrumb text, emit a semantic navigation element if kcgi supports it; otherwise emit a small labelled span group with class `view-switch`.
+   - Preserve: current view remains visible as text; alternate view remains a normal anchor.
+   - Verify: dashboard header reads like `Dashboard › Runs    view: runs | jobs`, not `Runs jobs`.
+
+2. `main.c`
+   - Change: apply the same switch to project pages, preserving the selected project in generated links.
+   - Preserve: project name remains the primary breadcrumb item.
+   - Verify: `?project-name=kidang` links to `?project-name=kidang&view=jobs`, and the jobs page links back to `?project-name=kidang`.
+
+3. `minci.css`
+   - Change: add small spacing for `.view-switch` and `.view-switch-current` using existing header typography. Avoid colour changes except inherited link/text colour.
+   - Preserve: fixed compact header, no tabs, no button chrome.
+   - Verify: the switch is readable in the fixed header without wrapping awkwardly at common widths.
+
+## Scope
+
+- Inherit: dashboard and project list pages only.
+- Verify: run detail and job detail breadcrumbs remain unchanged unless adding a separate back-link is requested.
+- Exclude: route changes, JavaScript, active-tab components, icons, and colour changes.
+
+## Validation
+
+- Product: switch dashboard runs ↔ jobs and project runs ↔ jobs; confirm the current view and alternate view are clear.
+- Interface: inspect rendered header text at narrow and wide widths.
+- System: confirm no duplicate route-building helper or new frontend abstraction is introduced.
+- Repository: `make` on the target build host → expected successful `minci.cgi` build.
+
+## Stop conditions
+
+- Stop if adding semantic navigation requires unsupported kcgi enum changes; fall back to a labelled inline span group.
+
+## Design documentation
+
+- After acceptance and validation: none required.
diff --git a/skills-lock.json b/skills-lock.json
@@ -0,0 +1,11 @@
+{
+  "version": 1,
+  "skills": {
+    "improve-ui": {
+      "source": "ibelick/ui-skills",
+      "sourceType": "github",
+      "skillPath": "skills/improve-ui/SKILL.md",
+      "computedHash": "5bd7689c5508c6bd8166f796b3d1bd32255077447595b14b60fac9847dce63f1"
+    }
+  }
+}