Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dashboard: Empty/No Panels dashboard with a new design #65161

Merged
merged 14 commits into from Mar 28, 2023

Conversation

polibb
Copy link
Contributor

@polibb polibb commented Mar 22, 2023

What is this feature?

This feature allows users to easily know what is possible with an empty dashboard. The basic ingredients are on their screen ready to use.

Why do we need this feature?

Because it makes it easy to feel comfortable with grafana dashboards.

Who is this feature for?

Everyone

Which issue(s) does this PR fix?:

Fixes #63938

Please check that:

  • It works as expected from a user's perspective.
  • If this is a pre-GA feature, it is behind a feature toggle.
  • The docs are updated, and if this is a notable improvement, it's added to our What's New doc.
  • There are no known compatibility issues with older supported versions of Grafana, or plugins.
  • It passes the Hosted Grafana feature readiness review for observability, scalability, performance, and security.

@polibb polibb added this to the 9.5.0 milestone Mar 22, 2023
@polibb polibb self-assigned this Mar 22, 2023
@github-advanced-security
Copy link

You have successfully added a new CodeQL configuration .github/workflows/pr-codeql-analysis-javascript.yml:analyze. As part of the setup process, we have scanned this repository and found 29 existing alerts. Please check the repository Security tab to see all alerts.

@axelavargas axelavargas requested review from a team, axelavargas and juanicabanas and removed request for a team March 22, 2023 14:22
@polibb polibb marked this pull request as ready for review March 22, 2023 16:10
@polibb polibb requested a review from a team as a code owner March 22, 2023 16:10
Copy link
Member

@axelavargas axelavargas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome progress 🥳 , I gave it a try on my machine, and is looking pretty nice, I left some questions and comments.

public/app/features/dashboard/dashgrid/DashboardEmpty.tsx Outdated Show resolved Hide resolved
public/app/features/dashboard/dashgrid/DashboardEmpty.tsx Outdated Show resolved Hide resolved
public/app/features/dashboard/dashgrid/DashboardGrid.tsx Outdated Show resolved Hide resolved
Copy link
Contributor

@juanicabanas juanicabanas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So good!! Looks awesome and really helpful 🚀
I let some little comments

public/app/features/dashboard/dashgrid/DashboardEmpty.tsx Outdated Show resolved Hide resolved
public/app/features/dashboard/dashgrid/DashboardEmpty.tsx Outdated Show resolved Hide resolved
public/app/features/dashboard/dashgrid/DashboardEmpty.tsx Outdated Show resolved Hide resolved
fontWeight: 600,
}),
headerBig: css({
fontSize: '32px',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we have ${theme.typography.....} for font size

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, but it's not useful in those cases imo - There are no 32 and 20 options, and I'd have to use theme.typography.h5 for the smaller body texts for Add row and Add library panel, which semantically doesn't make sense to me

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mmm no, me neither. isn't there any other? take into account this approach lets you modify all the app if suddenly 32px is not the desired one

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, you're right it will be better to allow the single source of truth to apply here as well. I changed the header sections to h1 and h2, and the body sections to h4 and h5. It's better also because the typography we use uses rem, so in the long run any general changes will affect the details very well.
@Ijin08 would you take a look at this:
image
and the conversation here: Is it alright to continue with those dimensions?

The typography options we have are here: https://github.com/grafana/grafana/blob/redesign/empty-dashboard/packages/grafana-data/src/themes/createTypography.ts#L118

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome!

public/app/features/dashboard/dashgrid/DashboardEmpty.tsx Outdated Show resolved Hide resolved
public/app/features/dashboard/dashgrid/DashboardEmpty.tsx Outdated Show resolved Hide resolved
public/app/features/dashboard/dashgrid/DashboardEmpty.tsx Outdated Show resolved Hide resolved
@polibb polibb requested review from a team as code owners March 23, 2023 12:33
Copy link
Collaborator

@chri2547 chri2547 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added a suggestion. Thank you for the contribution. Please ping me for a re-review and approval.

Copy link
Member

@axelavargas axelavargas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome work @polibb 🥳 , code looks nice, also gave it a quick test on my local, and the page looks awesome.

@polibb polibb merged commit 221c5ef into main Mar 28, 2023
16 checks passed
@polibb polibb deleted the redesign/empty-dashboard branch March 28, 2023 09:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Dashboard: Empty dashboard redesigned
5 participants