Skip to content

Remove the Workspace activity badge in Lite - #15757

Merged
krlvi merged 1 commit into
masterfrom
remove-workspace-activity-badge
Sep 7, 2026
Merged

Remove the Workspace activity badge in Lite#15757
krlvi merged 1 commit into
masterfrom
remove-workspace-activity-badge

Conversation

@krlvi

@krlvi krlvi commented Sep 7, 2026

Copy link
Copy Markdown
Member

Context

While checking unread pull request activity on an applied branch, an unexplained numeric badge beside Workspace made its meaning ambiguous. It looked like Upstream's incoming-commit count, but counted unread PRs. The notification bell and branch/PR indicators remain, and Upstream continues to show incoming commits.

Related history: #15736

Change

Remove the Workspace badge and its unused subscriptions and count hook. Add a rendered sidebar regression test for unread PR activity and the preserved indicators.

FYI @PavelLaptev

Copilot AI lite review requested due to automatic review settings September 7, 2026 01:18
@krlvi krlvi added the paper cut Small, localized product or documentation fix label Sep 7, 2026
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-09-07T01:20:39.536634Z 1a2d0f6 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

Copilot AI left a comment

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.

🟡 Changes recommended

The new E2E assertion for the Upstream tab count is overly brittle (exact text concatenation) and should be relaxed to avoid false failures from harmless markup/whitespace changes.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

This PR removes the ambiguous “Workspace” activity numeric badge from the Lite workspace sidebar, along with its related unread-count hook and query subscriptions, and adds an E2E regression test to ensure unread PR activity is still surfaced via the intended indicators (bell/branch marker) while the Workspace tab remains unbadged.

Changes:

  • Removed the Workspace activity badge UI and its supporting forge/review query subscriptions in the Lite workspace sidebar.
  • Deleted the unused useUnreadReviewCount hook from the review-seen module.
  • Added a Lite E2E sidebar regression test covering unread PR activity indicators and the absence of the Workspace badge.
File summaries
File Description
apps/lite/ui/src/routes/project/$id/workspace/Sidebar.tsx Removes rendering of the Workspace activity badge and related imports.
apps/lite/ui/src/review-seen.ts Removes the now-unused unread review counting hook export.
apps/lite/e2e/tests/sidebar.spec.ts Adds an E2E test asserting unread PR activity does not appear as a Workspace tab badge while other indicators remain.
Review details
  • Files reviewed: 3/3 changed files
  • Comments generated: 1
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread apps/lite/e2e/tests/sidebar.spec.ts
Copilot AI review requested due to automatic review settings September 7, 2026 01:26
@krlvi
krlvi force-pushed the remove-workspace-activity-badge branch from 1a2d0f6 to 0d07f88 Compare September 7, 2026 01:26

Copilot AI left a comment

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.

🟢 Approval recommended

The badge removal is complete (including unused hook cleanup) and the added E2E test covers the intended regression surface without introducing apparent risk.

Review details
  • Files reviewed: 3/3 changed files
  • Comments generated: 0 new
  • Review effort level: Lite

@krlvi
krlvi merged commit 3359a73 into master Sep 7, 2026
41 checks passed
@krlvi
krlvi deleted the remove-workspace-activity-badge branch September 7, 2026 12:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

@gitbutler/lite paper cut Small, localized product or documentation fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants