092a99a0

Author: Michael Lynch <git@mtlynch.io>

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

Populate sections from item autocomplete selections (#64)

Return remembered sections with item autocomplete results so the root grocery form can populate the section field immediately when a user selects a suggestion.

This removes the follow-up /api/section lookup and the unused GetItemNames store method, and updates the autocomplete custom element to carry metadata for object-backed suggestions while still supporting plain string section suggestions.

Testing:
- ./dev-scripts/run-go-tests
- nix flake check

Known limitation:
- ./dev-scripts/git-hooks/pre-commit currently fails on pre-existing ESLint errors in reference/little-moments third-party JavaScript files unrelated to this change.

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

Suite timing

Time to Start Worker time Duration Time to finish
Config 0s 1s 1s 2s
Eval 2s 35s 35s 37s
Build 3s 3m42s 34s 38s
Test - - - -
Deploy - - - -
Suite 0s 4m19s 38s 38s

Timeline

0s10s20s30s