Commit a3e9ad5
authored
Migrate settings to Tanstack Query (#1040)
* Install TankStack library with corresponding devtool, integrate into App.tsx
* Integrate react query in to setting page
* Connect settings.useSquareEdge,useDarkMode,preferredTheme with FE components
* Remove use of QueryContext to direct suspense query calling to avoid re-rendering of whole App component
* Update all settings to use React Query
* Fix FE build error by removing removed AppContext states on components
* Remove redudant comments
* Add Error Boundary for handling unintented error, resolve packages version and dependecies issue
* Remove unwanted comments and resolve naming issues
* Resolve setting item destructing before used, and other dependecies issues
* Migrate JS fetch to Axios
* Remove unwanted library import
* Update ErrorBoundary to handle any unknown errors
* Resolve build error
* Rebase from server-rewrite
* Rebase from server-rewrite, with autofix eslint
* Refactor Settings component to fit the feat of profile picture
* Remove unneccssary commnets
* Resolved dropcard shadow logic with react query
* Resolve CI build error and lint warnings from drag.ts
* Resolve review errors from lucas
* Resolve use-prefix issue for settings parameter with minor changes
* Resolve review comments from mark
* Update the prisma schema for user settings
* Update the prisma schema for user settings
* Resolve naming error1 parent 1d6a6ef commit a3e9ad5
File tree
44 files changed
+2586
-1585
lines changed- client
- src
- api
- timetable
- user
- components
- ErrorPage
- controls
- sidebar
- timetableTabs
- timetable
- constants
- context
- hooks
- interfaces
- styles
- utils
- server
- prisma
- migrations
- 20250726163527_add_convert_to_local_timezone
- 20250827031550_set_covert_to_local_time_default_false
- 20250827041847_rename_preferred_theme_default_name
- 20250827072638_rename_use_prefix_settings_parameters
- src
- auth
- user
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
44 files changed
+2586
-1585
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
33 | 34 | | |
| 35 | + | |
34 | 36 | | |
35 | 37 | | |
36 | 38 | | |
| |||
78 | 80 | | |
79 | 81 | | |
80 | 82 | | |
| 83 | + | |
81 | 84 | | |
82 | 85 | | |
83 | 86 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| |||
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
21 | | - | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
| |||
98 | 99 | | |
99 | 100 | | |
100 | 101 | | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | 102 | | |
113 | 103 | | |
114 | 104 | | |
| |||
144 | 134 | | |
145 | 135 | | |
146 | 136 | | |
147 | | - | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
148 | 140 | | |
149 | 141 | | |
150 | 142 | | |
| |||
276 | 268 | | |
277 | 269 | | |
278 | 270 | | |
279 | | - | |
| 271 | + | |
280 | 272 | | |
281 | 273 | | |
282 | 274 | | |
| |||
302 | 294 | | |
303 | 295 | | |
304 | 296 | | |
305 | | - | |
| 297 | + | |
306 | 298 | | |
307 | 299 | | |
308 | 300 | | |
| |||
440 | 432 | | |
441 | 433 | | |
442 | 434 | | |
443 | | - | |
| 435 | + | |
444 | 436 | | |
445 | 437 | | |
446 | 438 | | |
| |||
505 | 497 | | |
506 | 498 | | |
507 | 499 | | |
508 | | - | |
509 | | - | |
| 500 | + | |
| 501 | + | |
510 | 502 | | |
511 | 503 | | |
512 | 504 | | |
| |||
517 | 509 | | |
518 | 510 | | |
519 | 511 | | |
520 | | - | |
| 512 | + | |
521 | 513 | | |
522 | 514 | | |
523 | 515 | | |
| |||
526 | 518 | | |
527 | 519 | | |
528 | 520 | | |
529 | | - | |
| 521 | + | |
530 | 522 | | |
531 | 523 | | |
532 | 524 | | |
| |||
546 | 538 | | |
547 | 539 | | |
548 | 540 | | |
549 | | - | |
550 | | - | |
551 | | - | |
552 | | - | |
553 | | - | |
554 | | - | |
555 | | - | |
556 | | - | |
557 | | - | |
558 | | - | |
559 | | - | |
560 | | - | |
561 | | - | |
562 | | - | |
563 | | - | |
564 | | - | |
565 | | - | |
566 | | - | |
567 | | - | |
568 | | - | |
569 | | - | |
| 541 | + | |
570 | 542 | | |
571 | | - | |
572 | | - | |
573 | | - | |
574 | | - | |
575 | | - | |
576 | | - | |
577 | | - | |
578 | | - | |
579 | | - | |
580 | | - | |
581 | | - | |
582 | | - | |
583 | | - | |
584 | | - | |
585 | | - | |
586 | | - | |
587 | | - | |
588 | | - | |
589 | | - | |
590 | | - | |
591 | | - | |
592 | | - | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
593 | 547 | | |
594 | 548 | | |
595 | 549 | | |
| |||
Whitespace-only changes.
Whitespace-only changes.
Whitespace-only changes.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
0 commit comments