Skip to content

Show internal notes to admins behind ?admin on people and organizations - #2689

Merged
maebeale merged 3 commits into
mainfrom
maebeale/notes-ux-visibility
Oct 15, 2026
Merged

maebeale merged 3 commits into
mainfrom
maebeale/notes-ux-visibility

Conversation

@maebeale

@maebeale maebeale commented Oct 14, 2026 •

Copy link
Copy Markdown
Collaborator

🤖 suggested review level: 1 Skim 👀 admin-gated form fields, no logic change

Admins can now see and edit a person's internal notes (legacy FileMaker comments), which until now only showed up on the dedupe page. The org field that was already there now matches it.

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

  • people.notes had no UI; organizations and users already exposed theirs on the edit form behind ?admin.

How did you approach the change?

  • Person edit form: an "Internal notes" field like the org one, gated on params[:admin] + manage?.
  • Saving already worked: notes is in PersonPolicy::ADMIN_ONLY_FIELDS.
  • Org form: sentence-cased the label and dropped a dead disabled: toggle (the block already requires manage?). Added specs for it.

UI Testing Checklist

  • /people/:id/edit?admin=true and /organizations/:id/edit?admin=true as admin show "Internal notes" above the buttons
  • Without ?admin the field is hidden

🤖 Generated with Claude Code

@maebeale maebeale changed the title Show a person's internal notes to admins behind ?admin Show internal notes to admins behind ?admin on people and organizations Oct 14, 2026
maebeale and others added 3 commits October 14, 2026 19:59
People notes held legacy FileMaker comments that only surfaced on the
dedupe page; orgs and users already expose theirs behind ?admin.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Sentence-case the label; the disabled toggle was dead since the block
already requires manage?.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@maebeale
maebeale force-pushed the maebeale/notes-ux-visibility branch from dcd8416 to 98d3d5a Compare October 14, 2026 23:59
@maebeale
maebeale marked this pull request as ready for review October 14, 2026 23:59
@maebeale
maebeale merged commit 0d199a4 into main Oct 15, 2026
3 checks passed
@maebeale
maebeale deleted the maebeale/notes-ux-visibility branch October 15, 2026 00:07
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.

1 participant