[PR #7786] [MERGED] CLI: Hide hidden categories by default in list commands #109655

Closed
opened 2026-06-02 18:35:50 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/actualbudget/actual/pull/7786
Author: @MatissJanis
Created: 5/9/2026
Status: Merged
Merged: 5/11/2026
Merged by: @MatissJanis

Base: masterHead: claude/hide-default-categories-1cwBZ


📝 Commits (9)

  • 7fe4a2f [AI] CLI: hide hidden categories by default in list commands
  • 2a3f943 Merge remote-tracking branch 'origin/master' into claude/hide-default-categories-1cwBZ
  • 07b9dca [AI] Rename release note to 7785.md and update author
  • e5997f9 [AI] CLI: simplify category-groups list and consolidate test setup
  • 89dfd7b [AI] Rename release note to 7786.md to match PR number
  • fdf1196 [AI] Push hidden-category filtering down to the API/query layer
  • 2fd88c2 [AI] Document new `hidden` option on getCategories and getCategoryGroups
  • 984702d [AI] getCategories: include hidden categories from visible groups in list
  • 428dea9 [AI] getCategories: query categories table directly when hidden=true

📊 Changes

9 files changed (+202 additions, -25 deletions)

View changed files

📝 packages/api/methods.ts (+4 -4)
packages/cli/src/commands/categories.test.ts (+131 -0)
📝 packages/cli/src/commands/categories.ts (+6 -3)
📝 packages/cli/src/commands/category-groups.ts (+6 -3)
📝 packages/docs/docs/api/reference.md (+12 -4)
📝 packages/loot-core/src/server/api.ts (+7 -4)
📝 packages/loot-core/src/server/budget/app.ts (+26 -6)
📝 packages/loot-core/src/types/api-handlers.ts (+4 -1)
upcoming-release-notes/7786.md (+6 -0)

📄 Description

Description

CLI

By default we should not query hidden categories & category groups. It makes the cli usage slightly more convenient.

N/A

Testing

n/a

Checklist

  • Release notes added
  • No obvious regressions in affected areas
  • Self-review has been performed - I understand what each change in the code does and why it is needed

https://claude.ai/code/session_01DhYiicACsWb5NGHX71Wv4F


Bundle Stats

Bundle Files count Total bundle size % Changed
desktop-client 34 13.93 MB 0%
loot-core 1 5.27 MB → 5.27 MB (+474 B) +0.01%
api 2 3.9 MB → 3.9 MB (+518 B) +0.01%
cli 1 7.97 MB → 7.97 MB (+293 B) +0.00%
crdt 1 43.41 kB 0%
View detailed bundle stats

desktop-client

Total

Files count Total bundle size % Changed
34 13.93 MB 0%
View detailed bundle breakdown

Added
No assets were added

Removed
No assets were removed

Bigger
No assets were bigger

Smaller
No assets were smaller

Unchanged

Asset File Size % Changed
static/js/index.js 1.93 MB 0%
static/js/BackgroundImage.js 121.09 kB 0%
static/js/FormulaEditor.js 962.55 kB 0%
static/js/ReportRouter.js 1.22 MB 0%
static/js/ScheduleEditForm.js 145.76 kB 0%
static/js/TransactionEdit.js 190.4 kB 0%
static/js/TransactionList.js 85.81 kB 0%
static/js/Value.js 4.94 MB 0%
static/js/alerts.js 800.08 kB 0%
static/js/bankSyncUtils.js 54.1 kB 0%
static/js/ca.js 187.91 kB 0%
static/js/client.js 451.37 kB 0%
static/js/da.js 101.38 kB 0%
static/js/de.js 170.55 kB 0%
static/js/en-GB.js 8.2 kB 0%
static/js/en.js 185.11 kB 0%
static/js/es.js 179 kB 0%
static/js/extends.js 520.14 kB 0%
static/js/fr.js 178.9 kB 0%
static/js/indexeddb-main-thread-worker-e59fee74.js 13.46 kB 0%
static/js/it.js 165.01 kB 0%
static/js/narrow.js 364.41 kB 0%
static/js/nb-NO.js 148.31 kB 0%
static/js/nl.js 106.47 kB 0%
static/js/pl.js 86.52 kB 0%
static/js/pt-BR.js 189.58 kB 0%
static/js/resize-observer.js 18.06 kB 0%
static/js/th.js 174.76 kB 0%
static/js/theme.js 31.67 kB 0%
static/js/uk.js 207.75 kB 0%
static/js/useFormatList.js 4.96 kB 0%
static/js/wide.js 453 B 0%
static/js/workbox-window.prod.es5.js 7.33 kB 0%
static/js/zh-Hans.js 117.91 kB 0%

loot-core

Total

Files count Total bundle size % Changed
1 5.27 MB → 5.27 MB (+474 B) +0.01%
Changeset
File Δ Size
home/runner/work/actual/actual/packages/loot-core/src/server/budget/app.ts 📈 +431 B (+4.86%) 8.66 kB → 9.08 kB
home/runner/work/actual/actual/packages/loot-core/src/server/api.ts 📈 +43 B (+0.18%) 22.92 kB → 22.96 kB
View detailed bundle breakdown

Added

Asset File Size % Changed
kcab.worker.Cz2_wmSR.js 0 B → 5.27 MB (+5.27 MB) -

Removed

Asset File Size % Changed
kcab.worker.CfcE9hoo.js 5.27 MB → 0 B (-5.27 MB) -100%

Bigger
No assets were bigger

Smaller
No assets were smaller

Unchanged
No assets were unchanged


api

Total

Files count Total bundle size % Changed
2 3.9 MB → 3.9 MB (+518 B) +0.01%
Changeset
File Δ Size
home/runner/work/actual/actual/packages/loot-core/src/server/budget/app.ts 📈 +425 B (+4.88%) 8.5 kB → 8.91 kB
methods.ts 📈 +50 B (+0.86%) 5.67 kB → 5.72 kB
home/runner/work/actual/actual/packages/loot-core/src/server/api.ts 📈 +43 B (+0.19%) 22.31 kB → 22.35 kB
View detailed bundle breakdown

Added
No assets were added

Removed
No assets were removed

Bigger

Asset File Size % Changed
index.js 3.9 MB → 3.9 MB (+518 B) +0.01%

Smaller
No assets were smaller

Unchanged

Asset File Size % Changed
models.js 0 B 0%

cli

Total

Files count Total bundle size % Changed
1 7.97 MB → 7.97 MB (+293 B) +0.00%
Changeset
File Δ Size
src/commands/category-groups.ts 📈 +152 B (+7.65%) 1.94 kB → 2.09 kB
src/commands/categories.ts 📈 +141 B (+6.92%) 1.99 kB → 2.13 kB
View detailed bundle breakdown

Added
No assets were added

Removed
No assets were removed

Bigger

Asset File Size % Changed
cli.js 7.97 MB → 7.97 MB (+293 B) +0.00%

Smaller
No assets were smaller

Unchanged
No assets were unchanged


crdt

Total

Files count Total bundle size % Changed
1 43.41 kB 0%
View detailed bundle breakdown

Added
No assets were added

Removed
No assets were removed

Bigger
No assets were bigger

Smaller
No assets were smaller

Unchanged

Asset File Size % Changed
index.js 43.41 kB 0%

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/actualbudget/actual/pull/7786 **Author:** [@MatissJanis](https://github.com/MatissJanis) **Created:** 5/9/2026 **Status:** ✅ Merged **Merged:** 5/11/2026 **Merged by:** [@MatissJanis](https://github.com/MatissJanis) **Base:** `master` ← **Head:** `claude/hide-default-categories-1cwBZ` --- ### 📝 Commits (9) - [`7fe4a2f`](https://github.com/actualbudget/actual/commit/7fe4a2f5738b0daaa0d739842266c2a6261ceb06) [AI] CLI: hide hidden categories by default in list commands - [`2a3f943`](https://github.com/actualbudget/actual/commit/2a3f943660abaf432b07a0134076686d8cdda03d) Merge remote-tracking branch 'origin/master' into claude/hide-default-categories-1cwBZ - [`07b9dca`](https://github.com/actualbudget/actual/commit/07b9dcacad52c86c9e8ef41d551f4104d13ef208) [AI] Rename release note to 7785.md and update author - [`e5997f9`](https://github.com/actualbudget/actual/commit/e5997f97a8b193968b5035e81d7f9a68dd39b1af) [AI] CLI: simplify category-groups list and consolidate test setup - [`89dfd7b`](https://github.com/actualbudget/actual/commit/89dfd7b6d81d5545aa57de265f126dbd735571e9) [AI] Rename release note to 7786.md to match PR number - [`fdf1196`](https://github.com/actualbudget/actual/commit/fdf1196f8a9fb556d36811ed2a0622f523730c7c) [AI] Push hidden-category filtering down to the API/query layer - [`2fd88c2`](https://github.com/actualbudget/actual/commit/2fd88c2d711cee039b34dbf655eb6360a6363cbe) [AI] Document new \`hidden\` option on getCategories and getCategoryGroups - [`984702d`](https://github.com/actualbudget/actual/commit/984702dd6cccc9f60700fb40f6d7d4988b9bc645) [AI] getCategories: include hidden categories from visible groups in list - [`428dea9`](https://github.com/actualbudget/actual/commit/428dea98235d3c191512111eecb7b853a9d25916) [AI] getCategories: query categories table directly when hidden=true ### 📊 Changes **9 files changed** (+202 additions, -25 deletions) <details> <summary>View changed files</summary> 📝 `packages/api/methods.ts` (+4 -4) ➕ `packages/cli/src/commands/categories.test.ts` (+131 -0) 📝 `packages/cli/src/commands/categories.ts` (+6 -3) 📝 `packages/cli/src/commands/category-groups.ts` (+6 -3) 📝 `packages/docs/docs/api/reference.md` (+12 -4) 📝 `packages/loot-core/src/server/api.ts` (+7 -4) 📝 `packages/loot-core/src/server/budget/app.ts` (+26 -6) 📝 `packages/loot-core/src/types/api-handlers.ts` (+4 -1) ➕ `upcoming-release-notes/7786.md` (+6 -0) </details> ### 📄 Description ## Description CLI By default we should not query hidden categories & category groups. It makes the cli usage slightly more convenient. ## Related issue(s) N/A ## Testing n/a ## Checklist - [x] Release notes added - [x] No obvious regressions in affected areas - [x] Self-review has been performed - I understand what each change in the code does and why it is needed https://claude.ai/code/session_01DhYiicACsWb5NGHX71Wv4F <!--- actual-bot-sections ---> <hr /> <!--- bundlestats-action-comment key:combined start ---> ### Bundle Stats Bundle | Files count | Total bundle size | % Changed ------ | ----------- | ----------------- | --------- desktop-client | 34 | 13.93 MB | 0% loot-core | 1 | 5.27 MB → 5.27 MB (+474 B) | +0.01% api | 2 | 3.9 MB → 3.9 MB (+518 B) | +0.01% cli | 1 | 7.97 MB → 7.97 MB (+293 B) | +0.00% crdt | 1 | 43.41 kB | 0% <details> <summary>View detailed bundle stats</summary> #### desktop-client **Total** Files count | Total bundle size | % Changed ----------- | ----------------- | --------- 34 | 13.93 MB | 0% <details> <summary>View detailed bundle breakdown</summary> <div> **Added** No assets were added **Removed** No assets were removed **Bigger** No assets were bigger **Smaller** No assets were smaller **Unchanged** Asset | File Size | % Changed ----- | --------- | --------- static/js/index.js | 1.93 MB | 0% static/js/BackgroundImage.js | 121.09 kB | 0% static/js/FormulaEditor.js | 962.55 kB | 0% static/js/ReportRouter.js | 1.22 MB | 0% static/js/ScheduleEditForm.js | 145.76 kB | 0% static/js/TransactionEdit.js | 190.4 kB | 0% static/js/TransactionList.js | 85.81 kB | 0% static/js/Value.js | 4.94 MB | 0% static/js/alerts.js | 800.08 kB | 0% static/js/bankSyncUtils.js | 54.1 kB | 0% static/js/ca.js | 187.91 kB | 0% static/js/client.js | 451.37 kB | 0% static/js/da.js | 101.38 kB | 0% static/js/de.js | 170.55 kB | 0% static/js/en-GB.js | 8.2 kB | 0% static/js/en.js | 185.11 kB | 0% static/js/es.js | 179 kB | 0% static/js/extends.js | 520.14 kB | 0% static/js/fr.js | 178.9 kB | 0% static/js/indexeddb-main-thread-worker-e59fee74.js | 13.46 kB | 0% static/js/it.js | 165.01 kB | 0% static/js/narrow.js | 364.41 kB | 0% static/js/nb-NO.js | 148.31 kB | 0% static/js/nl.js | 106.47 kB | 0% static/js/pl.js | 86.52 kB | 0% static/js/pt-BR.js | 189.58 kB | 0% static/js/resize-observer.js | 18.06 kB | 0% static/js/th.js | 174.76 kB | 0% static/js/theme.js | 31.67 kB | 0% static/js/uk.js | 207.75 kB | 0% static/js/useFormatList.js | 4.96 kB | 0% static/js/wide.js | 453 B | 0% static/js/workbox-window.prod.es5.js | 7.33 kB | 0% static/js/zh-Hans.js | 117.91 kB | 0% </div> </details> --- #### loot-core **Total** Files count | Total bundle size | % Changed ----------- | ----------------- | --------- 1 | 5.27 MB → 5.27 MB (+474 B) | +0.01% <details> <summary>Changeset</summary> File | Δ | Size ---- | - | ---- `home/runner/work/actual/actual/packages/loot-core/src/server/budget/app.ts` | 📈 +431 B (+4.86%) | 8.66 kB → 9.08 kB `home/runner/work/actual/actual/packages/loot-core/src/server/api.ts` | 📈 +43 B (+0.18%) | 22.92 kB → 22.96 kB </details> <details> <summary>View detailed bundle breakdown</summary> <div> **Added** Asset | File Size | % Changed ----- | --------- | --------- kcab.worker.Cz2_wmSR.js | 0 B → 5.27 MB (+5.27 MB) | - **Removed** Asset | File Size | % Changed ----- | --------- | --------- kcab.worker.CfcE9hoo.js | 5.27 MB → 0 B (-5.27 MB) | -100% **Bigger** No assets were bigger **Smaller** No assets were smaller **Unchanged** No assets were unchanged </div> </details> --- #### api **Total** Files count | Total bundle size | % Changed ----------- | ----------------- | --------- 2 | 3.9 MB → 3.9 MB (+518 B) | +0.01% <details> <summary>Changeset</summary> File | Δ | Size ---- | - | ---- `home/runner/work/actual/actual/packages/loot-core/src/server/budget/app.ts` | 📈 +425 B (+4.88%) | 8.5 kB → 8.91 kB `methods.ts` | 📈 +50 B (+0.86%) | 5.67 kB → 5.72 kB `home/runner/work/actual/actual/packages/loot-core/src/server/api.ts` | 📈 +43 B (+0.19%) | 22.31 kB → 22.35 kB </details> <details> <summary>View detailed bundle breakdown</summary> <div> **Added** No assets were added **Removed** No assets were removed **Bigger** Asset | File Size | % Changed ----- | --------- | --------- index.js | 3.9 MB → 3.9 MB (+518 B) | +0.01% **Smaller** No assets were smaller **Unchanged** Asset | File Size | % Changed ----- | --------- | --------- models.js | 0 B | 0% </div> </details> --- #### cli **Total** Files count | Total bundle size | % Changed ----------- | ----------------- | --------- 1 | 7.97 MB → 7.97 MB (+293 B) | +0.00% <details> <summary>Changeset</summary> File | Δ | Size ---- | - | ---- `src/commands/category-groups.ts` | 📈 +152 B (+7.65%) | 1.94 kB → 2.09 kB `src/commands/categories.ts` | 📈 +141 B (+6.92%) | 1.99 kB → 2.13 kB </details> <details> <summary>View detailed bundle breakdown</summary> <div> **Added** No assets were added **Removed** No assets were removed **Bigger** Asset | File Size | % Changed ----- | --------- | --------- cli.js | 7.97 MB → 7.97 MB (+293 B) | +0.00% **Smaller** No assets were smaller **Unchanged** No assets were unchanged </div> </details> --- #### crdt **Total** Files count | Total bundle size | % Changed ----------- | ----------------- | --------- 1 | 43.41 kB | 0% <details> <summary>View detailed bundle breakdown</summary> <div> **Added** No assets were added **Removed** No assets were removed **Bigger** No assets were bigger **Smaller** No assets were smaller **Unchanged** Asset | File Size | % Changed ----- | --------- | --------- index.js | 43.41 kB | 0% </div> </details> </details> <!--- bundlestats-action-comment key:combined end ---> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-06-02 18:35:50 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/actual#109655