actualbudget / actualbudget/actual
[Bug]: Calendar widget to Transaction Calendar crashes on mobile
- Lingua principale
- TypeScript
- Stelle
- 28.8k
- Fork
- 3k
- Merge medio
- 2g 11h
- PR unite (30g)
- 65
Descrizione
### What happened?
I was trying to view the Transaction Calendar on my mobile device (Brave) by clicking on the default "Transaction Calendar" widget and experienced a front end crash. This works correctly on my desktop browser (Firefox). I did change the default widget to not include transfers yesterday, but the behavior is unchanged after reverting this change to the widget.
This results in the following front-end error (domain redacted)
```
Error: useDisplayPayee must be used within a DisplayPayeeContextProvider.
at VQt (https://domain.com/static/js/index.B5BQKKmE.js:227:84922)
at At (https://domain.com/static/js/TransactionList.BZNGq6qU.chunk.js:1:26244)
at C_ (https://domain.com/static/js/index.B5BQKKmE.js:9:49009)
at V_ (https://domain.com/static/js/index.B5BQKKmE.js:9:71991)
at lG (https://domain.com/static/js/index.B5BQKKmE.js:9:82524)
at LG (https://domain.com/static/js/index.B5BQKKmE.js:9:118654)
at zAe (https://domain.com/static/js/index.B5BQKKmE.js:9:117680)
at hR (https://domain.com/static/js/index.B5BQKKmE.js:9:117506)
at NG (https://domain.com/static/js/index.B5BQKKmE.js:9:114248)
at QG (https://domain.com/static/js/index.B5BQKKmE.js:9:126268)
```
I speculate this is a duplicate of https://github.com/actualbudget/actual/issues/7098, but that issue does not have enough information to say whether it's the same error and don't want to conflate two issues if not.
I do not observe this behavior with the other default widgets, probably because they do not load and show the transactions.
### How can we reproduce the issue?
1. Open widgets view
2. Tap on Transaction Calendar
3. See the Transaction Calendar page render briefly (around 0.25-0.5 seconds before crashing)
4. Observe "Fatal Error" (so far I have only been able to reproduce this using Brave browser on mobile)
### Where are you hosting Actual?
Docker
### What browsers are you seeing the problem on?
Other - Brave
### Operating System
Mobile Device - Android
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Start by reproducing on an Android mobile browser from the widgets view: tap Transaction Calendar and watch for the useDisplayPayee/DisplayPayeeContextProvider error. Trace the Transaction Calendar path and the transaction list rendering that needs that provider. Done means the page no longer crashes on mobile and still works on desktop.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- android, docker, react, typescript
- Ambito
- frontend, mobile
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Tranquilla
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 54/100