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

Method isCompletedFrontmatter

src/utils/DependencyCache.ts:467–472  ·  view source on GitHub ↗
(frontmatter: Record<string, unknown>)

Source from the content-addressed store, hash-verified

465 }
466
467 private isCompletedFrontmatter(frontmatter: Record<string, unknown>): boolean {
468 const statusField = this.fieldMapper?.toUserField("status") || "status";
469 const status = frontmatter[statusField];
470 const statusText = this.stringifyStatusValue(status);
471 return Boolean(statusText && this.statusManager.isCompletedStatus(statusText));
472 }
473
474 private stringifyStatusValue(status: unknown): string | null {
475 if (

Callers 3

indexTaskFileMethod · 0.95
updateCompletionStateMethod · 0.95
isCompletedPathMethod · 0.95

Calls 3

stringifyStatusValueMethod · 0.95
toUserFieldMethod · 0.65
isCompletedStatusMethod · 0.65

Tested by

no test coverage detected