Skip to content

feat: Add Copier Dashboard - #25

Open
PaulKMueller (PaulKMueller) wants to merge 29 commits into
frontend-infrastructurefrom
copier-dashboard
Open

feat: Add Copier Dashboard#25
PaulKMueller (PaulKMueller) wants to merge 29 commits into
frontend-infrastructurefrom
copier-dashboard

Conversation

@PaulKMueller

@PaulKMueller PaulKMueller (PaulKMueller) commented Aug 18, 2026

Copy link
Copy Markdown

Changes

Depends on the frontend infrastructure PR #24.

  • Adds aggregation of copier answers, template versions, and validation results.
  • Adds the interactive Copier Dashboard with filtering, selectable columns, charts, copy controls, and shareable URL state.
  • Includes a GitHub Pages workflow example and hosting documentation.

@codecov

codecov Bot commented Aug 18, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (67d4c14) to head (a85708f).

Additional details and impacted files
@@                    Coverage Diff                     @@
##           frontend-infrastructure       #25    +/-   ##
==========================================================
  Coverage                   100.00%   100.00%            
==========================================================
  Files                           50        52     +2     
  Lines                         3122      3296   +174     
==========================================================
+ Hits                          3122      3296   +174     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@PaulKMueller
PaulKMueller (PaulKMueller) marked this pull request as ready for review August 25, 2026 11:12

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

The amount of code that deals with error handling and fallbacks is sprinkled in everywhere instead of it being done in a few limited places and giving you confidence about types and especially truthyness of values.

Much of the code feels overly defensive as if the type system isn't doing its job.
I suspect that error handling placed in a few sensible locations could increase this confidence by quite a lot


Similarly the logic for applying filters and transforming data from one thing to another seems to spread everywhere.
Each and every component has multiple helper functions, does a few operations itself, and just overall deals with data transformations way too much.
This can likely be fixed by properly thinking about what types should be used where, creating a few really useful helper functions and then reusing them.


There are many places where I'd suggest splitting things out into seperate reusable components.
Many components seem to concern themselves with quite a lot of different things that you'd usually split up. You can also use react hooks to separate out stuff from the function body of a component

Comment thread frontend/src/Overview.tsx Outdated
Comment thread frontend/src/components/ChevronIcon.tsx Outdated
Comment thread frontend/src/copier/Charts.tsx Outdated
Comment thread frontend/src/copier/useCopierDashboard.ts Outdated
const filters: DashboardFilter[] = [...selectedFilterColumns]
.filter((column) => filterColumns.includes(column))
.map((column) => {
if (!valueFilterColumns.has(column)) {

Choose a reason for hiding this comment

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

use .filter

Comment thread frontend/src/Site.tsx Outdated
Comment thread frontend/src/Site.tsx Outdated
return stored
}

export function restoreDashboardState(

Choose a reason for hiding this comment

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

This file and a few others contain an insane number of .map, .filter, new Map(), and new Set() calls.

I can't imagine that all of that is needed. I suspect with a good and thorough look you can remove about 1/2 of all this complexity

Co-authored-by: Janina Wibker <106881157+JaninaWibkerQC@users.noreply.github.com>
Co-authored-by: Janina Wibker <106881157+JaninaWibkerQC@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants