mirror of
https://github.com/actualbudget/actual.git
synced 2026-05-21 22:52:17 -05:00
* [AI] CLI: hide hidden categories by default in list commands The `categories list` and `category-groups list` commands now exclude hidden entries by default. Pass `--include-hidden` to include them, mirroring the existing `--include-closed` flag for `accounts list`. https://claude.ai/code/session_01DhYiicACsWb5NGHX71Wv4F * [AI] Rename release note to 7785.md and update author https://claude.ai/code/session_01DhYiicACsWb5NGHX71Wv4F * [AI] CLI: simplify category-groups list and consolidate test setup - Flatten the include-hidden ternary on category-groups list into a single filter chain, mirroring categories list. - Consolidate duplicated stderr/stdout spy setup into one outer describe in categories.test.ts. https://claude.ai/code/session_01DhYiicACsWb5NGHX71Wv4F * [AI] Rename release note to 7786.md to match PR number https://claude.ai/code/session_01DhYiicACsWb5NGHX71Wv4F * [AI] Push hidden-category filtering down to the API/query layer Add an optional \`hidden\` filter to \`api.getCategories\` and \`api.getCategoryGroups\`. When set, the AQL query filters category groups by hidden status and nested categories are filtered to match. Internal callers (no options) keep the existing "return everything" behavior. The CLI \`categories list\` and \`category-groups list\` commands now pass \`{ hidden: false }\` instead of filtering client-side after fetching. https://claude.ai/code/session_01DhYiicACsWb5NGHX71Wv4F * [AI] Document new \`hidden\` option on getCategories and getCategoryGroups https://claude.ai/code/session_01DhYiicACsWb5NGHX71Wv4F * [AI] getCategories: include hidden categories from visible groups in list When \`hidden: true\` was requested, the flat list only contained hidden categories that lived inside hidden groups, because it was derived from the same already-filtered groups used for the grouped view. A hidden category sitting in a visible group was silently dropped. Fetch the unfiltered groups for the list view and filter by \`category.hidden\` so the list reflects every hidden category regardless of its parent group's hidden status. The grouped view is unchanged. https://claude.ai/code/session_01DhYiicACsWb5NGHX71Wv4F * [AI] getCategories: query categories table directly when hidden=true Replace the second \`getCategoryGroups()\` call (which loaded every group plus its nested categories just to be flattened and filtered) with a direct \`q('categories').filter({ hidden: true })\` AQL query. Same result, one targeted query instead of fetching all groups. The non-hidden=true paths are unchanged. https://claude.ai/code/session_01DhYiicACsWb5NGHX71Wv4F --------- Co-authored-by: Claude <noreply@anthropic.com>