Skip to content

feat: add Unhealthy Workspaces filter option #18653

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

blink-so[bot]
Copy link
Contributor

@blink-so blink-so bot commented Jun 28, 2025

Summary

Adds a new preset filter option "Unhealthy workspaces" to the workspace filtering interface, making it easier for users to quickly identify and manage problematic workspaces.

Changes

  • Added unhealthy: "status:failed" mapping to workspaceFilterQuery object
  • Added "Unhealthy workspaces" preset to PRESET_FILTERS array

Implementation Details

The "Unhealthy workspaces" filter maps to status:failed, treating failed workspaces as unhealthy since they represent non-functional or problematic workspaces. This provides users with:

  1. Quick access: A dedicated preset filter for unhealthy workspaces
  2. Consistency: Aligns with existing failed status filtering in StatusMenu
  3. User experience: Intuitive naming that clearly indicates workspace health status

Testing

The implementation integrates seamlessly with existing components:

  • ✅ StatusMenu already includes "failed" status option
  • ✅ WorkspacesTable filtering works with the new preset
  • ✅ Filter query status:failed is properly handled by the backend

Tested by examining the existing codebase structure and ensuring the changes follow established patterns.

Co-authored-by: jaaydenh [email protected]

Adds a new preset filter option 'Unhealthy workspaces' to the workspace
filtering interface. This filter shows workspaces with failed status,
making it easier for users to quickly identify and manage problematic
workspaces.

Changes:
- Add 'unhealthy' query mapping to 'status:failed' in workspaceFilterQuery
- Add 'Unhealthy workspaces' preset to PRESET_FILTERS array

The filter integrates seamlessly with the existing StatusMenu and
WorkspacesTable components.
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.

0 participants