Skip to content

Commit b7ddcbe

Browse files
committed
fix(tui): remove stale workflow spinner import
1 parent d8b3888 commit b7ddcbe

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

apps/pythinker-code/src/tui/components/messages/dynamic-workflow-mission-control.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
import { truncateToWidth, visibleWidth, type Component } from '@earendil-works/pi-tui';
22

3-
import {
4-
BRAILLE_SPINNER_INTERVAL_MS,
5-
DYNAMIC_WORKFLOW_RENDERING,
6-
} from '#/tui/constant/rendering';
3+
import { DYNAMIC_WORKFLOW_RENDERING } from '#/tui/constant/rendering';
74
import { currentTheme } from '#/tui/theme';
85
import { shimmerText } from '#/tui/utils/shimmer';
96

@@ -533,7 +530,8 @@ export class DynamicWorkflowMissionControlComponent implements Component {
533530
baseToken: 'primary',
534531
shimmerToken: 'primaryShimmer',
535532
frame: Math.floor(
536-
Math.max(0, nowMs - this.model.startedAtMs) / BRAILLE_SPINNER_INTERVAL_MS,
533+
Math.max(0, nowMs - this.model.startedAtMs) /
534+
DYNAMIC_WORKFLOW_RENDERING.aggregateShimmerFrameMs,
537535
),
538536
windowSize: 4,
539537
});

apps/pythinker-code/src/tui/constant/rendering.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ export const DYNAMIC_WORKFLOW_RENDERING = {
3030
memberProgressWidth: 8,
3131
/** Least width of the lifecycle STATE column in member rows. */
3232
stateColumnWidth: 6,
33+
/** Cadence for the live aggregate-label shimmer. */
34+
aggregateShimmerFrameMs: BRAILLE_SPINNER_INTERVAL_MS,
3335
/** Thin-arc frames for a running row; all rows share one clock. */
3436
progressFrames: ['◜', '◝', '◞', '◟'],
3537
/** Arc cadence in milliseconds. */

0 commit comments

Comments
 (0)