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

feat: display system status counts #6

Merged
merged 27 commits into from
Jul 26, 2023
Merged

Conversation

ggracechoi
Copy link
Contributor

@ggracechoi ggracechoi commented Jul 24, 2023

Pull Request

🀨 Rationale

The Summary query type needs to display the status counts of the systems (Connected and Disconnected) on a dashboard. This PR satisfies this user story.

πŸ‘©β€πŸ’» Implementation

The Connected and Disconnected counts are pulled from the /get-systems-summary route. An InflineFieldRow form and a RadioButtonGroup form were added to create the visual components in the query editor. A new type called SystemSummary was created, and the onQueryTypeChange method and the query method were implemented.

πŸ§ͺ Testing

The web dev tools were used to test this change. We checked to see if a call was being made when the Summary tab was clicked and that the response matched what was expected.

βœ… Checklist

@ggracechoi ggracechoi marked this pull request as ready for review July 24, 2023 18:59
@cameronwaterman
Copy link
Collaborator

@mure - The checklist link in the PR description is broken FYI

ggracechoi and others added 2 commits July 24, 2023 14:38
Co-authored-by: Cameron Waterman <cameron.waterman@ni.com>
Co-authored-by: Cameron Waterman <cameron.waterman@ni.com>
Copy link
Collaborator

@mure mure left a comment

Choose a reason for hiding this comment

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

Looks like you've got a lint error in the build

src/datasources/system/SystemDataSource.ts Outdated Show resolved Hide resolved
src/datasources/system/SystemDataSource.ts Outdated Show resolved Hide resolved
src/datasources/system/components/SystemQueryEditor.tsx Outdated Show resolved Hide resolved
src/datasources/system/components/SystemQueryEditor.tsx Outdated Show resolved Hide resolved
@mure mure requested a review from iadamjee July 24, 2023 22:07
src/datasources/system/types.ts Show resolved Hide resolved
src/datasources/system/components/SystemQueryEditor.tsx Outdated Show resolved Hide resolved
@ggracechoi ggracechoi merged commit 285b8b2 into main Jul 26, 2023
mure pushed a commit that referenced this pull request Jul 26, 2023
# [1.6.0](v1.5.0...v1.6.0) (2023-07-26)

### Features

* display system status counts ([#6](#6)) ([285b8b2](285b8b2))
@mure
Copy link
Collaborator

mure commented Jul 26, 2023

πŸŽ‰ This PR is included in version 1.6.0 πŸŽ‰

The release is available on:

Your semantic-release bot πŸ“¦πŸš€

@mure mure added the released label Jul 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants