Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(web): adopt TanStack Query for state management #1439

Merged
merged 39 commits into from
Jul 8, 2024
Merged
Changes from 1 commit
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
d5cf137
feat(web): add TanStack Query
imobachgs Jul 2, 2024
1054332
feat(web): use React Query to fetch locales data
imobachgs Jul 2, 2024
f975f0f
refactor(web): move QueryClientProvider to app context
imobachgs Jul 2, 2024
503e372
refactor(web): expose the client's websocket
imobachgs Jul 3, 2024
e263dbe
refactor(web): use queries to listen for l10n changes
imobachgs Jul 3, 2024
7472ab8
refactor(web): adapt L10nPage to use queries
imobachgs Jul 3, 2024
5d6232a
refactor(web): adapt L10nSection to use queries
imobachgs Jul 3, 2024
2b83836
refactor(web): use ~/queries instead of relative paths
imobachgs Jul 3, 2024
eeeb61a
refactor(web): use functions to build queries
imobachgs Jul 3, 2024
82c20df
fix(web): minimize l10n data retrieving
imobachgs Jul 3, 2024
37a7e80
refactor(web): move l10n routes to ~/routes
dgdavid Jul 3, 2024
227c42f
refactor(web): adapt InstallerOptions to use queries
imobachgs Jul 3, 2024
179b65e
fix(web): add missing file
dgdavid Jul 3, 2024
79ab607
refactor(web): drop the l10n context
imobachgs Jul 3, 2024
4c02c9c
test(web): adapt test-utils to react-query
imobachgs Jul 3, 2024
059ba54
test(web): adapt basic L10nPage test to react-query
imobachgs Jul 3, 2024
8bbac2c
refactor(web): improve l10n selectors using RR loaders
dgdavid Jul 3, 2024
a8543eb
fix(web): listen for L10n changes from App
imobachgs Jul 3, 2024
bc6ff01
fix(web): fix locales update
imobachgs Jul 3, 2024
ccaa0f0
fix(web): revalidate loader on config change
dgdavid Jul 4, 2024
c0367be
fix(web): add a role to CardField
imobachgs Jul 4, 2024
122bf20
test(web): write a new test for L10nPage
imobachgs Jul 4, 2024
0fd96ff
test: drop the queryRender helper
imobachgs Jul 4, 2024
e018d5f
doc(web): document l10n queries
imobachgs Jul 4, 2024
3cdcaf6
fix(web): make ESLint happy
imobachgs Jul 4, 2024
58a27ff
refactor(web): remove unused methods from L10nClient
imobachgs Jul 4, 2024
f633c95
test(web): fix App tests
imobachgs Jul 4, 2024
6f16921
refactor(web): drop unused L10nClient tests
imobachgs Jul 4, 2024
4766a2d
feat(web): wrap plainRender on a QueryClientProvider
imobachgs Jul 4, 2024
b893146
test(web): fix L10nSectino tests
imobachgs Jul 4, 2024
5236f86
test(web): remove uneeded mock from L10nSection test
imobachgs Jul 4, 2024
82267a9
feat(web): add a hook for invalidating cached data
dgdavid Jul 4, 2024
2ead884
fix(web): please ESLint
dgdavid Jul 4, 2024
b841272
test(web): add tests for l10n selectors
imobachgs Jul 5, 2024
c9ee944
fix(web): drop repeated invalidation
dgdavid Jul 8, 2024
dc28137
Merge branch 'master' into react-query
imobachgs Jul 8, 2024
b4e169a
doc(web): update the changes file
imobachgs Jul 8, 2024
cbbb727
doc(fix): fix changes entry
imobachgs Jul 8, 2024
8838564
fix(service): fix manager tests
imobachgs Jul 8, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions web/package/agama-web-ui.changes
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
-------------------------------------------------------------------
Mon Jul 8 10:56:14 UTC 2024 - Imobach Gonzalez Sosa <igonzalezsosa@suse.com>

- Introduce TanStack Query to handle for data fetching and state
imobachgs marked this conversation as resolved.
Show resolved Hide resolved
management (gh#openSUSE/agama#1439).
- Replace the l10n context with a solution based on TanStack
Query.

-------------------------------------------------------------------
Wed Jul 3 07:17:55 UTC 2024 - Imobach Gonzalez Sosa <igonzalezsosa@suse.com>

Expand Down
Loading