mirror of
https://github.com/jez500/pricebuddy.git
synced 2026-11-24 19:58:13 +01:00
Hide `settings` from sparse fieldset responses. The stores list handler
force-selects the column so the `currency` and `locale` accessors resolve,
but StoreTransformer emits every loaded attribute, so an internal workaround
leaked per-store scraper configuration into a response that asked for
`id,name`. Hide it again after pagination unless it was explicitly requested.
Fall back to the app defaults when a store's locale override is present but
empty. The accessors use data_get(), which only falls back when the key is
absent, so `locale_settings: {currency: null, locale: null}` serialised as
`currency: null` and `locale: ""` — both rejected by Intl.NumberFormat.
Matches the existing guard in MetaExtractionResource.