@@ -9,6 +9,7 @@ import TableCell from "@mui/material/TableCell";
9
9
import TableContainer from "@mui/material/TableContainer" ;
10
10
import TableHead from "@mui/material/TableHead" ;
11
11
import TableRow from "@mui/material/TableRow" ;
12
+ import { visuallyHidden } from "@mui/utils" ;
12
13
import type { Template , Workspace } from "api/typesGenerated" ;
13
14
import { ExternalAvatar } from "components/Avatar/Avatar" ;
14
15
import { AvatarData } from "components/AvatarData/AvatarData" ;
@@ -20,6 +21,7 @@ import {
20
21
TableRowSkeleton ,
21
22
} from "components/TableLoader/TableLoader" ;
22
23
import { useClickableTableRow } from "hooks/useClickableTableRow" ;
24
+ import { useDashboard } from "modules/dashboard/useDashboard" ;
23
25
import { WorkspaceDormantBadge } from "modules/workspaces/WorkspaceDormantBadge/WorkspaceDormantBadge" ;
24
26
import { WorkspaceOutdatedTooltip } from "modules/workspaces/WorkspaceOutdatedTooltip/WorkspaceOutdatedTooltip" ;
25
27
import { WorkspaceStatusBadge } from "modules/workspaces/WorkspaceStatusBadge/WorkspaceStatusBadge" ;
@@ -52,6 +54,7 @@ export const WorkspacesTable: FC<WorkspacesTableProps> = ({
52
54
canCreateTemplate,
53
55
} ) => {
54
56
const theme = useTheme ( ) ;
57
+ const dashboard = useDashboard ( ) ;
55
58
56
59
return (
57
60
< TableContainer >
@@ -172,7 +175,12 @@ export const WorkspacesTable: FC<WorkspacesTableProps> = ({
172
175
) }
173
176
</ Stack >
174
177
}
175
- subtitle = { workspace . owner_name }
178
+ subtitle = {
179
+ < div >
180
+ < span css = { { ...visuallyHidden } } > User: </ span >
181
+ { workspace . owner_name }
182
+ </ div >
183
+ }
176
184
avatar = {
177
185
< ExternalAvatar
178
186
src = { workspace . template_icon }
@@ -189,7 +197,20 @@ export const WorkspacesTable: FC<WorkspacesTableProps> = ({
189
197
</ TableCell >
190
198
191
199
< TableCell >
192
- { getDisplayWorkspaceTemplateName ( workspace ) }
200
+ < div > { getDisplayWorkspaceTemplateName ( workspace ) } </ div >
201
+
202
+ { dashboard . showOrganizations && (
203
+ < div
204
+ css = { {
205
+ fontSize : 13 ,
206
+ color : theme . palette . text . secondary ,
207
+ lineHeight : 1.5 ,
208
+ } }
209
+ >
210
+ < span css = { { ...visuallyHidden } } > Organization: </ span >
211
+ { workspace . organization_name }
212
+ </ div >
213
+ ) }
193
214
</ TableCell >
194
215
195
216
< TableCell >
0 commit comments