feat: video sidebar with year/city filters like library view

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
nmemmertandClaude Sonnet 4.6 committed 2026-08-18 11:38:44 -04:00
1 parent 770b4ea797
commit eeab631ac9
5 files changed
+73 -26

No files matched your search

+11 -2
View File
@@ -110,8 +110,17 @@ export function triggerSync(source) {
}
// Videos
export function fetchVideos() {
return api('/api/videos');
export function fetchVideoStats() {
return api('/api/videos/stats');
}
export function fetchVideos({ from, to, city } = {}) {
const p = new URLSearchParams();
if (from) p.set('from', from);
if (to) p.set('to', to);
if (city) p.set('city', city);
const qs = p.toString();
return api(`/api/videos${qs ? '?' + qs : ''}`);
}
// Memories