kresus merge requestshttps://framagit.org/kresusapp/kresus/-/merge_requests2022-11-04T09:35:01Zhttps://framagit.org/kresusapp/kresus/-/merge_requests/1499Draft: [client] React router: migration to v62022-11-04T09:35:01ZNicolas Frandeboeufmail@nicofrand.euDraft: [client] React router: migration to v6Migration to react-router v6:
- [x] Step 1: [replace all Redirect in Switch's root level with Route](https://reactrouter.com/docs/en/v6/upgrading/v5#remove-redirects-inside-switch.
) (also see See https://github.com/remix-run/react-rout...Migration to react-router v6:
- [x] Step 1: [replace all Redirect in Switch's root level with Route](https://reactrouter.com/docs/en/v6/upgrading/v5#remove-redirects-inside-switch.
) (also see See https://github.com/remix-run/react-router/issues/6202)
- [ ] Step 2: https://reactrouter.com/docs/en/v6/upgrading/v5#upgrade-all-switch-elements-to-routes and make sure every relative & absolute links work
- [ ] Step 3: [use `useNavigation` instead of `useHistory`](https://reactrouter.com/docs/en/v6/upgrading/v5#use-usenavigate-instead-of-usehistory)
- [ ] Update active class: https://reactrouter.com/docs/en/v6/upgrading/v5#remove-activeclassname-and-activestyle-props-from-navlink-Nicolas Frandeboeufmail@nicofrand.euNicolas Frandeboeufmail@nicofrand.euhttps://framagit.org/kresusapp/kresus/-/merge_requests/1577WIP: Handle budgets by account/user (fix #1121)2023-08-09T13:03:19ZNicolas Frandeboeufmail@nicofrand.euWIP: Handle budgets by account/user (fix #1121)There is an error on startup with new instances with migrations which run before the migrations that creates the `accountId` column:
```
[5] [2023-08-08T11:52:52.152] [INFO] models/data-migrations - Running data migration on banks (2020...There is an error on startup with new instances with migrations which run before the migrations that creates the `accountId` column:
```
[5] [2023-08-08T11:52:52.152] [INFO] models/data-migrations - Running data migration on banks (2020-04-14)
[5] [2023-08-08T11:52:52.159] [INFO] models/data-migrations - Finished running data migration on banks (2020-04-14)
[5] [2023-08-08T11:52:52.163] [INFO] models/data-migrations - Running data migration: remove unused migrated-from-cozydb
[5] [2023-08-08T11:52:52.167] [INFO] models/data-migrations - Finished data migration: remove unused migrated-from-cozydb
[5] [2023-08-08T11:52:52.184] [ERROR] init - Error at initialization:
[5] Message: SQLITE_ERROR: no such column: Budget.accountId
[5] QueryFailedError: SQLITE_ERROR: no such column: Budget.accountId
[5] at handler (/workspace/kresus/node_modules/typeorm/driver/sqlite/SqliteQueryRunner.js:81:26)
[5] at replacement (/workspace/kresus/node_modules/sqlite3/lib/trace.js:25:27)
[5] at Statement.errBack (/workspace/kresus/node_modules/sqlite3/lib/sqlite3.js:15:21)
```
@bnjbvr Do you remember how we usually deal with this? Also, maybe we could get rid of some migrations by now?https://framagit.org/kresusapp/kresus/-/merge_requests/1579feat: show that an access is disabled with a "stop" icon2024-01-15T10:01:30ZBenjamin Bouvierfeat: show that an access is disabled with a "stop" iconInactive accounts are marked with a "stop" button, instead of italics (which weren't self-explanatory). I wonder if we could use a "pause" icon to indicate that sync is paused because there was an error previously, and a "play" account t...Inactive accounts are marked with a "stop" button, instead of italics (which weren't self-explanatory). I wonder if we could use a "pause" icon to indicate that sync is paused because there was an error previously, and a "play" account to mean it's an active account which sync is working well.
![image](/uploads/d75f2629f78db14764602f23414f3510/image.png)https://framagit.org/kresusapp/kresus/-/merge_requests/1627Make drivers return selectors instate of storing values in views (fix #1247)2024-03-27T09:54:53ZNicolas Frandeboeufmail@nicofrand.euMake drivers return selectors instate of storing values in views (fix #1247)I did not see any issue while testing everything, I checked the memoization by adding console.log in the functions called and navigating across charts/budgets/reports/etc.
memoization is mainly based on `state.banks`, which is kind of i...I did not see any issue while testing everything, I checked the memoization by adding console.log in the functions called and navigating across charts/budgets/reports/etc.
memoization is mainly based on `state.banks`, which is kind of identical to the previous way (we called driver.getView every time the driver or state.banks dependency changed).Benjamin BouvierBenjamin Bouvierhttps://framagit.org/kresusapp/kresus/-/merge_requests/1628feat: Add excludeFromBalance properties for categories2024-03-19T07:43:33ZPierre BOULC'Hfeat: Add excludeFromBalance properties for categoriesAdd excludeFromBalance properties for categories. If the switch is checked, no transactions in this category will appear in the charts or in the balance calculation.This is useful for categories such as "Internal transfer" for transactio...Add excludeFromBalance properties for categories. If the switch is checked, no transactions in this category will appear in the charts or in the balance calculation.This is useful for categories such as "Internal transfer" for transactions between two of the user's bank accounts.https://framagit.org/kresusapp/kresus/-/merge_requests/1629Draft: server: use `black` to format code2024-03-28T07:40:15ZBenjamin BouvierDraft: server: use `black` to format codeIf we'd go with it: we could remove the linting in python (probably?), and then tweak the CI task to cause a failure if the formatting didn't happen.If we'd go with it: we could remove the linting in python (probably?), and then tweak the CI task to cause a failure if the formatting didn't happen.