9fa9f44f

Author: Michael Lynch <git@mtlynch.io>

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

Add ItemName type for validated grocery item names (#58)

Introduces a typed ItemName struct in types/grocery.go that rejects
empty or whitespace-only names and strips leading/trailing whitespace.
Changes GroceryItem.Name from string to ItemName and updates all
references in the sqlite store. Adds unit tests.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

Reviewed-on: https://codeberg.org/mtlynch/grosiree/pulls/58
Co-authored-by: Michael Lynch <git@mtlynch.io>
Co-committed-by: Michael Lynch <git@mtlynch.io>

Suite timing

Time to Start Worker time Duration Time to finish
Config 0s 1s 1s 1s
Eval 1s 28s 28s 29s
Build 2s 1m38s 34s 36s
Test - - - -
Deploy - - - -
Suite 0s 2m07s 36s 36s

Timeline

0s10s20s30s