Commit 7767d6d
authored
feat: Reorganize dashboard layout and add Crisis Map with user preferences (#93)
* feat: Enhance Dashboard with new Crisis Map and filter functionalities
- Added a new Crisis Map section to the Dashboard, allowing users to view an interactive global map of crisis locations.
- Implemented tooltips for navigation items to provide contextual information.
- Introduced additional filters for country and disaster types to refine crisis data displayed on the map.
- Updated the layout and styling for better user experience and accessibility.
- Refactored existing components to accommodate new features and improve code organization.
* feat: Implement user-specific map style preferences and enhance dashboard layout
- Added functionality for users to customize their map styles for light and dark themes through a new MapStyleSettings component.
- Integrated user map preferences into the backend with new API endpoints for fetching and updating preferences.
- Updated the CrisisMap component to utilize user-defined styles, improving personalization.
- Enhanced the Dashboard layout with a TooltipProvider for better user guidance and interaction.
- Refactored existing components for improved organization and maintainability.
* Fix build errors and warnings
- Fix country variable declaration in location-onboarding.tsx (use const instead of let)
- Remove unused loading variable in dashboard/map/page.tsx
- Remove unused toggleDisasterType and availableDisasterTypes in dashboard/page.tsx
- Prefix unused setter variables with underscore to indicate intentional non-use
* fix: Update demo user email and picture in auth router
- Changed demo user email domain from bluerelief.test to bluerelief.app for consistency.
- Updated demo user picture URL to use a new avatar style for improved visual representation.1 parent 458bc04 commit 7767d6d
File tree
23 files changed
+1994
-372
lines changed- client
- app
- dashboard
- analysis
- data-feed
- map
- settings
- reset-password
- components
- hooks
- lib
- public
- server
- alembic/versions
- db_utils
- routers
23 files changed
+1994
-372
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
39 | 44 | | |
40 | 45 | | |
41 | 46 | | |
| |||
102 | 107 | | |
103 | 108 | | |
104 | 109 | | |
| 110 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
116 | | - | |
117 | | - | |
| 116 | + | |
| 117 | + | |
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
124 | | - | |
| 124 | + | |
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| |||
534 | 535 | | |
535 | 536 | | |
536 | 537 | | |
537 | | - | |
538 | | - | |
539 | | - | |
540 | | - | |
541 | | - | |
542 | | - | |
| 538 | + | |
543 | 539 | | |
544 | 540 | | |
545 | 541 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| 49 | + | |
49 | 50 | | |
50 | 51 | | |
51 | 52 | | |
| |||
54 | 55 | | |
55 | 56 | | |
56 | 57 | | |
| 58 | + | |
57 | 59 | | |
58 | 60 | | |
59 | 61 | | |
| 62 | + | |
60 | 63 | | |
61 | 64 | | |
62 | 65 | | |
| |||
67 | 70 | | |
68 | 71 | | |
69 | 72 | | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
70 | 80 | | |
71 | 81 | | |
72 | 82 | | |
73 | 83 | | |
74 | 84 | | |
| 85 | + | |
75 | 86 | | |
76 | 87 | | |
77 | 88 | | |
| |||
80 | 91 | | |
81 | 92 | | |
82 | 93 | | |
| 94 | + | |
83 | 95 | | |
84 | 96 | | |
85 | 97 | | |
86 | 98 | | |
87 | 99 | | |
88 | 100 | | |
| 101 | + | |
89 | 102 | | |
90 | 103 | | |
91 | 104 | | |
| |||
94 | 107 | | |
95 | 108 | | |
96 | 109 | | |
| 110 | + | |
97 | 111 | | |
98 | 112 | | |
99 | 113 | | |
| |||
148 | 162 | | |
149 | 163 | | |
150 | 164 | | |
151 | | - | |
| 165 | + | |
152 | 166 | | |
153 | 167 | | |
154 | 168 | | |
| |||
293 | 307 | | |
294 | 308 | | |
295 | 309 | | |
296 | | - | |
| 310 | + | |
297 | 311 | | |
298 | 312 | | |
299 | 313 | | |
| |||
337 | 351 | | |
338 | 352 | | |
339 | 353 | | |
| 354 | + | |
340 | 355 | | |
341 | 356 | | |
342 | 357 | | |
| |||
362 | 377 | | |
363 | 378 | | |
364 | 379 | | |
| 380 | + | |
365 | 381 | | |
366 | 382 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
0 commit comments