Skip to content

A local-first personal finance app

Display Schedule Name in Upcoming Tx Notes (#5482)

passabilities.eth4f50c1a88917
diff --git a/packages/desktop-client/src/components/transactions/TransactionsTable.tsx b/packages/desktop-client/src/components/transactions/TransactionsTable.tsx
index b08fe0af5d..deae805146 100644
--- a/packages/desktop-client/src/components/transactions/TransactionsTable.tsx
+++ b/packages/desktop-client/src/components/transactions/TransactionsTable.tsx
@@ -1072,6 +1072,11 @@ const Transaction = memo(function Transaction({
_unmatched = false,
} = transaction;
+ const { schedules = [] } = useCachedSchedules();
+ const schedule = transaction.schedule
+ ? schedules.find(s => s.id === transaction.schedule)
+ : null;
+
const previewStatus = forceUpcoming ? 'upcoming' : categoryId;
// Join in some data
@@ -1368,7 +1373,7 @@ const Transaction = memo(function Transaction({
textAlign="flex"
exposed={focusedField === 'notes'}
focused={focusedField === 'notes'}
- value={notes || ''}
+ value={notes ?? schedule?.name ?? ''}
valueStyle={valueStyle}
formatter={value =>
NotesTagFormatter({ notes: value, onNotesTagClick })
diff --git a/upcoming-release-notes/5482.md b/upcoming-release-notes/5482.md
new file mode 100644
index 0000000000..211d525430
--- /dev/null
+++ b/upcoming-release-notes/5482.md
@@ -0,0 +1,6 @@
+---
+category: Enhancements
+authors: [passabilities]
+---
+
+Display schedule name in upcoming transaction notes.