Commit 7f7012f
committed
feat: enhance Memories UI with improved titles and event bubbling fix
✨ Features:
- Display 'On this day last year' for memories from exactly 1 year ago
- Format location-based memories as 'Trip to [Location], [Year]' (e.g., 'Trip to Jaipur, 2025')
- Fix MediaView slideshow and info buttons not working in memory albums
🐛 Bug Fixes:
- Fixed event bubbling issue where MediaView control clicks closed the entire viewer
- Conditionally render MemoryViewer backdrop only when MediaView is closed
- Prevent click handlers from interfering with MediaView controls
🎨 UI Improvements:
- Enhanced FeaturedMemoryCard with contextual year display
- Updated MemoryCard title formatting for better location context
- Improved memory viewing experience with proper z-index layering
📦 Technical Changes:
- Backend: Added reverse geocoding for location names in memory clustering
- Backend: Fixed latitude/longitude handling for images without GPS data
- Frontend: Refactored MemoryViewer JSX structure for proper conditional rendering
- Frontend: Integrated MediaView component with full zoom/slideshow/info functionality
This commit completes the Memories feature implementation with Google Photos-style
presentation and fixes critical UX issues with the image viewer controls.1 parent 109b438 commit 7f7012f
17 files changed
Lines changed: 2565 additions & 80 deletions
File tree
- backend
- app
- database
- routes
- utils
- docs/backend/backend_python
- frontend
- src
- app
- components/Memories
- routes
- services
- store
- slices
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
176 | 176 | | |
177 | 177 | | |
178 | 178 | | |
179 | | - | |
180 | | - | |
| 179 | + | |
| 180 | + | |
181 | 181 | | |
182 | 182 | | |
183 | 183 | | |
184 | 184 | | |
185 | 185 | | |
186 | 186 | | |
187 | 187 | | |
188 | | - | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
189 | 192 | | |
190 | 193 | | |
191 | 194 | | |
| |||
804 | 807 | | |
805 | 808 | | |
806 | 809 | | |
| 810 | + | |
| 811 | + | |
| 812 | + | |
| 813 | + | |
| 814 | + | |
| 815 | + | |
| 816 | + | |
| 817 | + | |
| 818 | + | |
| 819 | + | |
| 820 | + | |
| 821 | + | |
| 822 | + | |
| 823 | + | |
| 824 | + | |
| 825 | + | |
| 826 | + | |
| 827 | + | |
| 828 | + | |
| 829 | + | |
| 830 | + | |
| 831 | + | |
| 832 | + | |
| 833 | + | |
| 834 | + | |
| 835 | + | |
| 836 | + | |
| 837 | + | |
| 838 | + | |
| 839 | + | |
| 840 | + | |
| 841 | + | |
| 842 | + | |
| 843 | + | |
| 844 | + | |
| 845 | + | |
| 846 | + | |
| 847 | + | |
| 848 | + | |
| 849 | + | |
| 850 | + | |
| 851 | + | |
| 852 | + | |
| 853 | + | |
| 854 | + | |
| 855 | + | |
| 856 | + | |
| 857 | + | |
| 858 | + | |
| 859 | + | |
| 860 | + | |
| 861 | + | |
| 862 | + | |
| 863 | + | |
| 864 | + | |
| 865 | + | |
| 866 | + | |
| 867 | + | |
| 868 | + | |
| 869 | + | |
| 870 | + | |
807 | 871 | | |
808 | 872 | | |
809 | 873 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
119 | | - | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
120 | 122 | | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
| 123 | + | |
137 | 124 | | |
138 | 125 | | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
| 126 | + | |
| 127 | + | |
143 | 128 | | |
144 | | - | |
145 | | - | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
146 | 132 | | |
147 | 133 | | |
148 | 134 | | |
149 | 135 | | |
150 | | - | |
| 136 | + | |
151 | 137 | | |
152 | 138 | | |
153 | 139 | | |
154 | 140 | | |
155 | 141 | | |
156 | | - | |
| 142 | + | |
157 | 143 | | |
158 | | - | |
| 144 | + | |
159 | 145 | | |
160 | 146 | | |
161 | 147 | | |
| |||
164 | 150 | | |
165 | 151 | | |
166 | 152 | | |
167 | | - | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
168 | 159 | | |
169 | 160 | | |
170 | 161 | | |
171 | | - | |
| 162 | + | |
172 | 163 | | |
173 | 164 | | |
174 | 165 | | |
175 | 166 | | |
176 | 167 | | |
177 | 168 | | |
178 | | - | |
179 | | - | |
| 169 | + | |
| 170 | + | |
180 | 171 | | |
181 | 172 | | |
182 | 173 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
| |||
141 | 142 | | |
142 | 143 | | |
143 | 144 | | |
| 145 | + | |
144 | 146 | | |
145 | 147 | | |
146 | 148 | | |
| |||
150 | 152 | | |
151 | 153 | | |
152 | 154 | | |
| 155 | + | |
| 156 | + | |
153 | 157 | | |
154 | 158 | | |
155 | 159 | | |
| |||
166 | 170 | | |
167 | 171 | | |
168 | 172 | | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | | - | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
179 | 207 | | |
180 | 208 | | |
181 | 209 | | |
| |||
0 commit comments