Commit Graph

3 Commits

Author SHA1 Message Date
31535e944d fix: move embed to repo root; make build sequential
- Move embed_prod.go/embed_dev.go out of cmd/wotra/ into root-level
  assets_prod.go / assets_dev.go (package assets). go:embed paths
  must be relative to the source file; cmd/wotra/ cannot reach
  ../../web/build.
- Update cmd/wotra/main.go to import the root assets package.
- Change mise.toml build task from parallel depends to sequential
  shell commands (build:web then build:go) so the frontend is always
  compiled before the Go embed runs.
2026-05-01 09:39:52 +02:00
6c4f78d101 chore(web): add Vitest; add dayCapabilities helper with full test coverage
- Install vitest + jsdom
- Add test/test:watch scripts to package.json
- Add test:web and test:all tasks to mise.toml
- Add dayCapabilities() to utils.ts — single source of truth for
  what actions are permitted per day (future/today/past, open/closed)
- Add DayCapabilities interface to utils.ts
- 11 unit tests: dayCapabilities (5 cases), weekDayKeys (3 cases),
  isWorkday (3 cases)
2026-04-30 19:03:04 +02:00
245edf1534 chore: add mise.toml for tool versions and tasks, thin Makefile shim 2026-04-30 17:35:28 +02:00