Skip to content

Add dataset validation results panel to demo admin dashboard#313

Merged
kryputh merged 1 commit into
Stellar-Mail:mainfrom
eleven-smg:feat/validation-results-panel-220
Jun 17, 2026
Merged

Add dataset validation results panel to demo admin dashboard#313
kryputh merged 1 commit into
Stellar-Mail:mainfrom
eleven-smg:feat/validation-results-panel-220

Conversation

@eleven-smg

@eleven-smg eleven-smg commented Jun 16, 2026

Copy link
Copy Markdown
Contributor

Closes #220

Summary

Adds a ValidationResultsPanel to the demo admin dashboard that surfaces dataset validation errors and warnings, each with its field path, so demo data issues are easy to scan and fix.

All work is contained within src/features/demo-admin-dashboard/. No files outside that folder are touched.

What's included

  • Component: ValidationResultsPanel.tsx — groups issues by severity (errors → warnings → info), shows per-severity counts, field paths, and optional fix hints, with a clean empty state when there are no issues.
  • Types: validation-types.tsValidationIssue, ValidationSeverity, and ValidationNavigation (datasetId / recordId / fieldPath) for jumping to a source field.
  • Helpers: validation.tssummarizeValidation, sortIssues, groupBySeverity, getIssueNavigation, isDatasetValid.
  • Demo data: validationFixtures.ts — deterministic, fake sample issues (no real data, secrets, or network calls).
  • Docs: ValidationResultsPanel.md.
  • Tests: validation.test.ts — covers counts, sorting, grouping, navigation metadata, and validity checks.

Navigation metadata

Passing onSelectIssue makes each issue clickable and reports { datasetId, recordId, fieldPath } so a parent view can navigate to the offending field.

Testing

  • npx vitest run src/features/demo-admin-dashboard/validation.test.ts — all passing
  • Type-check clean for the new files

@eleven-smg eleven-smg force-pushed the feat/validation-results-panel-220 branch from 1a6ac5c to 5a98598 Compare June 17, 2026 00:16
@kryputh kryputh merged commit 6d306f7 into Stellar-Mail:main Jun 17, 2026
@grantfox-oss grantfox-oss Bot mentioned this pull request Jun 17, 2026
5 tasks
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.

Create validation results panel

2 participants