feat: photo/video capture-date pipeline + premium UI/UX overhaul

Backend — Photos timeline now groups by real capture date instead of upload time. New MediaMetadataService (FileLifecycleHook) extracts EXIF DateTimeOriginal from images and container creation_time from videos (mov/mp4/mkv) via nom-exif, timezone-correct (OffsetTimeOriginal), persisting captured_at so the existing media_sort_date trigger takes over. Adds POST /admin/photos/metadata/reextract to backfill existing media. Falls back to upload date when no embedded date exists.

Frontend — premium grid cards: combined metadata line (relative date · size, owner avatar when shared), custom selection checkbox with a clear checked state, uniform full-width 4:3 thumbnail tiles independent of filename length, centered file-type icons, and a hit-test fix so checkbox/star/kebab clicks reach the controls (the decorative thumbnail no longer captures pointer events). Notification messages internationalised across all 16 locales. Broader polish: design tokens, a11y/focus-visible states, brand + PWA assets.

Chore — bump semver-compatible dependencies (cargo upgrade); add nom-exif 3.6.1.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
DioCrafts
2026-06-15 00:17:17 +02:00
parent dac299fea6
commit 81a93a489b
129 changed files with 8194 additions and 2473 deletions
+48 -11
View File
@@ -18,22 +18,40 @@
/* Content area */
.content-area {
flex-grow: 1;
padding: 20px;
padding: var(--space-5) var(--gutter);
overflow-y: scroll;
scrollbar-gutter: stable;
}
/* Phones: tighten the shared gutter and let the actions bar wrap. */
@media (max-width: 640px) {
:root {
--gutter: var(--space-4);
}
/* Mobile uses overlay scrollbars — don't reserve a phantom gutter. */
.content-area {
scrollbar-gutter: auto;
}
.actions-bar {
flex-wrap: wrap;
height: auto;
gap: var(--space-2);
}
}
.page-title {
font-size: 24px;
font-weight: bold;
margin-bottom: 20px;
font-size: var(--text-2xl);
font-weight: var(--weight-bold);
margin-bottom: var(--space-5);
color: var(--color-text);
}
.page-sticky-header {
position: sticky;
margin: 0px;
padding: 10px 0px;
padding: var(--space-2-5) 0px;
top: -20px; /* due to padding top of content-area */
background-color: var(--color-bg-page);
z-index: 100; /* ensure header is above image preview */
@@ -42,15 +60,15 @@
.actions-bar {
display: flex;
justify-content: space-between;
margin: 0 0 12px;
margin: 0 0 var(--space-3);
height: 60px;
padding: 10px;
padding: var(--space-2-5);
}
.action-buttons {
display: flex;
flex: auto;
gap: 12px;
gap: var(--space-3);
}
.empty-state {
@@ -58,14 +76,33 @@
flex-direction: column;
align-items: center;
justify-content: center;
padding: 40px;
gap: var(--space-2);
padding: var(--space-12) var(--space-6);
text-align: center;
color: var(--color-content-muted);
color: var(--color-text-muted);
width: 100%;
height: 300px;
min-height: 320px;
grid-column: 1 / -1;
}
.empty-state p {
margin: 0;
max-width: 42ch;
color: var(--color-text-muted);
}
/* First paragraph acts as the title. */
.empty-state p:first-of-type {
font-size: var(--text-lg);
font-weight: var(--weight-semibold);
color: var(--color-text-heading);
}
/* Call-to-action button spacing. */
.empty-state .btn {
margin-top: var(--space-4);
}
/* invisible element, permits building of drag element without altering display */
.drag-preview {
position: absolute;
+38 -47
View File
@@ -8,7 +8,7 @@
height: 100%;
flex-shrink: 0;
box-shadow: 2px 0 12px var(--color-shadow-md);
transition: transform 0.3s ease;
transition: transform var(--motion-slow) var(--ease-emphasized);
}
/* Sidebar overlay for mobile */
@@ -56,11 +56,11 @@
}
.logo-container {
padding: 22px 20px;
padding: 22px var(--space-5);
display: flex;
align-items: center;
border-bottom: 1px solid var(--color-sidebar-separator);
margin-bottom: 8px;
margin-bottom: var(--space-2);
text-decoration: none;
color: inherit;
}
@@ -69,18 +69,18 @@
width: 40px;
height: 40px;
background: var(--color-sidebar-logo-gradient);
border-radius: 12px;
border-radius: var(--radius-2xl);
display: flex;
align-items: center;
justify-content: center;
margin-right: 12px;
margin-right: var(--space-3);
box-shadow: 0 3px 10px var(--color-sidebar-shadow);
transition:
transform 0.2s,
box-shadow 0.2s;
[dir="rtl"] & {
margin-left: 12px;
margin-left: var(--space-3);
margin-right: unset;
}
}
@@ -98,7 +98,7 @@
.app-name {
font-size: 19px;
font-weight: 700;
font-weight: var(--weight-bold);
color: var(--color-sidebar-text-active);
letter-spacing: 0.3px;
}
@@ -107,21 +107,28 @@
display: flex;
flex-direction: column;
flex-grow: 1;
padding: 8px 12px;
gap: 2px;
padding: var(--space-2) var(--space-3);
gap: var(--space-0-5);
}
.nav-item {
display: flex;
align-items: center;
padding: 11px 14px;
border-radius: 10px;
width: 100%;
padding: 11px var(--space-3-5);
border-radius: var(--radius-xl);
cursor: pointer;
color: var(--color-sidebar-text);
font-size: 14.5px;
font-weight: 500;
font-weight: var(--weight-medium);
/* Button resets — .nav-item is a <button> (keyboard-operable nav). */
font-family: inherit;
text-align: left;
appearance: none;
background: none;
transition: all 0.2s ease;
position: relative;
border: none;
border-left: 3px solid transparent;
[dir="rtl"] & {
@@ -139,7 +146,7 @@
background-color: var(--color-sidebar-active-bg);
color: var(--color-sidebar-text-active);
border-left-color: var(--color-accent);
font-weight: 600;
font-weight: var(--weight-semibold);
[dir="rtl"] & {
border-left-color: transparent;
@@ -150,18 +157,18 @@
.nav-item i,
.nav-item .nav-icon,
.nav-item .oxi-icon {
margin-right: 14px;
margin-right: var(--space-3-5);
width: 20px;
height: 20px;
text-align: center;
font-size: 16px;
font-size: var(--text-md);
transition:
color 0.2s,
transform 0.2s;
flex-shrink: 0;
[dir="rtl"] & {
margin-left: 14px;
margin-left: var(--space-3-5);
margin-right: unset;
}
}
@@ -192,30 +199,14 @@
color: var(--color-cal-6);
} /* Trash - red */
.nav-item.active:nth-child(1) i,
.nav-item.active:nth-child(1) .oxi-icon {
/* Colourful icons at rest, but the ACTIVE item is always accent — one
coherent active state instead of a colour that changes per item.
Same specificity as the per-child rest rules, so source order (this comes
after them) makes it win for the active item. */
.nav-item.active i,
.nav-item.active .oxi-icon {
color: var(--color-accent);
}
.nav-item.active:nth-child(2) i,
.nav-item.active:nth-child(2) .oxi-icon {
color: var(--color-cal-7);
}
.nav-item.active:nth-child(3) i,
.nav-item.active:nth-child(3) .oxi-icon {
color: var(--color-cal-8);
}
.nav-item.active:nth-child(4) i,
.nav-item.active:nth-child(4) .oxi-icon {
color: var(--color-cal-9);
}
.nav-item.active:nth-child(5) i,
.nav-item.active:nth-child(5) .oxi-icon {
color: var(--color-cal-10);
}
.nav-item.active:nth-child(6) i,
.nav-item.active:nth-child(6) .oxi-icon {
color: var(--color-cal-11);
}
.nav-item:hover i,
.nav-item:hover .oxi-icon {
@@ -224,21 +215,21 @@
/* Storage indicator */
.storage-container {
margin: auto 12px 16px 12px;
margin: auto var(--space-3) var(--space-4) var(--space-3);
background: var(--color-sidebar-storage-bg);
border: 1px solid var(--color-sidebar-storage-border);
border-radius: 12px;
padding: 16px;
border-radius: var(--radius-2xl);
padding: var(--space-4);
}
.storage-title {
display: flex;
align-items: center;
justify-content: center;
gap: 6px;
margin-bottom: 12px;
font-size: 13px;
font-weight: 600;
gap: var(--space-1-5);
margin-bottom: var(--space-3);
font-size: var(--text-sm);
font-weight: var(--weight-semibold);
color: var(--color-sidebar-storage-text);
letter-spacing: 0.3px;
}
@@ -248,7 +239,7 @@
background-color: var(--color-sidebar-storage-bar);
border-radius: 3px;
overflow: hidden;
margin-bottom: 10px;
margin-bottom: var(--space-2-5);
}
.storage-fill {
@@ -263,5 +254,5 @@
text-align: center;
font-size: 11.5px;
color: var(--color-sidebar-storage-faint);
font-weight: 400;
font-weight: var(--weight-normal);
}
+22 -22
View File
@@ -15,7 +15,7 @@
border-bottom: 1px solid var(--color-border);
display: flex;
align-items: center;
padding: 0 30px;
padding: 0 var(--gutter);
justify-content: space-between;
flex-shrink: 0;
}
@@ -25,14 +25,14 @@
display: none;
background: none;
border: none;
padding: 10px;
padding: var(--space-2-5);
cursor: pointer;
color: var(--color-text-secondary);
border-radius: 8px;
border-radius: var(--radius-lg);
transition:
background-color 0.2s,
color 0.2s;
margin-right: 12px;
margin-right: var(--space-3);
flex-shrink: 0;
}
@@ -42,7 +42,7 @@
}
.sidebar-toggle i {
font-size: 20px;
font-size: var(--text-xl);
}
/* Mobile search toggle button — hidden on desktop */
@@ -50,11 +50,11 @@
display: none;
background: none;
border: none;
padding: 10px;
padding: var(--space-2-5);
cursor: pointer;
color: var(--color-text-secondary);
border-radius: 8px;
font-size: 18px;
border-radius: var(--radius-lg);
font-size: var(--text-lg);
transition:
background-color 0.2s,
color 0.2s;
@@ -70,11 +70,11 @@
display: none;
background: none;
border: none;
padding: 10px;
padding: var(--space-2-5);
cursor: pointer;
color: var(--color-text-secondary);
border-radius: 8px;
font-size: 18px;
border-radius: var(--radius-lg);
font-size: var(--text-lg);
transition:
background-color 0.2s,
color 0.2s;
@@ -92,13 +92,13 @@
.search-slot {
flex-grow: 1;
max-width: 600px;
margin-right: 20px;
margin-right: var(--space-5);
position: relative;
display: flex;
align-items: center;
[dir="rtl"] & {
margin-left: 20px;
margin-left: var(--space-5);
margin-right: unset;
}
}
@@ -112,11 +112,11 @@
.search-container input {
width: 100%;
padding: 12px 50px 12px 44px;
border-radius: 12px;
padding: var(--space-3) 50px var(--space-3) var(--space-11);
border-radius: var(--radius-2xl);
border: 2px solid var(--color-border);
background-color: var(--color-bg-input);
font-size: 14px;
font-size: var(--text-base);
height: 46px;
color: var(--color-text-heading);
transition: all 0.2s ease;
@@ -144,7 +144,7 @@
top: 50%;
transform: translateY(-50%);
color: var(--color-text-placeholder);
font-size: 16px;
font-size: var(--text-md);
pointer-events: none;
transition: color 0.2s ease;
@@ -167,7 +167,7 @@
background: var(--color-accent-gradient);
color: var(--color-danger-text);
border: none;
border-radius: 10px;
border-radius: var(--radius-xl);
width: 36px;
height: 36px;
cursor: pointer;
@@ -193,19 +193,19 @@
}
.search-button i {
font-size: 14px;
font-size: var(--text-base);
}
.user-controls {
display: flex;
align-items: center;
gap: 12px;
gap: var(--space-3);
}
/* Mobile responsive styles for top bar */
@media (max-width: 768px) {
.top-bar {
padding: 0 16px;
padding: 0 var(--space-4);
}
.sidebar-toggle {
@@ -246,7 +246,7 @@
}
.top-bar--search-active .search-container input {
padding-left: 16px;
padding-left: var(--space-4);
}
.top-bar--search-active .sidebar-toggle,