feat(app): add template catalogue and create-only submit repository

Add the nonvisual templates data/domain slice: TemplateRepository over the
shared ApiGateway for list_templates, validate and create-only submit, and
TemplateEntry preserving every server field in a deeply read-only raw map.

Re-include test/**/data/ in app/.gitignore so the mirroring tests are not
silently dropped from a fresh checkout.

Tests cover exact request shapes, source preservation, blank-name refusal,
malformed replies, server refusals and immutability.
This commit is contained in:
2026-10-21 15:31:10 +01:00
parent 3dde2888b3
commit cd9ec62d28
7 changed files with 651 additions and 1 deletions
+5 -1
View File
@@ -45,6 +45,10 @@ app.*.map.json
/android/app/release
# The repository ignores runtime data/ directories. Feature repository source
# is code, not runtime data, and must be included in fresh checkouts.
# and its mirroring tests are code, not runtime data, and must be included in
# fresh checkouts. The test negation is required too: without it every
# `test/**/data/` directory is silently dropped from the candidate.
!/lib/**/data/
!/lib/**/data/**
!/test/**/data/
!/test/**/data/**