defenseunicorns / uds-runtime

UDS Runtime API & UI
GNU Affero General Public License v3.0
6 stars 3 forks source link

chore(ui): adding convention for figma to front end component naming #401

Closed BillyFigueroa closed 2 weeks ago

BillyFigueroa commented 2 weeks ago

Description

This is an ADR to create a naming convention for the naming of components for the front end based on Figma designs

Related Issue

Screenshots

Examples

In this image you can see 3 different things outlined

Screenshot 2024-09-30 at 12 27 02 PM

In this case, this would have been a component that has variants, but rather than built extra abstractions and complication, the components were built out as individual components inside of a folder called StatsWidget

Screenshot 2024-09-30 at 12 30 54 PM

In this image we can see...

Screenshot 2024-09-30 at 12 32 38 PM

All attributes were not included, but the ones we did include were named based on this components attributes in Figma

UncleGedd commented 2 weeks ago

Also need to change PR title, I would call this a chore

UncleGedd commented 2 weeks ago

Putting the images in ui/static makes it look like we are going to serve them. Instead, let's make an images folder in the adr directory