Commit Graph

2925 Commits

Author SHA1 Message Date
Matiss Janis Aboltins
1df7acdca7 ♻️ refactor Nordigen and Category autocomplete usage (#784)
The final `Autocomplete` refactors. After this is merged what's
remaining is to do extensive testing and address the bugs in
https://github.com/actualbudget/actual/issues/773

This PR moves `Nordigen` autocomplete to the new one without using a
feature flag. IMO this is a safe change given the simple nature of the
Nordigen autocomplete component.
2023-03-18 20:30:01 +00:00
Matiss Janis Aboltins
67c3be97a1 ♻️ move all feature flags to use useFeatureFlag hook (#786)
Refactored all feature flags to use the new `useFeatureFlag` hook.

Also added a new functionality to this feature flag: ability to define
custom "default" value for a feature flag. This will allow us to enable
the new autocomplete component for everyone using Netlify builds
eventually (need to address some issues before doing so).
2023-03-18 18:41:45 +00:00
Jed Fox
8def8393da Remove a few unused class components, convert a few components to functions (#783) 2023-03-18 10:59:24 -04:00
Matiss Janis Aboltins
c3c2861dbd ♻️ further autocomplete refactors (#778)
Further iterations on the new autocomplete.

1. Created `AccountAutocomplete`
2. Started using new autocomplete in `GenericInput` (used for notes
field)
3. Extracted common functionality between the three new autocompletes to
a generic component: `Autocomplete`
2023-03-18 14:25:24 +00:00
Jed Fox
97b1b6f815 Improve handling of large currency amounts (#725)
- Add a “hide decimal places” setting to visually hide the `.xx` from
currency values globally
- When hiding the fractional digits, slightly decrease character spacing
to allow more digits to show up

Ref: #327

New settings:
<img width="566" alt="Screenshot_2023-03-17 14 19 46"
src="https://user-images.githubusercontent.com/25517624/225986815-b884b93d-02f9-48b3-a73d-d27f90b678cf.png">


Before/after:
<img width="149" alt="Screenshot_2023-02-27 21 47 07"
src="https://user-images.githubusercontent.com/25517624/222916856-21ab4f03-56c6-4b24-8fc1-ac4b883138b7.png"><img
width="131" alt="Screenshot_2023-02-27 22 02 01"
src="https://user-images.githubusercontent.com/25517624/222916859-cf882ca3-6087-4994-818e-239c3374e412.png">
2023-03-18 09:41:38 -04:00
Matiss Janis Aboltins
7063af9e58 revert change to useTableNavigator (#775) 2023-03-18 13:28:31 +00:00
Jed Fox
beef97d7b8 Move the welcome modal to an interstitial, add import button (#762)
I noticed that the first run flow is suboptimal for people who want to
import an existing file from Actual/YNAB. I’ve moved the welcome modal
into the management app and set it up to appear when there are no
budgets available (which also has the benefit of allowing people to see
the modal again!)

I think there’s some weirdness around getting the modal to reappear when
deleting a budget file which I want to work out before merging this.

This PR also reorganizes the management app a bit to reduce usage of
modals (currently, hitting escape while the budget list is open leaves
you with a blank page).

<img width="539" alt="Screenshot_2023-03-18 08 53 54"
src="https://user-images.githubusercontent.com/25517624/226107462-b2b88791-1015-4397-b290-c64e7fcc0f41.png">

- [x] Ensure modal consistently appears when needed (no longer a modal!)
- [x] Fix e2e tests
2023-03-18 09:21:53 -04:00
Matiss Janis Aboltins
98948744ca change unit test usage of notes field (#780)
Added an extra `waitFor` after a flaky unit test step.

I'm not really super happy with this workaround.. but it does make the
test much more stable (re-ran 5x and no failures:
https://github.com/actualbudget/actual/actions/runs/4455134799).

I think there is some internal timeout happening somewhere which is
causing this issue.. But not really sure where. And this will hopefully
get auto-fixed once we migrate to a new table. 🤞
2023-03-18 12:44:55 +00:00
Matiss Janis Aboltins
2903fd0037 🔥 remove unused tableNavigatorOpts code-path (#781)
Just cleaning up things: removing an unused code-path.
2023-03-18 12:16:24 +00:00
Matiss Janis Aboltins
ce40e61ab7 🐛 (TransactionsTable) bring back missing onHover (#777)
Brining back `onHover`. This is a small regression.
2023-03-18 11:09:03 +00:00
Matiss Janis Aboltins
fc9ca18f1c ⬆️ finish react v18 upgrade: react-dom change (#776)
Finishing off the React v18 upgrade by doing a change in `react-dom`.
Effectively this upgrades from v17 to v18.

https://react.dev/blog/2022/03/08/react-18-upgrade-guide
2023-03-17 23:19:35 +00:00
Matiss Janis Aboltins
141035cdf0 ♻️ (autocomplete) refactor PayeeAutocomplete to react-select (#741) 2023-03-17 22:36:53 +00:00
Matiss Janis Aboltins
610a044f5f ♻️ (TransactionsTable) port to react hooks (#769) 2023-03-17 21:20:20 +00:00
Matiss Janis Aboltins
26363ed82d ⬆️ upgrade fast-check to improve unit test perf (#772)
Upgraded `fast-check` to improve unit test performance.
2023-03-17 21:20:01 +00:00
Matiss Janis Aboltins
815413e48c reducing flakiness of tests by removing randomization (#771)
This is not a full fix for the flakiness. One of the test cases will
still be flaky. But at least this fixes the other test cases thus
improving stability.
2023-03-17 18:37:02 +00:00
Jed Fox
4a3fe1d9fb node-libofx: add transaction_acct_name function (#670)
I am currently not working on adding support for importing to multiple
accounts, but I wanted to give anyone who takes that on a starting point
by updating the underlying C library to provide access to the account
name field.
2023-03-17 14:00:35 -04:00
Jed Fox
c5c4cbbeb2 Update wording across the UI to clarify that we don’t own any servers (#768) 2023-03-17 13:59:10 -04:00
Matiss Janis Aboltins
5d7ead44aa ⬆️ upgrade React from v16 to v18 (#696) 2023-03-17 12:10:40 +00:00
Matiss Janis Aboltins
d9bc64e792 🐛 making desktop-client tests independent (#765)
Tests cases should be independent. You should be able to run them in
whatever order you want. And they should still pass.

Currently this is not the case. The order of the tests is very important
due to the "pseudo" randomization algorithm.

This PR makes the mock data IDs truly unique thus better exposing the
issue in our tests. Also this PR fixes the dependency issues thus making
each test case truly independent.

---------

Co-authored-by: Jed Fox <git@jedfox.com>
2023-03-16 23:49:43 +00:00
Jed Fox
d166d8f8e8 Disable ESLint when building in CI (#763)
This way formatting issues won’t prevent the preview from building (and
it should build a bit faster due to not having to run ESLint).
2023-03-16 14:41:57 -04:00
Matiss Janis Aboltins
ad08494899 🔥 remove Debugger, perf-deets and codemirror (#755)
Removing
- Debugger
- `perf-deeets`
- `codemirror`
2023-03-16 18:36:15 +00:00
Jed Fox
2762495a68 Fix end-to-end testing workflow (#758) 2023-03-14 19:33:15 -04:00
Jed Fox
d25c31089c Make goal template keywords case insensitive (#756) 2023-03-14 16:02:06 -04:00
Jed Fox
96c7af0c8d Fix #template 0 causing an error (#751)
Thanks @kidglove57 for spotting this issue and helping me track down the
cause!

---------

Co-authored-by: Matiss Janis Aboltins <matiss@mja.lv>
2023-03-14 14:52:12 -04:00
Jed Fox
319679fd65 Add support for automatically generating release notes (#746)
See https://github.com/actualbudget/docs/pull/129 for more details. If
this is accepted, I’ll fill in release notes for the PRs that have been
submitted since the last release and submit a corresponding PR to
`actual-server`.

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2023-03-14 14:18:14 -04:00