Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

fix(md): hide the task progress bar until a box is checked (#9374)

Eric Hayes0a6fbe778192
diff --git a/apps/web/src/lib/core/component/LexicalMarkdown/component/status/Progress.tsx b/apps/web/src/lib/core/component/LexicalMarkdown/component/status/Progress.tsx
index ad0f160ad4..913b51a220 100644
--- a/apps/web/src/lib/core/component/LexicalMarkdown/component/status/Progress.tsx
+++ b/apps/web/src/lib/core/component/LexicalMarkdown/component/status/Progress.tsx
@@ -64,15 +64,17 @@ export function ProgressChip(props: ProgressProps) {
)}
aria-label={progress.tooltip()}
>
- <div
- class="h-1.5 w-14 overflow-hidden rounded-full bg-edge-muted"
- aria-hidden="true"
- >
+ <Show when={props.stats.completed > 0}>
<div
- class="h-full rounded-full bg-accent transition-[width] duration-200 ease-out"
- style={{ width: progress.percentage() }}
- />
- </div>
+ class="h-1.5 w-14 overflow-hidden rounded-full bg-edge-muted"
+ aria-hidden="true"
+ >
+ <div
+ class="h-full rounded-full bg-accent transition-[width] duration-200 ease-out"
+ style={{ width: progress.percentage() }}
+ />
+ </div>
+ </Show>
<span class="shrink-0 tabular-nums text-ink-muted">
{progress.count()}
</span>