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

Observability Overview page rework #2210

Merged
merged 9 commits into from
Oct 18, 2024

Conversation

TackAdam
Copy link
Collaborator

@TackAdam TackAdam commented Oct 17, 2024

Description

  1. Move page options to the header
  2. Add UI setting to persist if the cards are disabled
  3. Add ability to dismiss the cards to the page header
  4. Update the empty state for no dashboard selected
  5. Update the fly-out empty state
  6. Small UI adjustment to integration table

Disable cards functionality:

DismissibleCards.mov
After Before
Before Image 1 After Image 1
Before Image 2 After Image 2
Before Image 3 After Image 3

Update to integrations table

Before After
Before Image 1 After Image 1

Issues Resolved

Check List

  • New functionality includes testing.
    • All tests pass, including unit test, integration test and doctest
  • New functionality has been documented.
    • New functionality has javadoc added
    • New functionality has user manual doc added
  • Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

@TackAdam
Copy link
Collaborator Author

New cards working with dismiss
Screenshot 2024-10-18 at 9 50 35 AM

@TackAdam TackAdam marked this pull request as ready for review October 18, 2024 16:51
Signed-off-by: Adam Tackett <[email protected]>
@TackAdam TackAdam added enhancement New feature or request backport 2.x labels Oct 18, 2024
@TackAdam TackAdam changed the title [WIP] Observability Overview page rework Observability Overview page rework Oct 18, 2024
Copy link
Collaborator

@RyanL1997 RyanL1997 left a comment

Choose a reason for hiding this comment

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

Hi @TackAdam , in generally this is LGTM. And I just left some minor comments

common/utils/core_services.ts Outdated Show resolved Hide resolved
/>
}
title="Add a dashboard"
description="Customize the overview page by adding a dashboard."
Copy link
Collaborator

Choose a reason for hiding this comment

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

we can add i18n as a follow-up

public/components/overview/components/card_configs.tsx Outdated Show resolved Hide resolved
}
})
.catch((error) => {
console.error('Error fetching dashboards:', error);
Copy link
Collaborator

Choose a reason for hiding this comment

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

should this be a console error? I know in before we seems to have some console errors on these fetch failures. I think it is okay to leave it here for now, but maybe we can have some better error handling as a follow up.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Will look into, thanks for the call out.

TackAdam and others added 3 commits October 18, 2024 12:28
@TackAdam TackAdam merged commit 90a2baf into opensearch-project:main Oct 18, 2024
11 of 18 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Oct 18, 2024
* rework the obs overview page adding dismiss to cards, and changing ui

Signed-off-by: Adam Tackett <[email protected]>

* hide new setting for showCards based on workspace

Signed-off-by: Adam Tackett <[email protected]>

* small integrations ui adjustment

Signed-off-by: Adam Tackett <[email protected]>

* Update snapshots

Signed-off-by: Adam Tackett <[email protected]>

* fix lint

Signed-off-by: Adam Tackett <[email protected]>

* capitalize Page

Signed-off-by: Adam Tackett <[email protected]>

---------

Signed-off-by: Adam Tackett <[email protected]>
Signed-off-by: Adam Tackett <[email protected]>
Co-authored-by: Adam Tackett <[email protected]>
(cherry picked from commit 90a2baf)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
TackAdam added a commit that referenced this pull request Oct 18, 2024
* rework the obs overview page adding dismiss to cards, and changing ui



* hide new setting for showCards based on workspace



* small integrations ui adjustment



* Update snapshots



* fix lint



* capitalize Page



---------




(cherry picked from commit 90a2baf)

Signed-off-by: Adam Tackett <[email protected]>
Signed-off-by: Adam Tackett <[email protected]>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Adam Tackett <[email protected]>
Co-authored-by: Adam Tackett <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 2.x enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants