[PR #8025] 🔍 Add debug logs to the ui #109777

Open
opened 2026-06-02 18:54:42 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/actualbudget/actual/pull/8025
Author: @MikesGlitch
Created: 6/1/2026
Status: 🔄 Open

Base: master ← Head: debug-logs-on-ui


📝 Commits (3)

📊 Changes

17 files changed (+510 additions, -19 deletions)

View changed files

📝 packages/desktop-client/e2e/help-menu.test.ts-snapshots/Help-menu-Check-the-help-menu-visuals-1-chromium-linux.png (+0 -0)
📝 packages/desktop-client/e2e/help-menu.test.ts-snapshots/Help-menu-Check-the-help-menu-visuals-2-chromium-linux.png (+0 -0)
📝 packages/desktop-client/e2e/help-menu.test.ts-snapshots/Help-menu-Check-the-help-menu-visuals-3-chromium-linux.png (+0 -0)
📝 packages/desktop-client/package.json (+2 -1)
📝 packages/desktop-client/src/components/HelpMenu.tsx (+6 -1)
📝 packages/desktop-client/src/components/Modals.tsx (+4 -0)
➕ packages/desktop-client/src/components/modals/DebugLogsModal.tsx (+249 -0)
➕ packages/desktop-client/src/debug/logStore.ts (+138 -0)
➕ packages/desktop-client/src/debug/useDebugLogs.ts (+19 -0)
📝 packages/desktop-client/src/global-events.ts (+6 -0)
📝 packages/desktop-client/src/index.tsx (+1 -0)
📝 packages/desktop-client/src/modals/modalsSlice.ts (+3 -0)
📝 packages/desktop-client/src/notifications/notificationsSlice.ts (+24 -17)
➕ packages/loot-core/src/platform/server/log-forwarder.ts (+41 -0)
📝 packages/loot-core/src/server/main.ts (+2 -0)
📝 packages/loot-core/src/types/server-events.ts (+9 -0)
➕ upcoming-release-notes/8025.md (+6 -0)

📄 Description

TODO:

  • Testing - smaller screen sizes
  • Mobile?
  • Experimental?
  • Cleanup code
  • Tests

Description

AI generated

Adding an in-app log viewer. This should help users add more info to any github issues they're raising.

record-2026-06-01_20-34-19

Related issue(s)

Testing

Checklist

  • Release notes added (see link above)
  • 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

Bundle Stats

Bundle Files count Total bundle size % Changed
desktop-client 37 14.03 MB → 14.04 MB (+11.67 kB) +0.08%
loot-core 1 5.34 MB → 5.34 MB (+871 B) +0.02%
api 2 3.97 MB 0%
cli 1 7.97 MB 0%
crdt 1 11.12 kB 0%
View detailed bundle stats

desktop-client

Total

Files count Total bundle size % Changed
37 14.03 MB → 14.04 MB (+11.67 kB) +0.08%
Changeset
File Δ Size
src/components/modals/DebugLogsModal.tsx 🆕 +8.47 kB 0 B → 8.47 kB
src/debug/logStore.ts 🆕 +2.22 kB 0 B → 2.22 kB
src/debug/useDebugLogs.ts 🆕 +317 B 0 B → 317 B
src/components/HelpMenu.tsx 📈 +378 B (+6.93%) 5.33 kB → 5.69 kB
src/global-events.ts 📈 +166 B (+4.70%) 3.45 kB → 3.61 kB
src/notifications/notificationsSlice.ts 📈 +18 B (+1.21%) 1.45 kB → 1.47 kB
src/components/Modals.tsx 📈 +101 B (+0.77%) 12.85 kB → 12.95 kB
package.json 📈 +33 B (+0.35%) 9.28 kB → 9.32 kB
View detailed bundle breakdown

Added
No assets were added

Removed
No assets were removed

Bigger

Asset File Size % Changed
static/js/index.js 1.54 MB → 1.55 MB (+11.66 kB) +0.74%
static/js/extends.js 500.96 kB → 500.98 kB (+18 B) +0.00%

Smaller
No assets were smaller

Unchanged

Asset File Size % Changed
static/js/BackgroundImage.js 121.09 kB 0%
static/js/FormulaEditor.js 962.55 kB 0%
static/js/ManageRules.js 46.98 kB 0%
static/js/PayeeRuleCountLabel.js 7.33 kB 0%
static/js/ReportRouter.js 1.26 MB 0%
static/js/ScheduleEditForm.js 146.44 kB 0%
static/js/SchedulesTable.js 202.7 kB 0%
static/js/TransactionEdit.js 90.63 kB 0%
static/js/TransactionList.js 85.81 kB 0%
static/js/Value.js 5.08 MB 0%
static/js/_baseIsEqual.js 98.38 kB 0%
static/js/ca.js 186.75 kB 0%
static/js/client.js 451.37 kB 0%
static/js/da.js 101.15 kB 0%
static/js/de.js 170.77 kB 0%
static/js/en-GB.js 9.25 kB 0%
static/js/en.js 198.48 kB 0%
static/js/es.js 178.68 kB 0%
static/js/fr.js 178.57 kB 0%
static/js/indexeddb-main-thread-worker-e59fee74.js 13.46 kB 0%
static/js/it.js 165 kB 0%
static/js/narrow.js 364.2 kB 0%
static/js/nb-NO.js 148.05 kB 0%
static/js/nl.js 106.28 kB 0%
static/js/pt-BR.js 188.43 kB 0%
static/js/resize-observer.js 18.06 kB 0%
static/js/th.js 174.48 kB 0%
static/js/theme.js 31.88 kB 0%
static/js/toString.js 705.14 kB 0%
static/js/uk.js 207.46 kB 0%
static/js/useFormatList.js 2.52 kB 0%
static/js/useTransactionBatchActions.js 9.71 kB 0%
static/js/wide.js 297.21 kB 0%
static/js/workbox-window.prod.es5.js 7.33 kB 0%
static/js/zh-Hans.js 117.01 kB 0%

loot-core

Total

Files count Total bundle size % Changed
1 5.34 MB → 5.34 MB (+871 B) +0.02%
Changeset
File Δ Size
home/runner/work/actual/actual/packages/loot-core/src/platform/server/log-forwarder.ts 🆕 +848 B 0 B → 848 B
home/runner/work/actual/actual/packages/loot-core/src/server/main.ts 📈 +23 B (+0.48%) 4.64 kB → 4.66 kB
View detailed bundle breakdown

Added

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

Removed

Asset File Size % Changed
kcab.worker._bwMMgjb.js 5.34 MB → 0 B (-5.34 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.97 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
index.js 3.97 MB 0%
models.js 0 B 0%

cli

Total

Files count Total bundle size % Changed
1 7.97 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
cli.js 7.97 MB 0%

crdt

Total

Files count Total bundle size % Changed
1 11.12 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 11.12 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/8025 **Author:** [@MikesGlitch](https://github.com/MikesGlitch) **Created:** 6/1/2026 **Status:** 🔄 Open **Base:** `master` ← **Head:** `debug-logs-on-ui` --- ### 📝 Commits (3) - [`c90f636`](https://github.com/actualbudget/actual/commit/c90f636deff57aff53f9ea97b4f8773ddab09ce6) add debug logs to the ui - [`4dc9ca6`](https://github.com/actualbudget/actual/commit/4dc9ca6c14b5b765f1732fa4559c593985f118fe) release notes - [`a0bd9fe`](https://github.com/actualbudget/actual/commit/a0bd9feafd0024129552ba85ff0cb6ce0b6ffa6e) Update VRT screenshots ### 📊 Changes **17 files changed** (+510 additions, -19 deletions) <details> <summary>View changed files</summary> 📝 `packages/desktop-client/e2e/help-menu.test.ts-snapshots/Help-menu-Check-the-help-menu-visuals-1-chromium-linux.png` (+0 -0) 📝 `packages/desktop-client/e2e/help-menu.test.ts-snapshots/Help-menu-Check-the-help-menu-visuals-2-chromium-linux.png` (+0 -0) 📝 `packages/desktop-client/e2e/help-menu.test.ts-snapshots/Help-menu-Check-the-help-menu-visuals-3-chromium-linux.png` (+0 -0) 📝 `packages/desktop-client/package.json` (+2 -1) 📝 `packages/desktop-client/src/components/HelpMenu.tsx` (+6 -1) 📝 `packages/desktop-client/src/components/Modals.tsx` (+4 -0) ➕ `packages/desktop-client/src/components/modals/DebugLogsModal.tsx` (+249 -0) ➕ `packages/desktop-client/src/debug/logStore.ts` (+138 -0) ➕ `packages/desktop-client/src/debug/useDebugLogs.ts` (+19 -0) 📝 `packages/desktop-client/src/global-events.ts` (+6 -0) 📝 `packages/desktop-client/src/index.tsx` (+1 -0) 📝 `packages/desktop-client/src/modals/modalsSlice.ts` (+3 -0) 📝 `packages/desktop-client/src/notifications/notificationsSlice.ts` (+24 -17) ➕ `packages/loot-core/src/platform/server/log-forwarder.ts` (+41 -0) 📝 `packages/loot-core/src/server/main.ts` (+2 -0) 📝 `packages/loot-core/src/types/server-events.ts` (+9 -0) ➕ `upcoming-release-notes/8025.md` (+6 -0) </details> ### 📄 Description <!-- Thank you for submitting a pull request! Make sure to follow the instructions to write release notes for your PR — it should only take a minute or two: https://actualbudget.org/docs/contributing/#writing-good-release-notes. Try running yarn generate:release-notes *before* pushing your PR for an interactive experience. --> ## TODO: - [ ] Testing - smaller screen sizes - [ ] Mobile? - [ ] Experimental? - [ ] Cleanup code - [ ] Tests ## Description AI generated Adding an in-app log viewer. This should help users add more info to any github issues they're raising. <img width="932" height="822" alt="record-2026-06-01_20-34-19" src="https://github.com/user-attachments/assets/3e7d6bbd-376b-4494-8aef-af1e23396423" /> <!-- What does this PR do? Why is it needed? Please give context on the "why?": why do we need this change? What problem is it solving for you?--> ## Related issue(s) <!-- e.g. Fixes #123, Relates to #456 --> ## Testing <!-- What did you test? How can we reproduce the issue you are fixing or how can we test the feature you built? --> ## Checklist - [ ] Release notes added (see link above) - [ ] 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 <!--- actual-bot-sections ---> <!--- bundlestats-action-comment key:combined start ---> ### Bundle Stats Bundle | Files count | Total bundle size | % Changed ------ | ----------- | ----------------- | --------- desktop-client | 37 | 14.03 MB → 14.04 MB (+11.67 kB) | +0.08% loot-core | 1 | 5.34 MB → 5.34 MB (+871 B) | +0.02% api | 2 | 3.97 MB | 0% cli | 1 | 7.97 MB | 0% crdt | 1 | 11.12 kB | 0% <details> <summary>View detailed bundle stats</summary> #### desktop-client **Total** Files count | Total bundle size | % Changed ----------- | ----------------- | --------- 37 | 14.03 MB → 14.04 MB (+11.67 kB) | +0.08% <details> <summary>Changeset</summary> File | Δ | Size ---- | - | ---- `src/components/modals/DebugLogsModal.tsx` | 🆕 +8.47 kB | 0 B → 8.47 kB `src/debug/logStore.ts` | 🆕 +2.22 kB | 0 B → 2.22 kB `src/debug/useDebugLogs.ts` | 🆕 +317 B | 0 B → 317 B `src/components/HelpMenu.tsx` | 📈 +378 B (+6.93%) | 5.33 kB → 5.69 kB `src/global-events.ts` | 📈 +166 B (+4.70%) | 3.45 kB → 3.61 kB `src/notifications/notificationsSlice.ts` | 📈 +18 B (+1.21%) | 1.45 kB → 1.47 kB `src/components/Modals.tsx` | 📈 +101 B (+0.77%) | 12.85 kB → 12.95 kB `package.json` | 📈 +33 B (+0.35%) | 9.28 kB → 9.32 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 ----- | --------- | --------- static/js/index.js | 1.54 MB → 1.55 MB (+11.66 kB) | +0.74% static/js/extends.js | 500.96 kB → 500.98 kB (+18 B) | +0.00% **Smaller** No assets were smaller **Unchanged** Asset | File Size | % Changed ----- | --------- | --------- static/js/BackgroundImage.js | 121.09 kB | 0% static/js/FormulaEditor.js | 962.55 kB | 0% static/js/ManageRules.js | 46.98 kB | 0% static/js/PayeeRuleCountLabel.js | 7.33 kB | 0% static/js/ReportRouter.js | 1.26 MB | 0% static/js/ScheduleEditForm.js | 146.44 kB | 0% static/js/SchedulesTable.js | 202.7 kB | 0% static/js/TransactionEdit.js | 90.63 kB | 0% static/js/TransactionList.js | 85.81 kB | 0% static/js/Value.js | 5.08 MB | 0% static/js/_baseIsEqual.js | 98.38 kB | 0% static/js/ca.js | 186.75 kB | 0% static/js/client.js | 451.37 kB | 0% static/js/da.js | 101.15 kB | 0% static/js/de.js | 170.77 kB | 0% static/js/en-GB.js | 9.25 kB | 0% static/js/en.js | 198.48 kB | 0% static/js/es.js | 178.68 kB | 0% static/js/fr.js | 178.57 kB | 0% static/js/indexeddb-main-thread-worker-e59fee74.js | 13.46 kB | 0% static/js/it.js | 165 kB | 0% static/js/narrow.js | 364.2 kB | 0% static/js/nb-NO.js | 148.05 kB | 0% static/js/nl.js | 106.28 kB | 0% static/js/pt-BR.js | 188.43 kB | 0% static/js/resize-observer.js | 18.06 kB | 0% static/js/th.js | 174.48 kB | 0% static/js/theme.js | 31.88 kB | 0% static/js/toString.js | 705.14 kB | 0% static/js/uk.js | 207.46 kB | 0% static/js/useFormatList.js | 2.52 kB | 0% static/js/useTransactionBatchActions.js | 9.71 kB | 0% static/js/wide.js | 297.21 kB | 0% static/js/workbox-window.prod.es5.js | 7.33 kB | 0% static/js/zh-Hans.js | 117.01 kB | 0% </div> </details> --- #### loot-core **Total** Files count | Total bundle size | % Changed ----------- | ----------------- | --------- 1 | 5.34 MB → 5.34 MB (+871 B) | +0.02% <details> <summary>Changeset</summary> File | Δ | Size ---- | - | ---- `home/runner/work/actual/actual/packages/loot-core/src/platform/server/log-forwarder.ts` | 🆕 +848 B | 0 B → 848 B `home/runner/work/actual/actual/packages/loot-core/src/server/main.ts` | 📈 +23 B (+0.48%) | 4.64 kB → 4.66 kB </details> <details> <summary>View detailed bundle breakdown</summary> <div> **Added** Asset | File Size | % Changed ----- | --------- | --------- kcab.worker.CNJkUJwq.js | 0 B → 5.34 MB (+5.34 MB) | - **Removed** Asset | File Size | % Changed ----- | --------- | --------- kcab.worker._bwMMgjb.js | 5.34 MB → 0 B (-5.34 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.97 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 ----- | --------- | --------- index.js | 3.97 MB | 0% models.js | 0 B | 0% </div> </details> --- #### cli **Total** Files count | Total bundle size | % Changed ----------- | ----------------- | --------- 1 | 7.97 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 ----- | --------- | --------- cli.js | 7.97 MB | 0% </div> </details> --- #### crdt **Total** Files count | Total bundle size | % Changed ----------- | ----------------- | --------- 1 | 11.12 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 | 11.12 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:54:42 -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#109777