Use whenever asked to add, create, or scaffold a CRUD endpoint, router, or entity in this repo's server (create/list/get/update/delete handlers, new server/routers/ / or server/private/routers/ / folder). Points to the established file layout, middleware, ActionsEnum, and route-registration conventions before writing…
When adding submit buttons, don't change the text of the button during the loading state. Text should stay static and you should use the loading prop on the button.
When creating UI for popup dialogs or modals, use the Credenza componennt. This component is mobile responsive and works on desktop and wraps the dialog component and sheet into one.
Always localize strings and use the t function to convert keys to strings. Add the keys to the en-us.json file. Never edit the other language files, as en-us.json is the single source of truth.