f9a222bc

Author: Michael Lynch <git@mtlynch.io>

Committer: Michael Lynch <mtlynch@noreply.codeberg.org>

Keep item-section JSON details in handlers (#74)

Use ItemName for ItemSection.Name so remembered item-section mappings use the same validated item-name type as grocery items. Move JSON field names into a private handler response type so the shared types package remains transport-agnostic.

Testing:
- GOBIN= ./dev-scripts/run-go-tests
- nix flake check
- ./dev-scripts/git-hooks/pre-commit

Reviewed-on: https://codeberg.org/mtlynch/grosiree/pulls/74

Suite timing

Time to Start Worker time Duration Time to finish
Config 1s 2s 2s 4s
Eval 5s 29s 29s 34s
Build 6s 35s 2m04s 2m10s
Suite 1s 1m07s 2m08s 2m10s

Timeline

0s10s20s30s2m10s