Skip to content

Show every primary address on the org profile; non-primary to admins - #3034

Open
maebeale wants to merge 1 commit into
mainfrom
maebeale/org-profile-primary-addresses
Open

maebeale wants to merge 1 commit into
mainfrom
maebeale/org-profile-primary-addresses

Conversation

@maebeale

Copy link
Copy Markdown
Collaborator

What

  • Org profile header lists every active primary address, not just the first active one
    • No primary marked → falls back to the first active address (old behavior)
  • Admins also see the other active addresses, as admin-only chips (locality · city, state · district · street)
  • Inactive addresses never show

How

  • Organization#profile_addresses / #profile_other_addresses — work off the already-included addresses, no extra queries
  • organizations/show loops over them; primary rows keep the existing admin-only street chip

Tests

  • Request specs: multiple primaries + non-primary + inactive across admin/non-admin; no-primary fallback

🤖 Generated with Claude Code

The profile header showed only the first active address. It now lists every
active primary address (falling back to the first active one when none is
primary), and admins also see the remaining active addresses as admin-only chips.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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