1. Timelapse viewer default speed changed to 2x

- frontend/src/components/TimelapseViewer.tsx:17 - Changed from 0.5 to 2

  2. Archive page: hide failed prints filter with persistence
  - Added hideFailed state initialized from localStorage.getItem('archiveHideFailed')
  - Added localStorage persistence via useEffect
  - Added "Hide Failed" toggle button (red styling when active) next to the Favorites button
  - Filter is automatically bypassed when viewing the "Failed Prints" collection
  - "Reset" button also clears this filter

  The filter state persists across page refreshes and browser sessions via localStorage.
This commit is contained in:
maziggy
2025-12-13 10:04:15 +01:00
parent c317ff1085
commit f5cec45dbf
4 changed files with 64 additions and 42 deletions
+1 -1
View File
@@ -14,7 +14,7 @@ const SPEED_OPTIONS = [0.25, 0.5, 0.75, 1, 1.5, 2, 3, 4];
export function TimelapseViewer({ src, title, downloadFilename, onClose }: TimelapseViewerProps) {
const videoRef = useRef<HTMLVideoElement>(null);
const [isPlaying, setIsPlaying] = useState(true);
const [playbackRate, setPlaybackRate] = useState(0.5); // Default to 0.5x for timelapse
const [playbackRate, setPlaybackRate] = useState(2); // Default to 2x for timelapse
const [currentTime, setCurrentTime] = useState(0);
const [duration, setDuration] = useState(0);