When creating UI, your first goal should be to locate a similar pattern that we can copy or gain understanding from:
- •Explore the
/frontfolder to find references and similar UI concepts - •See which generic components can be applied or extended
- •Understand which colours we use
Components
- •We love to use shadcn components for inspiration
- •Always look for similar components that can be extended or used, to prevent duplicate component overlap
- •When changing components directly, ensure there is no collateral impacts
- •Explore existing components for colour and design patterns
Optimistic UI
Where possible, we like to use optimistic UI patterns. You will need to make a decision as to whether it is appropriate:
- •If the API request creates a response with information that needs to then be displayed in the UI, optimistic patterns are not a good fit.
- •If the API is making a simple CRUD request that does not need to await for a response payload, optimistic UI patterns should be used.
If you're ever unsure - you should ask the user.