Skip to content

fix(app): clarify status indicator severity - #36031

Merged
Hona merged 2 commits into
anomalyco:devfrom
Hona:mcp-status-color
Jul 14, 2026
Merged

fix(app): clarify status indicator severity#36031
Hona merged 2 commits into
anomalyco:devfrom
Hona:mcp-status-color

Conversation

@Hona

@Hona Hona commented Jul 9, 2026

Copy link
Copy Markdown
Member

Summary

  • Keep the status indicator green while the server and directory services are healthy.
  • Use the existing bg-icon-warning-base token for non-blocking MCP and LSP issues.
  • Reserve the critical red token for an offline server and apply the same projection to both popover variants.

Testing

  • bun test ./src/components/status-popover-indicator.test.ts
  • bun typecheck
  • bunx prettier --check src/components/status-popover.tsx src/components/status-popover-indicator.ts src/components/status-popover-indicator.test.ts
  • Full app unit run: 569 passed; existing Arabic i18n parity gap failed, and a comments timeout passed on isolated rerun.

Copilot AI review requested due to automatic review settings July 9, 2026 06:28
@Hona
Hona requested a review from Brendonovich as a code owner July 9, 2026 06:28
@Hona Hona added the beta label Jul 9, 2026

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.

Pull request overview

This PR refines the app’s status indicator severity so the dot stays green when the server is healthy, uses the existing warning token for non-blocking MCP/LSP issues, and reserves the critical token for an offline server—consistently across both popover variants.

Changes:

  • Centralized status-dot classification logic into a shared helper (serverStatusDotClass) used by both popover triggers.
  • Reframed MCP/LSP problems as non-blocking “warning” for the indicator while keeping server-offline as “critical”.
  • Added targeted unit tests covering the new indicator classification behavior.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
packages/app/src/components/status-popover.tsx Uses shared indicator helpers and aligns trigger-dot severity rules across popover variants.
packages/app/src/components/status-popover-indicator.ts Introduces shared helper functions to detect non-blocking service issues and compute the dot’s severity class.
packages/app/src/components/status-popover-indicator.test.ts Adds unit tests validating the new indicator class selection and issue detection.

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

Comment on lines +1 to +4
type McpStatus = "connected" | "disabled" | "failed" | "needs_auth" | "needs_client_registration"
type LspStatus = "connected" | "error"

export function hasNonBlockingServiceIssue(input: { mcp: McpStatus[]; lsp: LspStatus[] }) {
@Hona
Hona merged commit b5e0902 into anomalyco:dev Jul 14, 2026
9 checks passed
jerome-benoit pushed a commit to jerome-benoit/opencode that referenced this pull request Jul 14, 2026
avion23 pushed a commit to avion23/opencode that referenced this pull request Jul 17, 2026
avion23 pushed a commit to avion23/opencode that referenced this pull request Jul 20, 2026
3kaiu pushed a commit to 3kaiu/opencode-x that referenced this pull request Jul 31, 2026
MarsQiu007 pushed a commit to MarsQiu007/openNovel that referenced this pull request Jul 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants