Skip to content

Name the scoped entity in the admin weekly bookings grid (#133) - #138

Merged
pataniaeli merged 1 commit into
devfrom
fix/issue-133-scoped-entity-label
Sep 17, 2026
Merged

pataniaeli merged 1 commit into
devfrom
fix/issue-133-scoped-entity-label

Conversation

@pataniaeli

Copy link
Copy Markdown
Collaborator

Closes #133

What changed

In the admin weekly bookings grid, each row was labelled with bodies.name, the owning body. So a division-wide booking showed as a booking for its primary body.

The row label now uses formatScopeLabel, the same helper ScopeLabel uses elsewhere in the admin UI:

  • Divisional: Campus Affairs (Division) — 6:00 PM
  • Multi-body: Owner + 2 others — 6:00 PM
  • Single body: unchanged.

The admin bookings route already returns scope, division and booking_bodies, so no API change was needed.

Related, not changed here

A few other admin views still render bodies?.name directly: the Cancellations tab card title, the Events page, and the Archive tab. They may have the same issue for divisional bookings. I kept this PR to the view the issue names.

Testing

  • tsc --noEmit and eslint clean.
  • Not exercised in a browser: the admin view requires a signed-in session.

🤖 Generated with Claude Code

The weekly grid labelled each row with the owning body's name, so a
division-wide booking read as a booking for its primary body. It now uses
formatScopeLabel, like the rest of the admin UI: a divisional booking
shows its division, and a multi-body booking shows its owner plus the
count of the others.

Co-Authored-By: Claude Opus 5 <[email protected]>
@pataniaeli pataniaeli added bug Something isn't working revision Nothing is broken, but something needs to be resolved labels Sep 17, 2026
@vercel

vercel Bot commented Sep 17, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
chambers Ready Ready Preview Sep 17, 2026 12:47am UTC

@pataniaeli pataniaeli self-assigned this Sep 17, 2026
@pataniaeli pataniaeli linked an issue Sep 17, 2026 that may be closed by this pull request
@pataniaeli
pataniaeli merged commit 06d6c6e into dev Sep 17, 2026
4 checks passed
@pataniaeli
pataniaeli deleted the fix/issue-133-scoped-entity-label branch September 17, 2026 15:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working revision Nothing is broken, but something needs to be resolved

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Display the scoped entity, not the primary body

1 participant