Skip to content

fix: aggregate mobile back highlight badge#38

Merged
Just-Insane merged 1 commit into
integrationfrom
codex/fix-mobile-back-highlight-aggregate
Jun 12, 2026
Merged

fix: aggregate mobile back highlight badge#38
Just-Insane merged 1 commit into
integrationfrom
codex/fix-mobile-back-highlight-aggregate

Conversation

@Just-Insane

Copy link
Copy Markdown
Collaborator

Description

Fixes #

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings

AI disclosure:

  • Partially AI assisted (clarify which code was AI assisted and briefly explain what it does).
  • Fully AI generated (explain what all the generated code does in moderate detail).

Copilot AI review requested due to automatic review settings June 12, 2026 13:36
@Just-Insane Just-Insane merged commit 22a1465 into integration Jun 12, 2026
11 checks passed
@Just-Insane Just-Insane deleted the codex/fix-mobile-back-highlight-aggregate branch June 12, 2026 13:36
@github-actions

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

Status Preview URL Commit Alias Updated (UTC)
✅ Deployment successful! https://pr-38-sable.justin-tech.workers.dev 0b87ec2 pr-38 Fri, 12 Jun 2026 13:38:22 GMT

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Updates the room header’s mobile back-button highlight badge so it reflects aggregated highlight counts for the back target context (Home / Direct / Space) rather than only the currently open room, aligning the badge with the list the user will return to.

Changes:

  • Aggregate highlight counts for the mobile back button based on the active route context (space vs direct vs home).
  • Introduce room-list + unread aggregation hooks in RoomViewHeader to compute the badge value.

Comment on lines +380 to +382
const directUnread = useRoomsUnread(directRooms, roomToUnreadAtom);
const homeUnread = useRoomsUnread(homeRooms, roomToUnreadAtom);
const spaceUnread = useRoomsUnread(spaceChildRooms, roomToUnreadAtom);
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