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

Method addQuickToggleCondition

src/services/FilterService.ts:581–587  ·  view source on GitHub ↗

* Add quick toggle conditions (Show Completed, Show Archived, Hide Recurring) * These are syntactic sugar that programmatically modify the root query

(
		query: FilterQuery,
		toggle: QuickFilterToggle,
		enabled: boolean
	)

Source from the content-addressed store, hash-verified

579 * These are syntactic sugar that programmatically modify the root query
580 */
581 addQuickToggleCondition(
582 query: FilterQuery,
583 toggle: QuickFilterToggle,
584 enabled: boolean
585 ): FilterQuery {
586 return applyQuickToggleCondition(query, toggle, enabled, () => FilterUtils.generateId());
587 }
588
589 /**
590 * Validate and normalize a filter query

Callers

nothing calls this directly

Calls 2

generateIdMethod · 0.45

Tested by

no test coverage detected