Widen registrants list and slim states card on event dashboard#1586
Open
maebeale wants to merge 1 commit into
Open
Widen registrants list and slim states card on event dashboard#1586maebeale wants to merge 1 commit into
maebeale wants to merge 1 commit into
Conversation
maebeale
commented
Jun 7, 2026
| <ul class="space-y-1 text-xs text-gray-700 max-h-64 overflow-y-auto"> | ||
| <% @dashboard.registrants.each do |registrant| %> | ||
| <% org_names = @dashboard.organization_names_by_registrant[registrant.id] %> | ||
| <li> |
Collaborator
Author
There was a problem hiding this comment.
🤖 From Claude: The full "Name (Org)" string is kept in the link title so hovering still reveals both even when the visible line truncates.
maebeale
commented
Jun 7, 2026
| next unless name | ||
| person_ids.each { |person_id| map[person_id] << name } | ||
| end.transform_values { |names| names.uniq.sort } | ||
| end |
Collaborator
Author
There was a problem hiding this comment.
🤖 From Claude: Reuses the snapshot + active-affiliation map already built for the Organizations card, so labeling registrants adds no queries beyond the org-name lookup. transform_values returns a plain hash (no default block), so a registrant with no org reads as nil and is simply skipped.
The four headcount cards were equal width, leaving the registrants list cramped while the short states list had room to spare. Give registrants more horizontal room (and slim states) so longer names fit, and annotate each registrant with their organization names so affiliation is visible at a glance without opening each profile. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
3d22c11 to
17bfc81
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What is the goal of this PR and why is this important?
How did you approach the change?
lgand reallocated widths: Registrantscol-span-4(wider), Organizations/Sectorscol-span-3(unchanged), Statescol-span-2(thinner).title, so hovering still surfaces both the registrant name and organization name even when the line is truncated.EventDashboard#organization_names_by_registrant(deduped, sorted, multi-org aware) to back the labels, with a spec.Anything else to add?
🤖 Generated with Claude Code