Skip to content

Aggregated per-person comments + global comments index - #2059

Merged
maebeale merged 3 commits into
mainfrom
maebeale/aggregate-person-comments
Aug 6, 2026
Merged

Aggregated per-person comments + global comments index#2059
maebeale merged 3 commits into
mainfrom
maebeale/aggregate-person-comments

Conversation

@maebeale

@maebeale maebeale commented Aug 2, 2026

Copy link
Copy Markdown
Collaborator

🤖 suggested review level: 5 Inspect 🔬 new admin pages, shared CommentsController create/update branch, new commentable model/routes, search scopes

Stacked on #2098 (topic-subscription comments) — merge #2098 first; this PR is based on that branch and will retarget to main automatically once #2098 merges.

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

  • Comments lived per-record with no rollup. This adds /people/:id/all_comments (admin-only): one searchable, newest-first feed of every comment connected to a person, each tagged with a linked source chip, with an inline composer + in-place editing, and a picker to jump to another person's comments.
  • Adds a global admin comments index (/admin/comments, linked from admin home) with the same search boxes + remote person/event filters.

How did you approach the change?

  • PersonCommentAggregator unions comments across profile + registrations + scholarships + CE + topic subscriptions + user account.
  • Makes ContinuingEducationRegistration commentable; adds nested comment routes + set_commentable branches for scholarships, CE, and topic subscriptions (for the feed's inline edit). Payments stay non-commentable.
  • Reuses CommentsController#create/#update via an aggregated flag; the composer posts the chosen record as a signed GlobalID resolved server-side (no JS action-swapping).
  • Feed + global index use the lazy Turbo-frame filter pattern: keyword (body/topic), author (user remote-select), type, date range, flagged; person/event remote search on the global index.
  • CommentsHelper#commentable_label + CommentDecorator give each row/source its label, link, and theme. "View all" links from every record's comment box to the person's report.

Anything else to add?

  • New specs: aggregator, decorator, comment search scopes, CE-commentable model, and request specs for the person page + global index.

Copilot AI lite review requested due to automatic review settings August 2, 2026 22:47

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
maebeale marked this pull request as ready for review August 4, 2026 05:27
Copilot AI review requested due to automatic review settings August 4, 2026 05:50

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 maebeale changed the title Aggregated per-person comments page Aggregated per-person comments + global comments index Aug 4, 2026
@maebeale
maebeale force-pushed the maebeale/aggregate-person-comments branch from 1a23c42 to 1433b77 Compare August 4, 2026 14:46
Copilot AI review requested due to automatic review settings August 4, 2026 14:46

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 4, 2026 15:30

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 4, 2026 15:33

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 5, 2026 02:06

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 5, 2026 02:09

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 5, 2026 02:12

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 5, 2026 02:17

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 5, 2026 02:18

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 5, 2026 02:26

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 5, 2026 02:39

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
maebeale force-pushed the maebeale/aggregate-person-comments branch from 22579e7 to e500562 Compare August 5, 2026 03:01
Copilot AI review requested due to automatic review settings August 5, 2026 03:01

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
maebeale changed the base branch from main to maebeale/topic-subscription-comments August 5, 2026 03:01
@maebeale
maebeale force-pushed the maebeale/topic-subscription-comments branch from 4c29fc6 to 66eb247 Compare August 5, 2026 10:43
@maebeale
maebeale force-pushed the maebeale/aggregate-person-comments branch 2 times, most recently from 11d11af to 37bfdf7 Compare August 5, 2026 10:53
Base automatically changed from maebeale/topic-subscription-comments to main August 5, 2026 11:28
Stacked on the topic-subscription-comments PR (merge that first).

- /people/:id/all_comments: one searchable, newest-first feed of every
  comment connected to a person (profile, registrations, scholarships, CE,
  topic subscriptions, user account), each tagged with a linked source
  chip; inline composer (signed-GlobalID target picker) + in-place edit;
  jump-to-another-person picker.
- Global admin comments index (/admin/comments) with the same search
  boxes + remote person/event filters, linked from admin home.
- Makes CE registrations commentable; adds nested comment routes +
  set_commentable branches for scholarships, CE, and topic subscriptions
  (for the aggregated feed's inline edit).
- "View all" links from each record's comment box to the person's report.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@maebeale
maebeale force-pushed the maebeale/aggregate-person-comments branch from 37bfdf7 to 2860a05 Compare August 5, 2026 12:04
The aggregated person-comments page and the global comments index weren't
recorded in Ahoy. Fire a distinct view event on each full-page load (not
the Turbo-frame filter requests): view.person_all_comments (with
person_id) and view.comments (page: index).

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

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.

On the global comments index, the person and event remote-selects now
sit together on a second filter row instead of wrapping in with the
keyword/author/type/date filters.

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

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
maebeale merged commit 9095e47 into main Aug 6, 2026
3 checks passed
@maebeale
maebeale deleted the maebeale/aggregate-person-comments branch August 6, 2026 15:58
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