Skip to content

Add Data Status Component#96

Open
krowvin wants to merge 29 commits into
mainfrom
component/data-status-summary
Open

Add Data Status Component#96
krowvin wants to merge 29 commits into
mainfrom
component/data-status-summary

Conversation

@krowvin

@krowvin krowvin commented Feb 25, 2025

Copy link
Copy Markdown
Contributor

This PR adds a data status component that uses quality codes returned via the timeseries endpoint to show a graphical bar line of quality codes at a glance.

It is similar to the DataStatusSummary.exe program within CWMS.

This allows districts to provide a path to a new line delimited file or an array of timeseries to be shown at a glance.

Thoughts

  • Should we use the timeseries/recent or another such endpoint for this?

image

@krowvin krowvin marked this pull request as ready for review February 25, 2025 22:33
@krowvin krowvin requested a review from jbkolze February 25, 2025 22:33

@jbkolze jbkolze left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Component looks good -- just a little docs stuff to clean up (mostly around the useDataStatusFile update).

Comment thread docs/src/pages/docs/summary/data-status.jsx Outdated
Comment thread docs/src/pages/docs/summary/data-status.jsx Outdated
Comment thread docs/src/pages/docs/summary/data-status.jsx
Comment thread docs/src/pages/docs/summary/data-status.jsx
Comment thread docs/src/pages/docs/summary/data-status.jsx Outdated
Comment thread docs/src/pages/docs/summary/data-status.jsx Outdated
Comment thread docs/src/pages/docs/summary/data-status.jsx Outdated
@krowvin krowvin marked this pull request as draft June 3, 2025 16:06
@krowvin krowvin self-assigned this Mar 3, 2026
@krowvin

krowvin commented Apr 16, 2026

Copy link
Copy Markdown
Contributor Author

Fixed concerns

Brought in NAE changes and did a redesign

Desktop
image

Mobile
image

image

@krowvin krowvin marked this pull request as ready for review April 16, 2026 05:33
@krowvin krowvin requested a review from jbkolze April 16, 2026 05:34
Comment on lines +205 to +224
{activePoint && useInlineDetails ? (
<div className="gww-mt-2 gww-rounded-lg gww-border gww-border-slate-200 gww-bg-slate-50 gww-px-3 gww-py-2">
<div className="gww-flex gww-items-center gww-justify-between gww-gap-3">
<span className="gww-text-[0.78rem] gww-font-semibold gww-text-slate-800">
{label.primary} {label.secondary}
</span>
<span
className={`gww-inline-flex gww-items-center gww-rounded-full gww-px-2 gww-py-0.5 gww-text-[0.72rem] gww-font-semibold ${getQualityMeta(getQualityStr(activePoint)).pillClassName}`}
>
{getQualityMeta(getQualityStr(activePoint)).shortLabel}
</span>
</div>
<div className="gww-mt-1 gww-text-sm gww-font-bold gww-text-slate-900">
{formatValue(activePoint[1], tsData?.units, precision)}
</div>
<div className="gww-mt-1 gww-text-[0.78rem] gww-text-slate-600">
{formatDateWithZone(activePoint[0])}
</div>
</div>
) : null}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I get some pretty major layout-bouncing on hover with this display case (see: SWT docs example). Can this be addressed? Or, alternatively -- is there a real need for this separate display case?

@krowvin krowvin force-pushed the component/data-status-summary branch from 3a7c732 to 09d916f Compare June 5, 2026 19:18
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.

2 participants