Skip to content

Add admin-editable Features & tips page (/features) - #2170

Draft
maebeale wants to merge 9 commits into
mainfrom
maebeale/features-protips-page
Draft

Add admin-editable Features & tips page (/features)#2170
maebeale wants to merge 9 commits into
mainfrom
maebeale/features-protips-page

Conversation

@maebeale

@maebeale maebeale commented Aug 11, 2026

Copy link
Copy Markdown
Collaborator

🤖 suggested review level: 5 Inspect 🔬 new DB model + policy (audience gating), controller CRUD, WYSIWYG form, a public-facing page, and a 132-entry content seed

Screenshot 2026-08-12 at 11 42 27 AM

What is the goal of this PR and why is this important?

  • A login-gated Features & tips page (/features) so facilitators and admins can browse what the portal does, newest first, with pro tips.
  • DB-backed and admin-editable in-app (super-admins) — rich WYSIWYG description (screenshots), an in-app "Check out this feature" link, a GitHub PR link, external doc link, brief summary, area, pro tips, release date.
  • display_status gates visibility: everyone signed in sees public-/user-facing features; admin-facing is admin-only (enforced in FeaturePolicy relation scope, not just hidden in JS).

How did you approach the change?

  • config/features.yml is a checked-in seed of 132 curated user-facing features mined from the full git history (2025-09 → 2026-08), grouped by the nine areas; each carries an action_path and 101 carry a pr_number.
  • "Sync latest updates" button (FeatureCatalog#import!): adds newly-shipped features and fills in blank fields on existing ones — never overwrites an admin's edits; returns created/updated counts.
  • Index: full-width row cards; a feature-list Stimulus controller does client-side search (name + tips), area/audience dropdowns, date range, and newest/oldest sort. Title truncates with the two chips to its right.
  • Detail page: a person-show-style colored topper (area banner + audience chip), title with the date far right, "Check out this feature" + "View the pull request" + "Full guide" links, and admin-blue Edit/Delete buttons.
  • Link lives in the Help menu (desktop + mobile), signed-in only. AI instruction files updated so new features get appended to the seed as we go.

Anything else to add?

  • Rebased on latest main; folds the newest features (payment due date, bulk invite mode, WordPress story import) into the seed.

Copilot AI lite review requested due to automatic review settings August 11, 2026 15:59

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

Copilot AI review requested due to automatic review settings August 11, 2026 16:04

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

maebeale and others added 3 commits August 12, 2026 09:12
A login-gated, filterable "Features & tips" page so facilitators and admins can
see what the portal can do. DB-backed Feature model (rich WYSIWYG description for
screenshots, external doc link, audience/display status, area, pro tips, release
date), edited in-app by super-admins. config/features.yml is the starter seed an
admin "Import from seed" button hydrates (create-missing-only, never clobbers
in-app edits). Client-side search + area/audience dropdowns + date range + sort.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Model/decorator/service/policy/request/routing specs, factory, and page_bg_class
mappings. Document the seed-append workflow in CLAUDE.md, AGENTS.md, and the
Copilot instructions.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Grow config/features.yml from the initial 15 to 132 curated user-facing features
mined from the full git history (2025-09 → 2026-08), grouped by area. Switch the
features index from a 2-up grid to full-width row cards (pro tips move to a right
rail on wide screens).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@maebeale
maebeale force-pushed the maebeale/features-protips-page branch from 496c16d to ded33b7 Compare August 12, 2026 13:22
Copilot AI review requested due to automatic review settings August 12, 2026 13:22

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings August 12, 2026 14:22

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings August 12, 2026 14:24

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings August 12, 2026 14:25

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

- Detail page gets a person-show-style colored topper (area colour banner with the
  area identity + audience chip), title on its own line with the date far right.
- Add per-feature "Check out this feature" in-app link (action_path) and a GitHub
  PR link (pr_number); seed carries both (action_path on all 132, PR # on 101).
- "Import from seed" → "Sync latest updates": now also fills BLANK fields on
  existing features (never overwrites in-app edits); returns created/updated.
- Edit/Delete buttons carry the admin-blue themselves (no background block).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings August 12, 2026 14:43

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

… top-right

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings August 12, 2026 14:58

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

- "Check out this feature" now targets the actual feature page with sample id 1
  (e.g. org-autofill → /events/1/registrants), falling back to the resource index
  when id 1 is absent (FeatureDecorator#resolved_action_url). Re-curated all 132
  action_paths to real routes.
- Audit display_status: Topic subscriptions, Communications, Workshop ideas are
  admin-only (→ admin_facing); CE requests are public (→ public_facing).
- "Sync latest updates" now re-aligns catalog classification (area, audience,
  links, date, PR) so seed corrections propagate, while still only filling blank
  admin content (summary/tips/guide/description) — never overwriting it.
- Search box + Clear button match the community-news look (live filter, btn-utility).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings August 12, 2026 15:16

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

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.

2 participants