You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

1.6 KiB

Plan

Status: ready_for_implement

Goal: implement ROADMAP.md Priority 3 — show the "Laundry done" status text in green (#1a7f37). T-001..T-004 are done and unchanged in behavior.

Scope

  • CSS-only change in the page plus docs and a test. No backend, JSON contract, status rule or message text changes.
  • Out of scope: dark mode, other state colors, layout changes.

T-005 — Green "Laundry done" text

Background: internal/web/static/index.html sets the #status element's class to data.state, so the done state gets class done (currently unstyled, i.e. default #111).

Files to change

  1. internal/web/handler_test.go (tests first): in TestPageAndRouting, add .done { color: #1a7f37; } (match the exact rule text used in the page) to the list of expected page substrings. Run go test ./internal/web and confirm it fails before the page change.
  2. internal/web/static/index.html: add .done { color: #1a7f37; } next to the existing .running / .waiting rules (around line 12).
  3. README.md: in the status table (line ~26) change the "Laundry done" color from "Default text color" to "Green". Check the rest of the README for any other mention of the done color and keep it consistent.
  4. ROADMAP.md: already updated by the planner (Priority 1 table row and Priority 3); no further edit needed.

Validation

  • go fmt ./..., go vet ./..., go test ./....
  • Optional smoke: run the service, force a done state, and confirm the text renders green on a 360px viewport.

Commit message

feat(web): show "Laundry done" status text in green