A local-first personal finance app
[AI] Mobile: Post transaction today on global account lists (#7311) (#7322)
Pranay S3b14fd08c315
diff --git a/packages/desktop-client/src/components/mobile/accounts/AllAccountTransactions.tsx b/packages/desktop-client/src/components/mobile/accounts/AllAccountTransactions.tsxindex d21cb6c131..867d58895d 100644--- a/packages/desktop-client/src/components/mobile/accounts/AllAccountTransactions.tsx+++ b/packages/desktop-client/src/components/mobile/accounts/AllAccountTransactions.tsx@@ -71,9 +71,12 @@ function TransactionListWithPreviews() {name: 'scheduled-transaction-menu',options: {transactionId: transaction.id,- onPost: async transactionId => {+ onPost: async (transactionId, today = false) => {const parts = transactionId.split('/');- await send('schedule/post-transaction', { id: parts[1] });+ await send('schedule/post-transaction', {+ id: parts[1],+ today,+ });dispatch(collapseModals({rootModalName: 'scheduled-transaction-menu',diff --git a/packages/desktop-client/src/components/mobile/accounts/OffBudgetAccountTransactions.tsx b/packages/desktop-client/src/components/mobile/accounts/OffBudgetAccountTransactions.tsxindex 95f2afee1f..a99614aea2 100644--- a/packages/desktop-client/src/components/mobile/accounts/OffBudgetAccountTransactions.tsx+++ b/packages/desktop-client/src/components/mobile/accounts/OffBudgetAccountTransactions.tsx@@ -82,9 +82,12 @@ function TransactionListWithPreviews() {name: 'scheduled-transaction-menu',options: {transactionId: transaction.id,- onPost: async transactionId => {+ onPost: async (transactionId, today = false) => {const parts = transactionId.split('/');- await send('schedule/post-transaction', { id: parts[1] });+ await send('schedule/post-transaction', {+ id: parts[1],+ today,+ });dispatch(collapseModals({rootModalName: 'scheduled-transaction-menu',diff --git a/packages/desktop-client/src/components/mobile/accounts/OnBudgetAccountTransactions.tsx b/packages/desktop-client/src/components/mobile/accounts/OnBudgetAccountTransactions.tsxindex 3c2fc2fa87..2c02850f47 100644--- a/packages/desktop-client/src/components/mobile/accounts/OnBudgetAccountTransactions.tsx+++ b/packages/desktop-client/src/components/mobile/accounts/OnBudgetAccountTransactions.tsx@@ -82,9 +82,12 @@ function TransactionListWithPreviews() {name: 'scheduled-transaction-menu',options: {transactionId: transaction.id,- onPost: async transactionId => {+ onPost: async (transactionId, today = false) => {const parts = transactionId.split('/');- await send('schedule/post-transaction', { id: parts[1] });+ await send('schedule/post-transaction', {+ id: parts[1],+ today,+ });dispatch(collapseModals({rootModalName: 'scheduled-transaction-menu',diff --git a/upcoming-release-notes/7322.md b/upcoming-release-notes/7322.mdnew file mode 100644index 0000000000..4065ba35cd--- /dev/null+++ b/upcoming-release-notes/7322.md@@ -0,0 +1,6 @@+---+category: Bugfixes+authors: [pranayseela]+---++Fix mobile Post transaction today on All Accounts, On budget, and Off budget lists so scheduled previews post with today's date, matching single-account mobile and desktop.