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

New checks UI #1253

Merged
merged 22 commits into from
May 4, 2023
Merged

New checks UI #1253

merged 22 commits into from
May 4, 2023

Conversation

nelsonkopliku
Copy link
Member

@nelsonkopliku nelsonkopliku commented Mar 10, 2023

just a draft to keep an eye on the changes against main 😅

@dottorblaster
Copy link
Contributor

dottorblaster commented Mar 10, 2023

TODO

  • Relabel The following catalog is valid for on-premise bare metal platforms to The following results are valid for... in ExecutionResults

@dottorblaster dottorblaster force-pushed the new-checks-ui branch 2 times, most recently from 9c8b750 to 7ea9b29 Compare April 5, 2023 14:16
@nelsonkopliku nelsonkopliku force-pushed the new-checks-ui branch 3 times, most recently from 9b3775a to 40e7a70 Compare April 27, 2023 10:45
@dottorblaster dottorblaster marked this pull request as ready for review May 2, 2023 07:27
@nelsonkopliku
Copy link
Member Author

@dottorblaster banner action point addressed here #1371

Copy link
Contributor

@dottorblaster dottorblaster left a comment

Choose a reason for hiding this comment

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

It's time :shipit:

nelsonkopliku and others added 16 commits May 4, 2023 09:24
* Add an ExecutionHeader component

* Add a selector to get hostnames of a given cluster

* Refactor ExecutionResults to a Check based visualization
* Fix storybook configuration with @static alias

* Add object tree factory

* Add ObjectTree React component

* Add tests

* Add react-accessible-treeview and a webpack plugin required for
Storybook

* Add desctructuredArrayIgnorePattern option to eslint

* Address review comments
* Enhance NotificationBox to support straight message text or a list of messages to show

* Improve error handling on checks results page

* Keep a loading box while the execution is running
…ts view (#1256)

* Open remediation modal when checkId is clicked
* Add a getCheckExpectations utility to support check based view

* Improve CheckResultOutline to properly handle more scenarios

* Adjust ExecutionResults component so that it provides catalog expectations to a Check result outline

* Address review comments

* Adjust styling
* Chore: Use getClusterHostNames in ExecutionResultsPage

* Make TargetResult clickable

* Navigate to CheckDetail page when clicking on a target result row

* Add an ExecutionContainer component that wraps loading states

* Add a CheckResultInfoBox component that gives information about a check's execution context

* Add a CheckDetailHeader that provides the introductory section of a check detail page

* Add an initial version of the CheckResultDetail

* Add a CheckResultDetailPage as a container interacting with the state

* Wire up the newly created CheckResultDetailPage to the app router

* Improve component testing

* Improve selection for ExecutionResultsPage and CheckResultDetailPage

* Rename getLastExecutionContext selector to getLastExecutionData

* Improve loading effects
…1268)

* Chore: cleanup CheckResultInfoBox classname

* Add a getClusterHosts to get all the hosts of a cluster

* Use getClusterHosts in getLastExecutionData selector

* Adjust test factories in relation to hosts

* Refactor ExecutionResults to use the provided cluster hosts

* Refactor CheckResultDetailPage to use provided cluster hosts and pass those to the check detail
* Chore: extract and test transformation functions from CheckResultOutline

* Implement a Check detail for a Host target

* Determine the target id based on target type in CheckResultDetailPage

* Split CheckResultDetail subcomponents in dedicated files

* Address review feedbacks

* Improve naming
* Add PremiumPill to ExecutionResults component
* Add an HealthIcon to CheckDetailHeader

* Centralize enrichment of execution data agents check results with hostnames into selector

* Cleanup extraction of expect_same statements results

* Support both host and cluster wide ExpectationsResults

* Add the ability to extract facts for cluster wide checks

* Add support for both host and cluster wide facts to GatheredFacts component

* Make CheckResultDetail support host and cluster wide checks

* Address review feedbacks
* Display raw values for primitive types

* Add FactValue tests and detail stories

* Fix factories using transient params

* Fix props in CheckResultDetail test
nelsonkopliku and others added 6 commits May 4, 2023 09:24
* Move provider filter to the right in catalog view

* Add ProviderLabel storybook story

* Update providerSelection and add story

* Use the update ProviderSelection in catalog

* Handle All entry in provider selection

* Remove unwanted comments

* Use all providers in ProviderSelection story

* Refacto buildUpdateCatalogAction function
* Refactor NotFound component, add test and story

* Add url error handling for CheckResultDetailPage
* Add an Accordion Component

* Refactor ChecksCatalog to have collapsible groups

* Adjust cypress test to select correct item in the DOM

* Refactor CheckItem to use the new Accordion component

* Refactor ChecksSelectionGroup to use the new Accordion component

* Adjust z-index for ProviderSelection
* Refactor providerWarningBanners to also support result specific banners and expose retrieving functions

* Use the banner retrieving functions

* Refactor warning banners usage
@nelsonkopliku nelsonkopliku merged commit 0d11b0c into main May 4, 2023
@nelsonkopliku nelsonkopliku deleted the new-checks-ui branch May 4, 2023 07:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

4 participants