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

Method setSubGroupsCollapsed

src/bases/TaskListView.ts:2336–2344  ·  view source on GitHub ↗

* Set collapsed state for all subgroups within a specific primary group, * without affecting the primary group itself.

(groupKey: string, collapsed: boolean)

Source from the content-addressed store, hash-verified

2334 * without affecting the primary group itself.
2335 */
2336 private async setSubGroupsCollapsed(groupKey: string, collapsed: boolean): Promise<void> {
2337 for (const subGroupKey of this.currentSubGroupKeysByParent.get(groupKey) || []) {
2338 this.setSetEntry(this.collapsedSubGroups, subGroupKey, collapsed);
2339 }
2340
2341 if (this.lastRenderWasGrouped) {
2342 await this.refreshGroupedView();
2343 }
2344 }
2345
2346 /**
2347 * Set collapsed state for all primary groups,

Calls 3

setSetEntryMethod · 0.95
refreshGroupedViewMethod · 0.95
getMethod · 0.65

Tested by

no test coverage detected