youknowriad / codevitals

https://codevitals.run
3 stars 2 forks source link

Add project select #30

Closed WunderBart closed 2 months ago

WunderBart commented 2 months ago

What?

Introduce Project Select for easy switching between available dashboards.

https://github.com/user-attachments/assets/6f4fbf9b-a73f-4709-af34-fa868bb8d557

[!NOTE] I used the dropdown code from this example, which required a deps update to work correctly.

How to test

Ensure the select works as expected.

vercel[bot] commented 2 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
codehealth ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 22, 2024 11:10am
youknowriad commented 2 months ago

Something I noticed is that the dropdown looks like a "select" but it behaves more as a menu (selecting an item doesn't replace the text of the menu). So I think maybe we should tweak its style a bit to remove the background... (just make it look like a regular menu).

youknowriad commented 2 months ago
Screenshot 2024-08-22 at 12 41 58 PM

Like this kind of.

youknowriad commented 2 months ago

I'd prefer if keep the login as well (even if it's almost useless for now)