Skip to content

Admin bulk action footer#159

Merged
zachchong merged 11 commits intomasterfrom
feature/admin-mass-accept-bookings
Mar 10, 2026
Merged

Admin bulk action footer#159
zachchong merged 11 commits intomasterfrom
feature/admin-mass-accept-bookings

Conversation

@Shum-ster
Copy link
Copy Markdown
Contributor

  • Fix mobile view
  • Fix checkbox UI and add deselect-all X button

@Shum-ster Shum-ster requested a review from zachchong March 5, 2026 15:55

.extraContentContainer {
width: 100%;
padding-left: 60px;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch

Copy link
Copy Markdown
Contributor

@zachchong zachchong left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@zachchong zachchong merged commit a250eb3 into master Mar 10, 2026
2 checks passed
@zachchong zachchong assigned zachchong and unassigned zachchong Mar 10, 2026
@zachchong zachchong requested a review from Copilot March 10, 2026 08:36
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds/improves an admin bulk-action footer for the booking admin table, focusing on mobile layout and selection controls (including a deselect-all affordance).

Changes:

  • Adds a fixed bulk-action footer with a new “deselect all” (✕) control.
  • Adjusts footer styling/layout (including mobile overflow behavior).
  • Tweaks checkbox rendering/expanded-row layout to avoid UI overlap.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
frontend/src/components/booking-admin-table/booking-admin-table.tsx Wires selection footer into the admin booking table and adjusts table layout via footerHeight.
frontend/src/components/admin-bulk-action-footer/admin-bulk-action-footer.tsx Adds an icon-style “deselect all” button to the bulk-action footer UI.
frontend/src/components/admin-bulk-action-footer/admin-bulk-action-footer.module.scss Updates footer positioning/spacing and adds mobile layout rules + icon button styling.
frontend/src/components/admin-booking-base-table/admin-booking-base-table.tsx Hides checkbox on expanded/details rows.
frontend/src/components/admin-booking-base-table/admin-booking-base-table.module.scss Adds left padding to details container to prevent checkbox overlap.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +102 to +103
>
Copy link

Copilot AI Mar 10, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The new icon-only deselect button uses the glyph "✕" with only a title. For accessibility, add an accessible name (e.g., aria-label="Deselect all") and ensure the decorative glyph isn’t the only label screen readers will announce.

Suggested change
>
aria-label="Deselect all"
>
<span aria-hidden="true"></span>

Copilot uses AI. Check for mistakes.
Comment on lines +180 to +184
<BookingSelectionFooter
selectedIds={selectedBookingIds}
processedData={processedData}
onSelectionChange={setSelectedBookingIds}
/>
Copy link

Copilot AI Mar 10, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

BookingSelectionFooter is rendered twice (once inside the Segment.Group and again after it). When selectedBookingIds.size > 0, this will mount two fixed-position footers at the same time (duplicate UI + duplicate DOM actions). Remove one of the render sites (likely keep only the one outside the Segment.Group).

Copilot uses AI. Check for mistakes.
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.

3 participants