MCPcopy Create free account
hub / github.com/callumalpass/tasknotes / findStatusIndex

Method findStatusIndex

src/services/StatusManager.ts:15–20  ·  view source on GitHub ↗
(statuses: StatusConfig[], statusValue: string)

Source from the content-addressed store, hash-verified

13 }
14
15 private findStatusIndex(statuses: StatusConfig[], statusValue: string): number {
16 const normalizedValue = this.normalizeStatusValue(statusValue);
17 return statuses.findIndex(
18 (status) => this.normalizeStatusValue(status.value) === normalizedValue
19 );
20 }
21
22 private getCycleStatuses(): StatusConfig[] {
23 return this.getStatusesByOrder().filter((status) => !status.excludeFromCycle);

Callers 2

getNextStatusMethod · 0.95
getPreviousStatusMethod · 0.95

Calls 1

normalizeStatusValueMethod · 0.95

Tested by

no test coverage detected