Skip to content

Build the report options editor (W7-06) - #173

Merged
calebyhan merged 1 commit into
mainfrom
159/report-options-editor
Nov 30, 2026
Merged

calebyhan merged 1 commit into
mainfrom
159/report-options-editor

Conversation

@pakxander10

Copy link
Copy Markdown
Contributor
  • Topics and Outcomes lists on /portal/admin/report-options, each split into active and inactive options
  • Create and rename options (label trimmed, 100 characters max, no duplicate labels in the same list)
  • Deactivate and reactivate instead of delete, with a hint explaining that past reports and analytics still use the options
  • Reorder active options within each list through the reorder API; only that list's ids are sent, so the other list keeps its order
  • Every change invalidates reportOptionsQueryKey so an open report form picks it up

Closes #159

/portal/admin/report-options was still a placeholder even though the API was done.

Changes:

Topics and Outcomes lists, each split into active and inactive
Create and rename (100 char max, no duplicate labels)
Deactivate/reactivate instead of delete, with a hint on why (old reports and analytics still use them)
Reorder within each list without touching the other one
Saving refreshes the report form's options

Closes #159

- Topics and Outcomes lists on /portal/admin/report-options, each split
  into active and inactive options
- Create and rename options (label trimmed, 100 characters max, no
  duplicate labels in the same list)
- Deactivate and reactivate instead of delete, with a hint explaining
  that past reports and analytics still use the options
- Reorder active options within each list through the reorder API; only
  that list's ids are sent, so the other list keeps its order
- Every change invalidates reportOptionsQueryKey so an open report form
  picks it up

Closes #159
@github-actions

Copy link
Copy Markdown

Backend Test Results

713 tests  ±0   713 ✅ ±0   25s ⏱️ +7s
  1 suites ±0     0 💤 ±0 
  1 files   ±0     0 ❌ ±0 

Results for commit 7b09edb. ± Comparison against base commit f435caa.

@calebyhan calebyhan left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM

@calebyhan
calebyhan merged commit 2d152b2 into main Nov 30, 2026
4 checks passed
@calebyhan
calebyhan deleted the 159/report-options-editor branch November 30, 2026 19:59
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.

Build the report options editor (W7-06)

2 participants