linode / manager

Akamai's Cloud Manager is an open-source, single-page application designed as the primary frontend interface for interacting with the Linode API. It is entrusted by hundreds of thousands of customers with the management of their Linode services.
https://cloud.linode.com
Apache License 2.0
690 stars 361 forks source link

upcoming: [DI-20800] - CSS for widget size control and feedbacks #10951

Closed venkymano-akamai closed 1 month ago

venkymano-akamai commented 1 month ago

Description ๐Ÿ“

CSS updates according to UX feedback for widgets and main bar

Changes ๐Ÿ”„

  1. Fixed widget paper wrapper height
  2. Fixed legend table height and overflow on scroll
  3. Removed divider between filters and graph inside widget
  4. Main Bar consistency according to UX margin (24px), divider color update
  5. Placeholder update according to suggestion

Target release date ๐Ÿ—“๏ธ

01-10-2024

Preview ๐Ÿ“ท

Before After
Screenshot 2024-09-17 at 4 53 46โ€ฏPM Screenshot 2024-09-17 at 4 28 06โ€ฏPM
Screenshot 2024-09-17 at 4 54 16โ€ฏPM Screenshot 2024-09-17 at 4 47 57โ€ฏPM

How to test ๐Ÿงช

  1. As some of endpoints are not available enable mock service
  2. Go to monitors tab
  3. Select dashboard and filters, you will be able to see widgets and CSS fixes

As an Author I have considered ๐Ÿค”

Check all that apply

venkymano-akamai commented 1 month ago

@jaalah , as discussed the icon names are updated

jaalah-akamai commented 1 month ago

I'm not sure if this is a bug or not, but with the new overflow/scrolling, can we keep the mobile layout the same as desktop? I actually think it looks better and it would enable us to remove a lot of breakpoint specific styles.

Before After
Screenshot 2024-09-19 at 9 56 30โ€ฏAM Screenshot 2024-09-19 at 9 56 00โ€ฏAM
venkymano-akamai commented 1 month ago

I'm not sure if this is a bug or not, but with the new overflow/scrolling, can we keep the mobile layout the same as desktop? I actually think it looks better and it would enable us to remove a lot of breakpoint specific styles.

Before After Screenshot 2024-09-19 at 9 56 30โ€ฏAM Screenshot 2024-09-19 at 9 56 00โ€ฏAM

@jaalah-akamai , if it is regarding the styles of legend rows it is actual behaviour of linegraph, this involves changes in actual line graph component i think, anyway as we are migrating to recharts, we don't want to touch the actual line graph component. Let me know your thoughts on this

Also to achieve this we need to the changes in LineGraph.styles.ts and remove all styles involving theme.breakpoints.down('md'). We hope this might have already handled if we go for recharts, so we don't need now

Also , if this is mandatory and no one is using linegraph, we can remove those styles and commit it, please confirm

venkymano-akamai commented 1 month ago

@jaalah-akamai , I addressed most of comments and replied my thoughts on some of the comments, can you please check once?

kmuddapo commented 1 month ago

I'm not sure if this is a bug or not, but with the new overflow/scrolling, can we keep the mobile layout the same as desktop? I actually think it looks better and it would enable us to remove a lot of breakpoint specific styles. Before After Screenshot 2024-09-19 at 9 56 30โ€ฏAM Screenshot 2024-09-19 at 9 56 00โ€ฏAM

@jaalah-akamai , if it is regarding the styles of legend rows it is actual behaviour of linegraph, this involves changes in actual line graph component i think, anyway as we are migrating to recharts, we don't want to touch the actual line graph component. Let me know your thoughts on this

Also to achieve this we need to the changes in LineGraph.styles.ts and remove all styles involving theme.breakpoints.down('md'). We hope this might have already handled if we go for recharts, so we don't need now

Also , if this is mandatory and no one is using linegraph, we can remove those styles and commit it, please confirm

My recommendation is not to touch the existing linegraph as its a generic component and we anyway planned to migrate to recharts in next sprint (2 weeks from now) and any changes to linegraph might be a throw away code again.

jaalah-akamai commented 1 month ago

Will merge if pipeline passes ๐Ÿ‘

kmuddapo commented 1 month ago

For some reason I'm seeing that the first two graphs take up the entire screen width, even on a large screen, vs the last two graphs - not sure if this expected? Is anyone else experiencing the same?

pic 1 pic 2 image image

Yes!! Thats expected, User has the ability to Zoom in/Zoom out the widget, based on that size of the widget varies.

kmuddapo commented 1 month ago

Will merge if pipeline passes ๐Ÿ‘

Thanks!! @jaalah-akamai

coliu-akamai commented 1 month ago

Yes!! Thats expected, User has the ability to Zoom in/Zoom out the widget, based on that size of the widget varies.

Awesome, thanks for clarifying! ๐Ÿคฆ

github-actions[bot] commented 1 month ago

Coverage Report: โœ…
Base Coverage: 86.94%
Current Coverage: 86.94%