AppView in a box as a Vite plugin thing hatk.dev
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

feat: extract describeLabels defs to named types with locales

Move inline label definition object to named `labelDefinition` and
`labelLocale` defs so codegen produces reusable TypeScript types.
Adds `locales` array for human-readable label names and descriptions.

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

+24 -10
+24 -10
packages/hatk/src/lexicons/dev/hatk/describeLabels.json
··· 12 12 "properties": { 13 13 "definitions": { 14 14 "type": "array", 15 - "items": { 16 - "type": "object", 17 - "required": ["identifier", "severity", "blurs", "defaultSetting"], 18 - "properties": { 19 - "identifier": { "type": "string" }, 20 - "severity": { "type": "string" }, 21 - "blurs": { "type": "string" }, 22 - "defaultSetting": { "type": "string" } 23 - } 24 - } 15 + "items": { "type": "ref", "ref": "#labelDefinition" } 25 16 } 26 17 } 27 18 } 19 + } 20 + }, 21 + "labelDefinition": { 22 + "type": "object", 23 + "required": ["identifier", "severity", "blurs", "defaultSetting"], 24 + "properties": { 25 + "identifier": { "type": "string" }, 26 + "severity": { "type": "string" }, 27 + "blurs": { "type": "string" }, 28 + "defaultSetting": { "type": "string" }, 29 + "locales": { 30 + "type": "array", 31 + "items": { "type": "ref", "ref": "#labelLocale" } 32 + } 33 + } 34 + }, 35 + "labelLocale": { 36 + "type": "object", 37 + "required": ["lang", "name", "description"], 38 + "properties": { 39 + "lang": { "type": "string" }, 40 + "name": { "type": "string" }, 41 + "description": { "type": "string" } 28 42 } 29 43 } 30 44 }