Skip to content

Build the resources and tags editor (W7-04) - #171

Merged
calebyhan merged 1 commit into
mainfrom
157/resources-tags-editor
Nov 30, 2026
Merged

calebyhan merged 1 commit into
mainfrom
157/resources-tags-editor

Conversation

@GregoryPark777

Copy link
Copy Markdown
Contributor

The Resources page, the crisis footer, and the fit guide's links all come from the resources table (TDD 4.6.8). The admin API is done (#95), but /portal/admin/resources is a placeholder.

Changes:

  • Replace the placeholder with a ResourcesManager containing Resources and Tags tabs.
  • Add the resource table, tag and publication filters, create/edit dialogs, URL validation, UNC/crisis/publication badges, and tag assignment. Warn that unpublishing a crisis resource removes it from the footer site-wide.
  • Confirm resource deletion with the names of affected fit-guide items and explain that their resource links are cleared. Confirm tag deletion with a fresh resource usage count, including drafts.
  • Support resource and tag ordering through the existing SortableList and reorder endpoints. Resource ordering includes all resources regardless of table filters.
  • Preserve form values and saved ordering when requests fail, expose retries, and prevent duplicate actions while requests are pending.
  • Add 22 component tests covering the issue's acceptance criteria plus loading, error, retry, and pending states.

Validation: all 381 frontend tests pass across 52 files. Frontend lint, type-checking, production build, targeted Prettier checks, and commit hooks pass.

To review: sign in as a coordinator and open /portal/admin/resources. Exercise the Resources and Tags tabs, filter published/draft resources, edit a draft resource, inspect deletion confirmations, and move resources or tags up/down.

Closes #157

@github-actions

Copy link
Copy Markdown

Backend Test Results

713 tests  ±0   713 ✅ ±0   21s ⏱️ +3s
  1 suites ±0     0 💤 ±0 
  1 files   ±0     0 ❌ ±0 

Results for commit 5fca09c. ± 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 7bbbc84 into main Nov 30, 2026
4 checks passed
@calebyhan
calebyhan deleted the 157/resources-tags-editor branch November 30, 2026 19:55
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 resources and tags editor (W7-04)

2 participants