File tree Expand file tree Collapse file tree 3 files changed +31
-2
lines changed
components/VSCodeDesktopButton Expand file tree Collapse file tree 3 files changed +31
-2
lines changed Original file line number Diff line number Diff line change @@ -69,6 +69,7 @@ export const VSCodeDesktopButton: FC<
69
69
onClick = { ( ) => {
70
70
setIsVariantMenuOpen ( true )
71
71
} }
72
+ sx = { { px : 0 } }
72
73
>
73
74
< KeyboardArrowDownIcon sx = { { fontSize : 16 } } />
74
75
</ PrimaryAgentButton >
Original file line number Diff line number Diff line change @@ -21,6 +21,8 @@ import { Filter } from "./filter/filter"
21
21
import { hasError , isApiValidationError } from "api/errors"
22
22
import { workspaceFilterQuery } from "utils/filters"
23
23
import { SearchBarWithFilter } from "components/SearchBarWithFilter/SearchBarWithFilter"
24
+ import Box from "@mui/material/Box"
25
+ import Skeleton from "@mui/material/Skeleton"
24
26
25
27
export const Language = {
26
28
pageTitle : "Workspaces" ,
@@ -143,9 +145,34 @@ export const WorkspacesPageView: FC<
143
145
/>
144
146
) }
145
147
</ Stack >
148
+
149
+ < Box
150
+ sx = { {
151
+ fontSize : 13 ,
152
+ mb : 2 ,
153
+ mt : 1 ,
154
+ color : ( theme ) => theme . palette . text . secondary ,
155
+ "& strong" : { color : ( theme ) => theme . palette . text . primary } ,
156
+ } }
157
+ >
158
+ { workspaces ? (
159
+ < >
160
+ Showing < strong > { workspaces ?. length } </ strong > of{ " " }
161
+ < strong > { count } </ strong > workspaces
162
+ </ >
163
+ ) : (
164
+ < Box sx = { { height : 24 , display : "flex" , alignItems : "center" } } >
165
+ < Skeleton variant = "text" width = { 160 } height = { 16 } />
166
+ </ Box >
167
+ ) }
168
+ </ Box >
169
+
146
170
< WorkspacesTable
147
171
workspaces = { workspaces }
148
- isUsingFilter = { filterProps . filter . query !== "" }
172
+ isUsingFilter = {
173
+ filterProps . filter . query !== "" &&
174
+ filterProps . filter . query !== workspaceFilterQuery . me
175
+ }
149
176
onUpdateWorkspace = { onUpdateWorkspace }
150
177
error = { error }
151
178
/>
Original file line number Diff line number Diff line change @@ -35,6 +35,7 @@ import {
35
35
BaseOption ,
36
36
} from "./options"
37
37
import debounce from "just-debounce-it"
38
+ import { workspaceFilterQuery } from "utils/filters"
38
39
39
40
export type FilterValues = {
40
41
owner ?: string // User["username"]
@@ -50,7 +51,7 @@ export const useFilter = ({
50
51
onUpdate ?: ( ) => void
51
52
} ) => {
52
53
const [ searchParams , setSearchParams ] = searchParamsResult
53
- const query = searchParams . get ( "filter" ) ?? ""
54
+ const query = searchParams . get ( "filter" ) ?? workspaceFilterQuery . me
54
55
const values = parseFilterQuery ( query )
55
56
56
57
const update = ( values : string | FilterValues ) => {
You can’t perform that action at this time.
0 commit comments