ua-snap / ardac-explorer

ARDAC GUI Explorer
0 stars 0 forks source link

Implement Tag type with possible values #38

Closed cstephen closed 7 months ago

cstephen commented 7 months ago

This PR basically does the same thing for item tags that we did for slugs. It defines a new Tag type with a list of possible values generated using csv2json.cjs (with the necessary modifications).

I've also confirmed that, with this change, VS Code now autocompletes tags when editing items.ts and underlines invalid tags.

To test, make sure the app runs like before. Then try adding an invalid tag to an item in items.ts and make sure the TypeScript police catch you. 🚨