Skip to content
This repository was archived by the owner on Aug 9, 2026. It is now read-only.

fix(schema): align output CSV to official lowercase snake_case template - #1

Merged
ajbarea merged 3 commits into
mainfrom
fix/output-csv-schema
May 1, 2026
Merged

ajbarea merged 3 commits into
mainfrom
fix/output-csv-schema

Conversation

@ajbarea

@ajbarea ajbarea commented May 1, 2026

Copy link
Copy Markdown
Owner

Summary

  • Aligns the predictions CSV header + values to the contest's official support_tickets/output.csv template (lowercase snake_case), which differs from the Title Case header in sample_support_tickets.csv that the previous schema followed
  • Editorial redesign of the docs home hero (two-column, separated image, inline stats strip)
  • Pre-submission build hygiene: include uv.lock in the code zip so the rubric's reproducibility criterion is met

Changes

  • fix(schema): align output CSV to official lowercase snake_case template
  • docs(home): two-column hero with separated image and inline stats strip
  • fix(scripts): include uv.lock in submission zip for reproducibility

Test plan

  • uv run --group dev pytest tests/ -q — 32/32 pass (added test_write_output_uses_lowercase_snake_case_schema)
  • uv run --group dev ruff check . and ruff format --check . clean
  • uv run zensical build --clean clean (no link/anchor issues)
  • Verified support_tickets/output.csv header now matches ORIGINAL_support_tickets/output.csv template byte-for-byte
  • Manually screenshotted desktop + mobile via puppeteer mobile emulation; both render as designed

ajbarea added 3 commits May 1, 2026 09:27
- Flipped CSV_COLUMNS in schema.py to the lowercase snake_case header that ships in `support_tickets/output.csv` (the contest template), not the Title Case header used in `sample_support_tickets.csv`
- Updated write_output to emit lowercase keys + lowercase status values; previously was emitting Title Case "Replied"/"Escalated" inferred from the sample
- Made _PriorRow + the resume read paths case-insensitive via a shared `_get` helper so older lowercase or Title Case `output.csv` files both round-trip
- Added test_write_output_uses_lowercase_snake_case_schema covering header + status enum casing; updated existing fixtures and the schema test to the new format
- Bumped README test count to match (31 → 32)
- Restructured `docs/index.md` hero into `.hero-content` (eyebrow, title, subtitle, buttons) plus a sibling `.hero-figure` framing the image; removed the scroll-hint chevron
- Replaced full-bleed `.hero--bg` background-image stack with a two-column grid layout, atmospheric radial backdrop via ::before, and a framed image figure with a pulsing teal corner-mark
- Reworked `.hero-stats` from glass chips to an inline editorial data strip (mono numbers, hairline rules, vertical separators); on mobile collapses to a 2x2 grid with row-aware dividers
- Added `display: contents` overrides for the markdown-injected `<p>` wrappers inside `.hero-stats` and `.hero-buttons` so flex/grid sees the real children
- Reorganized button styling into a primary/secondary hierarchy; mobile grid stacks primary full-width with secondaries side-by-side; min 44px tap target
- Removed `uv.lock` from EXCLUDED_NAMES so the submission bundle ships pinned dependencies; the evaluation rubric calls out determinism + pinned deps explicitly
@ajbarea
ajbarea merged commit f8a3345 into main May 1, 2026
3 checks passed
@ajbarea
ajbarea deleted the fix/output-csv-schema branch May 1, 2026 14:21
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant