Skip to content
Merged
Changes from all commits
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
24 changes: 24 additions & 0 deletions site/src/pages/WorkspacesPage/WorkspacesPageView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ import { Filter } from "./filter/filter"
import { hasError, isApiValidationError } from "api/errors"
import { workspaceFilterQuery } from "utils/filters"
import { SearchBarWithFilter } from "components/SearchBarWithFilter/SearchBarWithFilter"
import Box from "@mui/material/Box"
import Skeleton from "@mui/material/Skeleton"

export const Language = {
pageTitle: "Workspaces",
Expand Down Expand Up @@ -143,6 +145,28 @@ export const WorkspacesPageView: FC<
/>
)}
</Stack>

<Box
sx={{
fontSize: 13,
mb: 2,
mt: 1,
color: (theme) => theme.palette.text.secondary,
"& strong": { color: (theme) => theme.palette.text.primary },
}}
>
{workspaces ? (
<>
Showing <strong>{workspaces?.length}</strong> of{" "}
<strong>{count}</strong> workspaces
</>
) : (
<Box sx={{ height: 24, display: "flex", alignItems: "center" }}>
<Skeleton variant="text" width={160} height={16} />
</Box>
)}
</Box>

<WorkspacesTable
workspaces={workspaces}
isUsingFilter={filterProps.filter.query !== ""}
Expand Down