Skip to content

Add comments to topic subscriptions - #2098

Merged
maebeale merged 2 commits into
mainfrom
maebeale/topic-subscription-comments
Aug 5, 2026
Merged

Add comments to topic subscriptions#2098
maebeale merged 2 commits into
mainfrom
maebeale/topic-subscription-comments

Conversation

@maebeale

@maebeale maebeale commented Aug 5, 2026

Copy link
Copy Markdown
Collaborator

🤖 suggested review level: 3 Read 📖 small, contained: one model made commentable, a form field swap, a filter, and a column-drop migration

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

  • Topic subscriptions had a single free-text Note field. This replaces it with the app's polymorphic comments so subscription notes are structured, attributed, and (in the follow-up PR) roll up onto the person's aggregated comments page.

How did you approach the change?

  • Make TopicSubscription commentable (nested attrs).
  • Swap the form's Note textarea for a save-with-record comments box (form converted to simple_form_for + cocoon nested fields).
  • Add a Comments filter (has comments / flagged / none) to the subscriptions index.
  • Drop the now-unused note column (reversible migration).
  • Trim a redundant explanatory blurb on the email-addresses page.

Anything else to add?

Copilot AI lite review requested due to automatic review settings August 5, 2026 02:56

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 5, 2026 02:56
@maebeale
maebeale marked this pull request as draft August 5, 2026 03:02
Make TopicSubscription commentable and replace the form's free-text
"Note" field with a save-with-record comments box (converted to
simple_form_for + cocoon nested fields). Add a Comments filter
(has comments / flagged / none) to the index, and drop the now-unused
note column via a reversible migration.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@maebeale
maebeale force-pushed the maebeale/topic-subscription-comments branch from 4c29fc6 to 66eb247 Compare August 5, 2026 10:43
The "unrelated edit" test used note:; use source: now that note is gone.

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

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 5, 2026 11:28
@maebeale
maebeale merged commit a509330 into main Aug 5, 2026
3 checks passed
@maebeale
maebeale deleted the maebeale/topic-subscription-comments branch August 5, 2026 11:28
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