openclimatefix / quartz-frontend

Front End repo for the Nowcasting project.
https://openclimatefix.org/projects/nowcasting/
MIT License
100 stars 17 forks source link

Widen data tooltip in profile dropdown menu #434

Closed rachel-labri-tipton closed 7 months ago

rachel-labri-tipton commented 8 months ago

Pull Request

Description

The Data tooltip in the profile dropdown menu started looking narrow a few months ago. Something like this:

Screenshot 2023-11-14 at 16 43 56

I've widened the tooltip, updated some of the information, and rounded the edges to match the dropdown menu. In addressing this issue, I also noticed that the forecast information was wrong. As I wasn't sure how many people check there for the latest forecast, I removed it for the moment and added a link to the documentation.

Screenshot 2023-11-14 at 16 39 26

I also rounded the edges for the Help tooltip Screenshot 2023-11-14 at 16 40 16

Fixes #421

In terms of review:

  1. Does the new width/positioning look ok?
  2. Should we keep the latest forecast creation time in the tooltip?
  3. Is it ok I added the link to the documentation?
  4. Should we use this tooltip to say something about the probabilistic forecast?

How Has This Been Tested?

I ran the code locally.

Checklist:

vercel[bot] commented 8 months ago

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

Name Status Preview Comments Updated (UTC)
nowcasting-app ✅ Ready (Inspect) Visit Preview 1 resolved Nov 22, 2023 2:58pm
peterdudfield commented 7 months ago

Unfortuantely there is now a client-side error- https://nowcasting-fdvxf7jst-openclimatefix.vercel.app/