MCPcopy
hub / github.com/callumalpass/tasknotes / getPropertyLabels

Function getPropertyLabels

src/utils/propertyHelpers.ts:60–68  ·  view source on GitHub ↗
(
	plugin: TaskNotesPlugin,
	propertyIds: string[]
)

Source from the content-addressed store, hash-verified

58 * Useful for displaying current selection
59 */
60export function getPropertyLabels(
61 plugin: TaskNotesPlugin,
62 propertyIds: string[]
63): string[] {
64 const availableProperties = getAvailableProperties(plugin);
65 return propertyIds
66 .map((id) => availableProperties.find((p) => p.id === id)?.label || id)
67 .filter(Boolean);
68}

Callers 2

renderFeaturesTabFunction · 0.90
renderAppearanceTabFunction · 0.90

Calls 1

getAvailablePropertiesFunction · 0.85

Tested by

no test coverage detected