Changes
1 changed files (+15/-10)
-
-
@@ -13,6 +13,7 @@ Container,Flex, Grid, IconButton, Link, ScrollArea, Text, VisuallyHidden,
-
@@ -38,6 +39,7 @@ import { NavigationContext, URLContext } from "../../../contexts/Router.tsx";import { useMethodQuery } from "../../../contexts/Service.tsx"; import { IllegalMessageError } from "../../../errors/IllegalMessageError.ts"; import { fromProtoDate, toProtoDate, isSameDate } from "../../../helpers.ts"; import * as workerDashboard from "../workers/:id/Dashboard.tsx"; import { Layout } from "../Layout.tsx"; import { Menu, type ActionTarget } from "./Menu.tsx";
-
@@ -88,14 +90,14 @@ weekday: "short",}); interface BodyProps { workspaceID: proto.MessageShape<typeof WorkspaceSchema>["id"]; workspace: proto.MessageShape<typeof WorkspaceSchema>; month: proto.MessageShape<typeof DateSchema>; onChangeMonth(month: proto.MessageShape<typeof DateSchema>): void; } const Body: FC<BodyProps> = ({ workspaceID, month, onChangeMonth }) => { const Body: FC<BodyProps> = ({ workspace, month, onChangeMonth }) => { const { start, end } = useMemo(() => { const d = fromProtoDate(month);
-
@@ -111,7 +113,7 @@ method: "List",request: { schema: ListRequestSchema, data: { workspaceId: workspaceID, workspaceId: workspace.id, workRecordFilter: { since: start, until: end,
-
@@ -252,7 +254,7 @@ <VisuallyHidden>次の月へ</VisuallyHidden></IconButton> <Box flexGrow="1" flexShrink="1" /> <Menu workspaceID={workspaceID} workspaceID={workspace.id} targets={targets} onWorkRecordMutated={() => { query.refetch();
-
@@ -317,6 +319,7 @@ row={workerIndex}> <Spreadsheet.RowHeader asChild> <Flex asChild className={css.columnHeaderCell} position="sticky" left="0"
-
@@ -325,11 +328,13 @@ align="center"gap="2" p="2" > <Avatar size="2" fallback={worker.displayName[0] || <PersonIcon />} /> <Text>{worker.displayName}</Text> <Link href={workerDashboard.href({ workspace, worker })}> <Avatar size="2" fallback={worker.displayName[0] || <PersonIcon />} /> <Text>{worker.displayName}</Text> </Link> </Flex> </Spreadsheet.RowHeader> {dates.map((date, dateIndex) => {
-
@@ -406,7 +411,7 @@return ( <Layout workspace={workspace} title={<Title />}> <Body workspaceID={workspace.id} workspace={workspace} month={month} onChangeMonth={(month) => { navigation.replace(
-