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. 🚨
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 usingcsv2json.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. 🚨