From 6af76b0de266f10ec8116ff4f7de62629c59ef58 Mon Sep 17 00:00:00 2001 From: maebeale Date: Tue, 16 Jun 2026 17:08:24 -0400 Subject: [PATCH 1/5] Mark recipients' primary service area with a star and darker chip MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The scholarship recipients page listed every sector identically, so a recipient's primary service area — the one they singled out on the registration form — was indistinguishable from the rest. Show it first with a gold star and a darker-green fill, mirroring the chip editor on the person edit page (minus the remove control). Seed the first submitted service area as the person's single primary SectorableItem so the demo data exercises this state. Co-Authored-By: Claude Opus 4.8 --- app/views/events/recipients.html.erb | 9 ++++++--- app/views/sectors/_tagging_label.html.erb | 15 +++++++++++---- db/seeds/dev/events_management.rb | 9 +++++++++ .../views/sectors/_tagging_label.html.erb_spec.rb | 14 ++++++++++++++ 4 files changed, 40 insertions(+), 7 deletions(-) diff --git a/app/views/events/recipients.html.erb b/app/views/events/recipients.html.erb index 83f1b14d5..586139099 100644 --- a/app/views/events/recipients.html.erb +++ b/app/views/events/recipients.html.erb @@ -75,7 +75,10 @@ the avatar stays blank). Calm palette: neutral name/org links, with the sector chips as the single accent. %> <% dp = person.decorate %> - <% has_sectors = person.sectors.any? %> + <%# Primary service area first (rendered as a darker-green crowned chip), + then the additional sectors alphabetically. %> + <% sectorable_items = person.sectorable_items_primary_first %> + <% has_sectors = sectorable_items.any? %>