MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / progressLabel

Function progressLabel

graph-ui/src/tours/tour-player.ts:30–36  ·  view source on GitHub ↗
(index: number, total: number)

Source from the content-addressed store, hash-verified

28
29/** `STEP 2/10`. One-based, because the reader is not counting from zero. */
30export function progressLabel(index: number, total: number): string {
31 if (total <= 0) {
32 return 'STEP 0/0';
33 }
34 const at = Math.min(Math.max(index, 0), total - 1);
35 return `STEP ${at + 1}/${total}`;
36}
37
38/**
39 * The chain of blocks beside the label.

Callers 2

TourCardFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected