[PR #8200] Replace mobile amount input with calculator #136444

Open
opened 2026-06-17 21:13:51 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/actualbudget/actual/pull/8200
Author: @tim-smart
Created: 6/12/2026
Status: 🔄 Open

Base: masterHead: mobile-calc


📝 Commits (3)

📊 Changes

17 files changed (+1104 additions, -127 deletions)

View changed files

📝 packages/component-library/src/Input.tsx (+1 -1)
packages/desktop-client/src/components/common/CalculatorButtons.test.tsx (+99 -0)
packages/desktop-client/src/components/common/CalculatorButtons.tsx (+276 -0)
📝 packages/desktop-client/src/components/common/Modal.tsx (+6 -0)
packages/desktop-client/src/components/mobile/transactions/AmountInput.tsx (+99 -0)
packages/desktop-client/src/components/mobile/transactions/CalculatorAmountInput.tsx (+237 -0)
packages/desktop-client/src/components/mobile/transactions/CalculatorKeyboard.tsx (+163 -0)
📝 packages/desktop-client/src/components/mobile/transactions/FocusableAmountInput.tsx (+4 -3)
packages/desktop-client/src/components/mobile/transactions/SplitAmountInput.tsx (+92 -0)
📝 packages/desktop-client/src/components/mobile/transactions/TransactionEdit.tsx (+80 -66)
📝 packages/desktop-client/src/components/modals/EnvelopeBudgetMenuModal.tsx (+15 -27)
📝 packages/desktop-client/src/components/modals/TrackingBudgetMenuModal.tsx (+15 -28)
📝 packages/desktop-client/src/components/settings/Experimental.tsx (+6 -0)
📝 packages/desktop-client/src/hooks/useFeatureFlag.ts (+1 -0)
📝 packages/desktop-client/vite.config.mts (+2 -1)
📝 packages/loot-core/src/types/prefs.ts (+2 -1)
upcoming-release-notes/mobile-calculator.md (+6 -0)

📄 Description

AI wrote some parts of the PR, but heavily reviewed and modified by me.

Checklist

  • Release notes added (see link above)
  • No obvious regressions in affected areas
  • Self-review has been performed - I have read every line of this diff and can explain what each change does and why it is needed

Bundle Stats

Bundle Files count Total bundle size % Changed
desktop-client 29 13.1 MB → 13.13 MB (+28.71 kB) +0.21%
loot-core 1 4.9 MB 0%
api 2 3.93 MB 0%
cli 1 8.02 MB 0%
crdt 1 11.12 kB 0%
View detailed bundle stats

desktop-client

Total

Files count Total bundle size % Changed
29 13.1 MB → 13.13 MB (+28.71 kB) +0.21%
Changeset
File Δ Size
src/components/common/CalculatorButtons.tsx 🆕 +9.95 kB 0 B → 9.95 kB
src/components/mobile/transactions/CalculatorKeyboard.tsx 🆕 +5.75 kB 0 B → 5.75 kB
src/components/mobile/transactions/CalculatorAmountInput.tsx 🆕 +4.65 kB 0 B → 4.65 kB
src/components/mobile/transactions/SplitAmountInput.tsx 🆕 +4.12 kB 0 B → 4.12 kB
src/components/mobile/transactions/AmountInput.tsx 🆕 +4.12 kB 0 B → 4.12 kB
src/hooks/useFeatureFlag.ts 📈 +26 B (+4.36%) 596 B → 622 B
src/components/settings/Experimental.tsx 📈 +205 B (+1.72%) 11.66 kB → 11.86 kB
src/components/mobile/transactions/FocusableAmountInput.tsx 📈 +110 B (+0.80%) 13.39 kB → 13.5 kB
src/components/common/Modal.tsx 📈 +71 B (+0.56%) 12.37 kB → 12.44 kB
src/components/mobile/transactions/TransactionEdit.tsx 📈 +361 B (+0.49%) 71.59 kB → 71.94 kB
src/components/transactions/TransactionMenu.tsx 📈 +2 B (+0.02%) 8.32 kB → 8.32 kB
src/components/schedules/ScheduleEditForm.tsx 📉 -2 B (-0.01%) 26.76 kB → 26.75 kB
src/components/modals/SelectLinkedAccountsModal.tsx 📉 -4 B (-0.01%) 43.51 kB → 43.51 kB
src/components/util/GenericInput.tsx 📉 -2 B (-0.01%) 17.62 kB → 17.61 kB
src/components/budget/goals/editor/BySaveAutomation.tsx 📉 -2 B (-0.01%) 13.27 kB → 13.26 kB
src/components/budget/goals/editor/LimitAutomation.tsx 📉 -2 B (-0.02%) 10.18 kB → 10.18 kB
src/components/budget/goals/editor/FixedAutomation.tsx 📉 -2 B (-0.03%) 7.68 kB → 7.68 kB
src/components/modals/CoverModal.tsx 📉 -2 B (-0.03%) 5.78 kB → 5.78 kB
src/components/budget/goals/editor/AmountAdjustment.tsx 📉 -2 B (-0.04%) 5.45 kB → 5.45 kB
src/components/modals/TransferModal.tsx 📉 -2 B (-0.04%) 5.15 kB → 5.15 kB
src/components/modals/HoldBufferModal.tsx 📉 -2 B (-0.07%) 2.74 kB → 2.74 kB
src/components/util/AmountInput.tsx 📉 -6 B (-0.09%) 6.4 kB → 6.39 kB
src/components/budget/goals/editor/LongTermGoalAutomation.tsx 📉 -2 B (-0.10%) 1.95 kB → 1.95 kB
src/components/modals/TrackingBudgetMenuModal.tsx 📉 -314 B (-4.71%) 6.5 kB → 6.2 kB
src/components/modals/EnvelopeBudgetMenuModal.tsx 📉 -313 B (-4.78%) 6.4 kB → 6.09 kB
View detailed bundle breakdown

Added
No assets were added

Removed
No assets were removed

Bigger

Asset File Size % Changed
static/js/index.js 7.61 MB → 7.64 MB (+28.71 kB) +0.37%

Smaller
No assets were smaller

Unchanged

Asset File Size % Changed
static/js/BackgroundImage.js 121.09 kB 0%
static/js/FormulaEditor.js 735.67 kB 0%
static/js/PayeeRuleCountLabel.js 7.1 kB 0%
static/js/ReportRouter.js 1.25 MB 0%
static/js/TransactionList.js 85.25 kB 0%
static/js/_baseIsEqual.js 76.78 kB 0%
static/js/ca.js 179.71 kB 0%
static/js/da.js 100.19 kB 0%
static/js/de.js 176.61 kB 0%
static/js/en-GB.js 9.25 kB 0%
static/js/en.js 200.33 kB 0%
static/js/es.js 171.82 kB 0%
static/js/extends.js 478.5 kB 0%
static/js/fr.js 171.39 kB 0%
static/js/indexeddb-main-thread-worker-e59fee74.js 13.46 kB 0%
static/js/it.js 158.13 kB 0%
static/js/narrow.js 358.88 kB 0%
static/js/nb-NO.js 141.55 kB 0%
static/js/nl.js 119.14 kB 0%
static/js/pt-BR.js 181.5 kB 0%
static/js/resize-observer.js 18.06 kB 0%
static/js/th.js 173.33 kB 0%
static/js/theme.js 31.02 kB 0%
static/js/uk.js 209.97 kB 0%
static/js/useTransactionBatchActions.js 9.71 kB 0%
static/js/wide.js 298.21 kB 0%
static/js/workbox-window.prod.es5.js 7.21 kB 0%
static/js/zh-Hans.js 113.26 kB 0%

loot-core

Total

Files count Total bundle size % Changed
1 4.9 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
kcab.worker.VDgbgKoY.js 4.9 MB 0%

api

Total

Files count Total bundle size % Changed
2 3.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
index.js 3.93 MB 0%
models.js 0 B 0%

cli

Total

Files count Total bundle size % Changed
1 8.02 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 8.02 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/8200 **Author:** [@tim-smart](https://github.com/tim-smart) **Created:** 6/12/2026 **Status:** 🔄 Open **Base:** `master` ← **Head:** `mobile-calc` --- ### 📝 Commits (3) - [`f92be0b`](https://github.com/actualbudget/actual/commit/f92be0be75d7065b6ecba34a244c27020baf08ea) Add mobile calculator input - [`ceb63f6`](https://github.com/actualbudget/actual/commit/ceb63f65eec05b20d96b6ad8b5bacd80b4d3550a) remove screenshots - [`03e8d2b`](https://github.com/actualbudget/actual/commit/03e8d2b59648d0239a266c537971bd3dc3a89d02) remove modal ### 📊 Changes **17 files changed** (+1104 additions, -127 deletions) <details> <summary>View changed files</summary> 📝 `packages/component-library/src/Input.tsx` (+1 -1) ➕ `packages/desktop-client/src/components/common/CalculatorButtons.test.tsx` (+99 -0) ➕ `packages/desktop-client/src/components/common/CalculatorButtons.tsx` (+276 -0) 📝 `packages/desktop-client/src/components/common/Modal.tsx` (+6 -0) ➕ `packages/desktop-client/src/components/mobile/transactions/AmountInput.tsx` (+99 -0) ➕ `packages/desktop-client/src/components/mobile/transactions/CalculatorAmountInput.tsx` (+237 -0) ➕ `packages/desktop-client/src/components/mobile/transactions/CalculatorKeyboard.tsx` (+163 -0) 📝 `packages/desktop-client/src/components/mobile/transactions/FocusableAmountInput.tsx` (+4 -3) ➕ `packages/desktop-client/src/components/mobile/transactions/SplitAmountInput.tsx` (+92 -0) 📝 `packages/desktop-client/src/components/mobile/transactions/TransactionEdit.tsx` (+80 -66) 📝 `packages/desktop-client/src/components/modals/EnvelopeBudgetMenuModal.tsx` (+15 -27) 📝 `packages/desktop-client/src/components/modals/TrackingBudgetMenuModal.tsx` (+15 -28) 📝 `packages/desktop-client/src/components/settings/Experimental.tsx` (+6 -0) 📝 `packages/desktop-client/src/hooks/useFeatureFlag.ts` (+1 -0) 📝 `packages/desktop-client/vite.config.mts` (+2 -1) 📝 `packages/loot-core/src/types/prefs.ts` (+2 -1) ➕ `upcoming-release-notes/mobile-calculator.md` (+6 -0) </details> ### 📄 Description AI wrote some parts of the PR, but heavily reviewed and modified by me. ## Checklist - [x] Release notes added (see link above) - [x] No obvious regressions in affected areas - [x] Self-review has been performed - I have read every line of this diff and can explain what each change does and why it is needed <!--- actual-bot-sections ---> <hr /> <!--- bundlestats-action-comment key:combined start ---> ### Bundle Stats Bundle | Files count | Total bundle size | % Changed ------ | ----------- | ----------------- | --------- desktop-client | 29 | 13.1 MB → 13.13 MB (+28.71 kB) | +0.21% loot-core | 1 | 4.9 MB | 0% api | 2 | 3.93 MB | 0% cli | 1 | 8.02 MB | 0% crdt | 1 | 11.12 kB | 0% <details> <summary>View detailed bundle stats</summary> #### desktop-client **Total** Files count | Total bundle size | % Changed ----------- | ----------------- | --------- 29 | 13.1 MB → 13.13 MB (+28.71 kB) | +0.21% <details> <summary>Changeset</summary> File | Δ | Size ---- | - | ---- `src/components/common/CalculatorButtons.tsx` | 🆕 +9.95 kB | 0 B → 9.95 kB `src/components/mobile/transactions/CalculatorKeyboard.tsx` | 🆕 +5.75 kB | 0 B → 5.75 kB `src/components/mobile/transactions/CalculatorAmountInput.tsx` | 🆕 +4.65 kB | 0 B → 4.65 kB `src/components/mobile/transactions/SplitAmountInput.tsx` | 🆕 +4.12 kB | 0 B → 4.12 kB `src/components/mobile/transactions/AmountInput.tsx` | 🆕 +4.12 kB | 0 B → 4.12 kB `src/hooks/useFeatureFlag.ts` | 📈 +26 B (+4.36%) | 596 B → 622 B `src/components/settings/Experimental.tsx` | 📈 +205 B (+1.72%) | 11.66 kB → 11.86 kB `src/components/mobile/transactions/FocusableAmountInput.tsx` | 📈 +110 B (+0.80%) | 13.39 kB → 13.5 kB `src/components/common/Modal.tsx` | 📈 +71 B (+0.56%) | 12.37 kB → 12.44 kB `src/components/mobile/transactions/TransactionEdit.tsx` | 📈 +361 B (+0.49%) | 71.59 kB → 71.94 kB `src/components/transactions/TransactionMenu.tsx` | 📈 +2 B (+0.02%) | 8.32 kB → 8.32 kB `src/components/schedules/ScheduleEditForm.tsx` | 📉 -2 B (-0.01%) | 26.76 kB → 26.75 kB `src/components/modals/SelectLinkedAccountsModal.tsx` | 📉 -4 B (-0.01%) | 43.51 kB → 43.51 kB `src/components/util/GenericInput.tsx` | 📉 -2 B (-0.01%) | 17.62 kB → 17.61 kB `src/components/budget/goals/editor/BySaveAutomation.tsx` | 📉 -2 B (-0.01%) | 13.27 kB → 13.26 kB `src/components/budget/goals/editor/LimitAutomation.tsx` | 📉 -2 B (-0.02%) | 10.18 kB → 10.18 kB `src/components/budget/goals/editor/FixedAutomation.tsx` | 📉 -2 B (-0.03%) | 7.68 kB → 7.68 kB `src/components/modals/CoverModal.tsx` | 📉 -2 B (-0.03%) | 5.78 kB → 5.78 kB `src/components/budget/goals/editor/AmountAdjustment.tsx` | 📉 -2 B (-0.04%) | 5.45 kB → 5.45 kB `src/components/modals/TransferModal.tsx` | 📉 -2 B (-0.04%) | 5.15 kB → 5.15 kB `src/components/modals/HoldBufferModal.tsx` | 📉 -2 B (-0.07%) | 2.74 kB → 2.74 kB `src/components/util/AmountInput.tsx` | 📉 -6 B (-0.09%) | 6.4 kB → 6.39 kB `src/components/budget/goals/editor/LongTermGoalAutomation.tsx` | 📉 -2 B (-0.10%) | 1.95 kB → 1.95 kB `src/components/modals/TrackingBudgetMenuModal.tsx` | 📉 -314 B (-4.71%) | 6.5 kB → 6.2 kB `src/components/modals/EnvelopeBudgetMenuModal.tsx` | 📉 -313 B (-4.78%) | 6.4 kB → 6.09 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 | 7.61 MB → 7.64 MB (+28.71 kB) | +0.37% **Smaller** No assets were smaller **Unchanged** Asset | File Size | % Changed ----- | --------- | --------- static/js/BackgroundImage.js | 121.09 kB | 0% static/js/FormulaEditor.js | 735.67 kB | 0% static/js/PayeeRuleCountLabel.js | 7.1 kB | 0% static/js/ReportRouter.js | 1.25 MB | 0% static/js/TransactionList.js | 85.25 kB | 0% static/js/_baseIsEqual.js | 76.78 kB | 0% static/js/ca.js | 179.71 kB | 0% static/js/da.js | 100.19 kB | 0% static/js/de.js | 176.61 kB | 0% static/js/en-GB.js | 9.25 kB | 0% static/js/en.js | 200.33 kB | 0% static/js/es.js | 171.82 kB | 0% static/js/extends.js | 478.5 kB | 0% static/js/fr.js | 171.39 kB | 0% static/js/indexeddb-main-thread-worker-e59fee74.js | 13.46 kB | 0% static/js/it.js | 158.13 kB | 0% static/js/narrow.js | 358.88 kB | 0% static/js/nb-NO.js | 141.55 kB | 0% static/js/nl.js | 119.14 kB | 0% static/js/pt-BR.js | 181.5 kB | 0% static/js/resize-observer.js | 18.06 kB | 0% static/js/th.js | 173.33 kB | 0% static/js/theme.js | 31.02 kB | 0% static/js/uk.js | 209.97 kB | 0% static/js/useTransactionBatchActions.js | 9.71 kB | 0% static/js/wide.js | 298.21 kB | 0% static/js/workbox-window.prod.es5.js | 7.21 kB | 0% static/js/zh-Hans.js | 113.26 kB | 0% </div> </details> --- #### loot-core **Total** Files count | Total bundle size | % Changed ----------- | ----------------- | --------- 1 | 4.9 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 ----- | --------- | --------- kcab.worker.VDgbgKoY.js | 4.9 MB | 0% </div> </details> --- #### api **Total** Files count | Total bundle size | % Changed ----------- | ----------------- | --------- 2 | 3.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 ----- | --------- | --------- index.js | 3.93 MB | 0% models.js | 0 B | 0% </div> </details> --- #### cli **Total** Files count | Total bundle size | % Changed ----------- | ----------------- | --------- 1 | 8.02 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 | 8.02 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-17 21:13:51 -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#136444