Skip to content
Open
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
32 changes: 32 additions & 0 deletions packages/web/workspace/src/pages/workspace/stage/issues/list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ import { useWorkspace } from "../../context";
import { WindowVirtualizer } from "virtua/solid"

const COL_COUNT_WIDTH = 260;
const COL_TOTAL_WIDTH = 80;
const COL_TIME_WIDTH = 140;

const Content = styled("div", {
Expand Down Expand Up @@ -674,6 +675,22 @@ export function List() {
Last 24hrs
</Text>
</IssuesHeaderCol>
<IssuesHeaderCol
align="right"
style={{ width: `${COL_TOTAL_WIDTH}px` }}
title="Total count in the last 24 hours"
>
<Text
code
uppercase
on="surface"
color="dimmed"
size="mono_sm"
weight="medium"
>
Total
</Text>
</IssuesHeaderCol>
<IssuesHeaderCol
align="right"
style={{ width: `${COL_TIME_WIDTH}px` }}
Expand Down Expand Up @@ -856,6 +873,10 @@ function IssueRow(props: IssueProps) {
.map((hour) => ({ label: hour, value: hours[hour] || 0 }));
});

const totalCount = createMemo(() =>
counts().reduce((sum, item) => sum + item.count, 0)
);

const navigator = useKeyboardNavigator();

return (
Expand Down Expand Up @@ -901,6 +922,17 @@ function IssueRow(props: IssueProps) {
tooltipAlignment={props.last ? "top" : "bottom"}
/>
</IssueCol>
<IssueCol align="right" style={{ width: `${COL_TOTAL_WIDTH}px` }}>
<Text
line
size="sm"
color="secondary"
leading="normal"
weight="medium"
>
{totalCount().toLocaleString()}
</Text>
</IssueCol>
<IssueCol align="right" style={{ width: `${COL_TIME_WIDTH}px` }}>
<Text
line
Expand Down