Skip to content

Make the parent org access callout on the team page collapsible - #14519

Open
anishanne wants to merge 5 commits into
hackclub:mainfrom
anishanne:collapsible-parent-org-access
Open

Make the parent org access callout on the team page collapsible#14519
anishanne wants to merge 5 commits into
hackclub:mainfrom
anishanne:collapsible-parent-org-access

Conversation

@anishanne

Copy link
Copy Markdown
Contributor

Summary of the problem

The "The team behind X also has access to Y" callout takes up a lot of space on the team page.

Describe your changes

Makes the callout minimized by default.

Screen.Recording.2026-08-06.at.2.48.09.PM.mov

@anishanne
anishanne requested a review from a team August 6, 2026 09:22
Comment thread app/views/events/team.html.erb
@anishanne
anishanne requested a review from garyhtou August 6, 2026 18:03
@indirect_access rescanned the whole ancestor position list once per
user (O(users x positions), allocating a fresh array each time), and
re-fetched this organization's own positions even though
ancestor_organizer_positions already includes them. Group the positions
by user in a single pass instead, and preload avatars so the
user_mention per row doesn't hit ActiveStorage individually.

Sort by role value rather than relying on "manager" sorting before
"reader" alphabetically, and break ties by name so the order is stable.

Also drops User#access_level_for, which no longer has any callers, and
the em dash from the callout copy. Adds specs for the inherited-role
rules and for the callout being collapsed by default.

Co-Authored-By: Claude Opus 5 (1M context) <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.

2 participants