Skip to content

[client] Introduce driver concept

sinopsysHK requested to merge sinopsysHK/kresus:driverview into master

Use the driver to steer each UI component that relies on a list of operations. The purpose is to be able to manage different ways to build the list of operations. This will be an enabler for displaying views ultimately.

To do so each UI component is loaded not anymore with CurrentAccountId but with a driver that will tell its type (Acocunt based, Currency based, View based, ...) and the related current ID to be used to get the underlying operations.

This is to implement as per proposal #1010 (closed)

One change had to be done: on InOut charts I removed the capability to switch from one currency to another when loading based on an account because it isn't consistent with Account based driver and would rather be a Access based driver that is in my understanding useless EXCEPT for this specific feature.

New features:

  • browse operations per currencies by selecting the currency in Total balance menu (with search and bulk edit capabilities)
  • Visualize charts for all operations related to selected currency
  • Follow up budget at currency level

Moving Driver definition to ts...

Edited by sinopsysHK

Merge request reports