Skip to content

Conversation

@benjaminleonard
Copy link
Contributor

Quick pass to get more or less parity with the designs. There's more work to do, but lets tackle that when we have more metric endpoints and real data to test with. I've made a dupe component, since the disk metrics are a line chart not an area one. I'll defer to you on how we best style and configure those components without repeating ourselves too much.

image

- Area chart -> Line chart
- Shorter day format for same day metrics
- Tweak colours
- Tweak spacing
- Wrapper with border
- Separating/styling title and unit
@vercel
Copy link

vercel bot commented Jan 20, 2023

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

Name Status Preview Comments Updated
console-ui-storybook ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Jan 20, 2023 at 4:12PM (UTC)

@david-crespo
Copy link
Collaborator

Beautiful. Will merge and see if I need to tweak the implementation in the other PR.

@david-crespo david-crespo merged commit ee0ebfe into metrics-again Jan 20, 2023
@david-crespo david-crespo deleted the metrics-design-touchup branch January 20, 2023 16:28
david-crespo added a commit that referenced this pull request Jan 20, 2023
* kinda do something

* Metrics design touchup (#1331)

* Metrics design improvements

- Area chart -> Line chart
- Shorter day format for same day metrics
- Tweak colours
- Tweak spacing
- Wrapper with border
- Separating/styling title and unit

* Round the tooltip corners

* Cleanup

* Unify props for both charts

* Add elevation to tooltip

* Tweak chart padding and height

* turns out that in order to show the data, you have to fetch the data

* get rid of customXTicks prop, make it always custom

* code split silo and system utilization pages

* make TimeSeriesChart the only dynamic import

* prefetch disks list for instance metrics tab

Co-authored-by: Benjamin Leonard <benji@oxide.computer>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants