Skip to content

[client] Swipable rows

Nicolas Frandeboeuf requested to merge swipableRows into main

On mobile the longpress is not that intuitive nowadays and only allows one action.

I often need to delete transactions because I create some manual transactions with a value that does not reflect the reality (forgot how many cents, or I pay online some shopping but the final price will vary depending on the weight of some items, etc.) and the de-duplication won't work.

This MR makes the transactions rows swipable to the left or to the right with dedicated actions: open the details, and delete the transaction (with a confirmation message).

I did not delete the useLongPress hook yet, it might be useful for other purposes?

Video on some tests through Firefox devtools/RDM:

swipablerows

At least half of the blue/red part must be swiped to be effective (quite usual in other softwares). Some tweaking might be needed yet but that's hard to tell until properly used on real mobile devices…

Merge request reports

Loading