Skip to content

Build the FAQ and fit guide editor (W7-02) - #177

Merged
calebyhan merged 1 commit into
mainfrom
155/faq-fit-guide-editor
Nov 30, 2026
Merged

calebyhan merged 1 commit into
mainfrom
155/faq-fit-guide-editor

Conversation

@anwang132

Copy link
Copy Markdown
Contributor

The FAQ page and its fit guide ("Is Peer2Peer right for me?") are coordinator-managed (TDD 4.6.8), and the admin APIs and reordering already exist, but /portal/admin/faqs was still a placeholder. This replaces it with an editor for both.

Changes:

  • Replaced the /portal/admin/faqs placeholder with two tabs, FAQs and Fit guide
  • Added FaqManager, which lists FAQs grouped by category with a Published or Draft badge, so coordinators can see what's live
  • FAQs are created and edited in a dialog: category (pick an existing one or type a new one), question, a Markdown answer with a live preview, and a published checkbox
  • FAQs can be deleted after a confirmation, and dragged to reorder within a category with SortableList, saved via PUT /api/admin/faqs/reorder
  • Added FitGuideManager, which shows the "Good fit" and "Another resource may fit better" lists, split on the fit field
  • Fit guide items can be created, edited and deleted (text plus an optional linked resource from GET /api/admin/resources), and reordered via PUT /api/admin/fit-guide/reorder
  • Added tests for both managers: create sends the right body, a 422 shows in the dialog, unpublished FAQs show the draft badge, reordering sends the ids in the new order, and deleting asks first

Frontend only; no backend or migration changes. No anonymity/safety FAQ copy is seeded, since that is waiting on the privacy policy (#2).

Closes #155

@github-actions

Copy link
Copy Markdown

Backend Test Results

730 tests  ±0   730 ✅ ±0   19s ⏱️ -4s
  1 suites ±0     0 💤 ±0 
  1 files   ±0     0 ❌ ±0 

Results for commit 0c9aafe. ± Comparison against base commit 7e3b7bd.

@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 38b84e2 into main Nov 30, 2026
4 checks passed
@calebyhan
calebyhan deleted the 155/faq-fit-guide-editor branch November 30, 2026 20:33
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 FAQ and fit guide editor (W7-02)

2 participants