fix: style guide compliance batch 1 + date segment type #83

Merged
forbes merged 3 commits from fix-style-guide-batch-1 into main 2026-02-13 19:13:35 +00:00
Owner

Three small fixes resolved in one branch:

#65 — Item type badge colors aligned with style guide

  • Part: blue → green (--ctp-green)
  • Assembly: green → mauve (--ctp-mauve)
  • Document: yellow → blue (--ctp-blue)
  • Added purchased (peach) and phantom (overlay1) entries
  • Files: ItemTable.tsx, ItemDetail.tsx

#66 — Font stack corrected to system fonts only

  • Removed Inter and Roboto, added system-ui
  • File: global.css

#79 — Date segment type implemented

  • resolveSegment() now handles type: "date" using Go's time.Format
  • Uses segment Value field as the layout string (e.g. "20060102", "0601", "2006")
  • Defaults to YYYYMMDD when no format is specified
  • 3 new tests added, all 10 partnum tests pass
  • Files: generator.go, generator_test.go

Closes #65, closes #66, closes #79

Three small fixes resolved in one branch: ## #65 — Item type badge colors aligned with style guide - Part: blue → green (`--ctp-green`) - Assembly: green → mauve (`--ctp-mauve`) - Document: yellow → blue (`--ctp-blue`) - Added `purchased` (peach) and `phantom` (overlay1) entries - Files: `ItemTable.tsx`, `ItemDetail.tsx` ## #66 — Font stack corrected to system fonts only - Removed `Inter` and `Roboto`, added `system-ui` - File: `global.css` ## #79 — Date segment type implemented - `resolveSegment()` now handles `type: "date"` using Go's `time.Format` - Uses segment `Value` field as the layout string (e.g. `"20060102"`, `"0601"`, `"2006"`) - Defaults to YYYYMMDD when no format is specified - 3 new tests added, all 10 partnum tests pass - Files: `generator.go`, `generator_test.go` Closes #65, closes #66, closes #79
forbes added 3 commits 2026-02-13 19:11:12 +00:00
Fixes #65

- Part: blue → green (--ctp-green)
- Assembly: green → mauve (--ctp-mauve)
- Document: yellow → blue (--ctp-blue)
- Add purchased (--ctp-peach) and phantom (--ctp-overlay1)
- Keep tooling as red (--ctp-red)
Fixes #66

Remove Inter and Roboto from font-family. The style guide specifies
system fonts only: -apple-system, BlinkMacSystemFont, Segoe UI,
system-ui, sans-serif.
Fixes #79

Implement the date segment type in the part number generator. Uses Go's
time.Format with the segment's Value field as the layout string.

- Default format: 20060102 (YYYYMMDD) when no Value is specified
- Custom formats via Value field: "0601" (YYMM), "2006" (YYYY), etc.
- Always uses UTC time
- Add 3 tests: default format, custom YYMM format, year-only format
forbes merged commit 65063c9ee7 into main 2026-02-13 19:13:35 +00:00
forbes deleted branch fix-style-guide-batch-1 2026-02-13 19:13:36 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: kindred/silo#83