[PR #4945] [CLOSED] [WIP] [Mobile] Remember payee geolocation and suggest nearby payees when entering transactions #5673

Closed
opened 2026-02-28 21:16:31 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/actualbudget/actual/pull/4945
Author: @joel-jeremy
Created: 5/6/2025
Status: Closed

Base: masterHead: payee-geolocation


📝 Commits (6)

📊 Changes

13 files changed (+345 additions, -9 deletions)

View changed files

📝 packages/desktop-client/src/components/autocomplete/PayeeAutocomplete.tsx (+31 -7)
📝 packages/desktop-client/src/components/mobile/transactions/TransactionEdit.jsx (+6 -1)
packages/desktop-client/src/hooks/useGeolocation.ts (+42 -0)
packages/desktop-client/src/hooks/useNearbyPayees.ts (+124 -0)
packages/desktop-client/src/hooks/usePayeeGeolocations.ts (+23 -0)
📝 packages/desktop-client/src/queries/queriesSlice.ts (+54 -0)
packages/loot-core/migrations/1754507423000_payee_geolocations.sql (+11 -0)
📝 packages/loot-core/src/server/db/index.ts (+14 -0)
📝 packages/loot-core/src/server/db/types/index.ts (+7 -0)
📝 packages/loot-core/src/server/payees/app.ts (+21 -1)
📝 packages/loot-core/src/types/models/index.ts (+1 -0)
packages/loot-core/src/types/models/payee-geolocation.ts (+5 -0)
upcoming-release-notes/4945.md (+6 -0)

📄 Description

Creating this PR for testing/POC for https://github.com/actualbudget/actual/issues/1511

In the current state, it only saves the coordinates in-memory. Ideally, this should be replaced by a database table.

The way it currently works is - whenever you use a payee when adding a transaction, the current location will be associated to that payee. The next time you add an entry near that same location, the payee will be suggested to you

To test:

  1. Create a new transaction with a payee
  2. Create another transaction
  3. Open payee autocomplete
  4. (The payee from step 1 should show under Nearby Payees group)

🔄 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/4945 **Author:** [@joel-jeremy](https://github.com/joel-jeremy) **Created:** 5/6/2025 **Status:** ❌ Closed **Base:** `master` ← **Head:** `payee-geolocation` --- ### 📝 Commits (6) - [`86c6cf9`](https://github.com/actualbudget/actual/commit/86c6cf98be5fe2f7eeb0883f5fc0d222e5153748) [Mobile] Suggest nearby payees when entering transactions - [`8518ab1`](https://github.com/actualbudget/actual/commit/8518ab10ec7843e91b21ac64964f0b023fcb3890) Fix lint error - [`3c8fb34`](https://github.com/actualbudget/actual/commit/3c8fb3447b625978af76a900ef5daac233bb4362) isUnmounted flag - [`bcc1f04`](https://github.com/actualbudget/actual/commit/bcc1f04ee6fa2beb9708f785e56fe6e4b27b2ce0) Fix typecheck error - [`cbb07ae`](https://github.com/actualbudget/actual/commit/cbb07ae0af1c9af54bc07bdeb260569698f00ac7) Fix typecheck error - [`35c2623`](https://github.com/actualbudget/actual/commit/35c2623d89b18907c821f6a18f4038ea398c5062) Database ### 📊 Changes **13 files changed** (+345 additions, -9 deletions) <details> <summary>View changed files</summary> 📝 `packages/desktop-client/src/components/autocomplete/PayeeAutocomplete.tsx` (+31 -7) 📝 `packages/desktop-client/src/components/mobile/transactions/TransactionEdit.jsx` (+6 -1) ➕ `packages/desktop-client/src/hooks/useGeolocation.ts` (+42 -0) ➕ `packages/desktop-client/src/hooks/useNearbyPayees.ts` (+124 -0) ➕ `packages/desktop-client/src/hooks/usePayeeGeolocations.ts` (+23 -0) 📝 `packages/desktop-client/src/queries/queriesSlice.ts` (+54 -0) ➕ `packages/loot-core/migrations/1754507423000_payee_geolocations.sql` (+11 -0) 📝 `packages/loot-core/src/server/db/index.ts` (+14 -0) 📝 `packages/loot-core/src/server/db/types/index.ts` (+7 -0) 📝 `packages/loot-core/src/server/payees/app.ts` (+21 -1) 📝 `packages/loot-core/src/types/models/index.ts` (+1 -0) ➕ `packages/loot-core/src/types/models/payee-geolocation.ts` (+5 -0) ➕ `upcoming-release-notes/4945.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://github.com/actualbudget/docs#writing-good-release-notes. Try running yarn generate:release-notes *before* pushing your PR for an interactive experience. --> Creating this PR for testing/POC for https://github.com/actualbudget/actual/issues/1511 In the current state, it only saves the coordinates in-memory. Ideally, this should be replaced by a database table. The way it currently works is - whenever you use a payee when adding a transaction, the current location will be associated to that payee. The next time you add an entry near that same location, the payee will be suggested to you To test: 1. Create a new transaction with a payee 2. Create another transaction 3. Open payee autocomplete 4. (The payee from step 1 should show under `Nearby Payees` group) --- <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-02-28 21:16:31 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/actual#5673