Skip to content

SC-376 openMIC Issues Page improvements#838

Open
nbeatty-gpa wants to merge 3 commits intomasterfrom
DeviceHealth
Open

SC-376 openMIC Issues Page improvements#838
nbeatty-gpa wants to merge 3 commits intomasterfrom
DeviceHealth

Conversation

@nbeatty-gpa
Copy link
Copy Markdown
Contributor

@nbeatty-gpa nbeatty-gpa commented Apr 1, 2026

Jira Issue(s)

SC-376



Description

Remove try/catch from SystemCenter's pass-through endpoint and add error and loading screens to openMIC Issues page.



How/Where to test OR Detail how it was tested

With openMIC misconfigured, navigate to the openMIC issues page for an openMIC meter.

Verify the loading screen while API request is pending, then the error message when it fails.

Verify the server error is included in the network response.

with openMIC properly configured, verify that the openMIC issues page works as expected.

@elwills elwills requested review from Copilot and elwills April 2, 2026 15:28
Comment on lines +151 to +157
TableStyle={{
padding: 0, width: 'calc(100%)', height: 'calc(100% - 16px)',
tableLayout: 'fixed', overflow: 'hidden', display: 'flex', flexDirection: 'column'
}}
TheadStyle={{ fontSize: 'smaller', tableLayout: 'fixed', display: 'table', width: '100%' }}
TbodyStyle={{ display: 'block', overflowY: 'auto', flex: 1 }}
RowStyle={{ display: 'table', tableLayout: 'fixed', width: '100%' }}
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

How much of these styles are needed? We shouldn't specify table stylings unless they aren't part of the gpa-gemstone defaults: https://github.com/GridProtectionAlliance/gpa-gemstone/blob/master/react-table/src/Table/Table.tsx#L41-L82

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR improves the openMIC Issues page UX by adding explicit loading and error states, and adjusts the SystemCenter openMIC meter statistics endpoint to no longer swallow upstream failures so API errors can surface to the client.

Changes:

  • Add loading and server-error UI to the openMIC Issues page while statistics are being fetched.
  • Remove the try/catch that previously suppressed exceptions in the openMIC meter statistics API endpoint.
  • Restructure the page layout to hide the plot/table while loading or errored.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
Source/Applications/SystemCenter/wwwroot/Scripts/TSX/SystemCenter/DeviceIssuesPage/OpenMICIssuesPage.tsx Adds LoadingScreen/ServerErrorIcon rendering and conditional layout based on request status.
Source/Applications/SystemCenter/Model/DeviceHealthReport.cs Removes exception swallowing from GetOpenMICMeterStatistics, allowing failures to propagate.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

…ter/DeviceIssuesPage/OpenMICIssuesPage.tsx

Co-authored-by: Erika Wills <elwills@gridprotectionalliance.org>
Signed-off-by: nbeatty-gpa <nbeatty@gridprotectionalliance.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants