Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit57ae533

Browse files
claudebpmct
authored andcommitted
feat(ui): add unhealthy status filter option to workspaces page
1 parent5994081 commit57ae533

File tree

1 file changed

+13
-2
lines changed
  • site/src/pages/WorkspacesPage/filter

1 file changed

+13
-2
lines changed

‎site/src/pages/WorkspacesPage/filter/menus.tsx‎

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,13 +117,24 @@ export const useStatusFilterMenu = ({
117117
),
118118
};
119119
});
120+
121+
// Add "unhealthy" as a special filter option (not a WorkspaceStatus)
122+
constallOptions=[
123+
...statusOptions,
124+
{
125+
label:"Unhealthy",
126+
value:"unhealthy",
127+
startIcon:<StatusIndicatorDotvariant="warning"/>,
128+
},
129+
];
130+
120131
returnuseFilterMenu({
121132
onChange,
122133
value,
123134
id:"status",
124135
getSelectedOption:async()=>
125-
statusOptions.find((option)=>option.value===value)??null,
126-
getOptions:async()=>statusOptions,
136+
allOptions.find((option)=>option.value===value)??null,
137+
getOptions:async()=>allOptions,
127138
});
128139
};
129140

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp