fix(photos): fix SQL type mismatch, pagination panic, missing icons, and add day/month/year grouping
- Fix photos endpoint 500: remove ::uuid cast on user_id WHERE clause (VARCHAR column) - Fix pagination underflow panic when total_pages is 0 - Add missing 'images' and 'play' icons to SVG icon registry - Add day/month/year grouping toggle with localStorage persistence - Improve grid spacing and group header styling per mode - Add i18n translations for grouping labels (all 9 locales)
This commit is contained in:
@@ -100,7 +100,17 @@ impl FileMetadataRepository {
|
||||
})?;
|
||||
|
||||
Ok(row.map(
|
||||
|(file_id, captured_at, latitude, longitude, camera_make, camera_model, orientation, width, height)| {
|
||||
|(
|
||||
file_id,
|
||||
captured_at,
|
||||
latitude,
|
||||
longitude,
|
||||
camera_make,
|
||||
camera_model,
|
||||
orientation,
|
||||
width,
|
||||
height,
|
||||
)| {
|
||||
StoredMetadata {
|
||||
file_id,
|
||||
captured_at,
|
||||
@@ -152,7 +162,18 @@ impl FileMetadataRepository {
|
||||
})?;
|
||||
|
||||
let mut map = HashMap::with_capacity(rows.len());
|
||||
for (file_id, captured_at, latitude, longitude, camera_make, camera_model, orientation, width, height) in rows {
|
||||
for (
|
||||
file_id,
|
||||
captured_at,
|
||||
latitude,
|
||||
longitude,
|
||||
camera_make,
|
||||
camera_model,
|
||||
orientation,
|
||||
width,
|
||||
height,
|
||||
) in rows
|
||||
{
|
||||
map.insert(
|
||||
file_id.clone(),
|
||||
StoredMetadata {
|
||||
|
||||
Reference in New Issue
Block a user