mirror of
https://github.com/Matysh/houseplan-card
synced 2026-09-28 19:01:34 +00:00
repo-hygiene caught it: HACS globs *manifest.json over the whole clone and rejects a repository with two. The dump is scripts/config-schema.json. User-Visible: no Issue: #33
43 lines
1.3 KiB
JavaScript
43 lines
1.3 KiB
JavaScript
/**
|
|
* #33: the machine-readable list of LEGITIMISED enum divergences between the
|
|
* backend schema manifest (scripts/config-schema.json) and the
|
|
* frontend const declarations.
|
|
*
|
|
* The parity test fails on any divergence that is not listed here — and on
|
|
* any entry here that no longer corresponds to a real divergence, so the
|
|
* list cannot rot. Every entry names the owning side, the value, the reason
|
|
* and the issue that owns the decision.
|
|
*/
|
|
export const SCHEMA_COMPAT_ALLOWLIST = Object.freeze([
|
|
{
|
|
pair: 'space.fill_mode',
|
|
side: 'backend-only',
|
|
value: 'glow',
|
|
reason: 'legacy stored value from the pre-#20 glow era; the space editor '
|
|
+ 'projects it and never writes it back',
|
|
issue: '#33',
|
|
},
|
|
{
|
|
pair: 'room.fill_mode',
|
|
side: 'backend-only',
|
|
value: 'glow',
|
|
reason: 'same read-compatibility as the space level',
|
|
issue: '#33',
|
|
},
|
|
{
|
|
pair: 'marker.display',
|
|
side: 'backend-only',
|
|
value: 'ripple',
|
|
reason: 'read-compatibility value; normalizeDeviceDisplay canonicalises '
|
|
+ 'it to icon_ripple and the editor rewrites it on every write',
|
|
issue: '#33',
|
|
},
|
|
{
|
|
pair: 'marker.tap_action',
|
|
side: 'backend-only',
|
|
value: 'cover',
|
|
reason: 'read/backend compatibility token; the editor no longer offers it',
|
|
issue: '#33',
|
|
},
|
|
]);
|