Skip to content

feat: data lineage view (#107)#139

Merged
William-Hill merged 1 commit intomainfrom
feat/issue-107-data-lineage
May 3, 2026
Merged

feat: data lineage view (#107)#139
William-Hill merged 1 commit intomainfrom
feat/issue-107-data-lineage

Conversation

@William-Hill
Copy link
Copy Markdown
Collaborator

Summary

Implements the data lineage MVP from issue #107: users can trace where dashboard numbers come from via an ingest event, transformation chain, and (when permitted) paginated source rows.

What changed

  • GET /api/lineage — Accepts metric, dashboard filters (cohort, enrollmentType, credentialType), optional category for chart segments, and studentGuid + field for roster cells. Returns latest relevant upload_history row, static transformation steps, aggregate row count, and paginated rows from student_level_with_predictions.
  • RBAC — Source rows with student GUIDs are returned only for roles that can access /api/students (admin, advisor, IR). Other authenticated roles still see upload metadata, steps, and counts.
  • UI — Radix Dialog–based drawer; wired from home KPI values (click the number), risk alert pie slices, and roster table cells (LineageValueButton + stopPropagation so row navigation still works).
  • Shared helperslib/dashboard-filters.ts, lib/lineage-config.ts, lib/lineage-types.ts; @radix-ui/react-dialog dependency.

How to verify

cd codebenders-dashboard && npm run lint && npm test && npm run build

Closes #107 (if your repo uses that keyword).

Made with Cursor

Add lineage API with dashboard filters, latest upload_history ingest, transformation
steps, and paginated source rows from student_level_with_predictions. Row-level
identifiers respect the same RBAC as the student roster.

Wire KPI values, risk-alert pie slices, and roster cells to open a dialog with
lineage details. Add shared dashboard filter helpers and Radix dialog UI.

Co-authored-by: Cursor <cursoragent@cursor.com>
@William-Hill William-Hill merged commit a25691e into main May 3, 2026
2 checks passed
@William-Hill William-Hill deleted the feat/issue-107-data-lineage branch May 3, 2026 19:12
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.

feat: data lineage view — "where did this number come from"

1 participant