Skip to content

feat: add "updated" search param to workspaces #11714

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

Merged
merged 7 commits into from
Jan 23, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add FE quick selecT
  • Loading branch information
Emyrk committed Jan 23, 2024
commit d4202afab9b903016d6e83596f17eb452f602237
5 changes: 5 additions & 0 deletions site/src/pages/WorkspacesPage/filter/filter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export const workspaceFilterQuery = {
running: "status:running",
failed: "status:failed",
dormant: "dormant:true",
outdated: "updated:false",
};

type FilterPreset = {
Expand All @@ -48,6 +49,10 @@ const PRESET_FILTERS: FilterPreset[] = [
query: workspaceFilterQuery.failed,
name: "Failed workspaces",
},
{
query: workspaceFilterQuery.outdated,
name: "Outdated workspaces",
},
];

// Defined outside component so that the array doesn't get reconstructed each render
Expand Down