BUG: Favourite videos are not displayed in the Favourites page
Los mantenedores suelen responder en 3 días
@anurag-sinha04 ya está trabajando en esto.
Desde el 25/8/2026.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 78/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- react, redux, typescript
- Área
- frontend
Línea de trabajo
Comienza en frontend/src/pages/Home/MyFav.tsx leyendo cómo se usan fetchAllImages(), favouriteImages y ChronologicalGallery; después, sigue los puntos de entrada existentes de fetchAllVideos(), la galería de vídeos y VideoCard. El trabajo estará terminado cuando las imágenes y los vídeos marcados como favoritos se rendericen ambos en la página Favourites, quitar cada elemento de favoritos lo elimine y el estado vacío siga siendo apropiado cuando ninguna de las dos listas tenga favoritos.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Is there an existing issue for this?
- I have searched the existing issues
What happened?
Videos can be marked as favourites successfully, but favourited videos do not appear in the Favourites page.
Problem Statement
PictoPy supports favouriting both images and videos. The favourite status for videos is correctly persisted in the backend, and the frontend already provides the required API, Redux state, and UI support for toggling a video's favourite status.
However, the Favourites page currently only loads and filters images. Because videos are not fetched or passed to the Favourites gallery, a video that has been successfully marked as a favourite is missing from the Favourites page.
This makes the favourite functionality inconsistent between images and videos.
Current Behavior
- Open PictoPy and navigate to a video.
- Hover over the video and use the favourite action.
- The video is successfully marked as favourite.
- Navigate to the Favourites page.
- The favourited video does not appear.
- Favourited images are displayed normally.
Expected Behavior
The Favourites page should display both favourited images and favourited videos.
A video marked as favourite should appear in the Favourites page until it is unfavourited.
Technical Details
The backend already supports favourite status for videos.
The videos table contains isFavourite BOOLEAN DEFAULT 0.
The backend also provides db_toggle_video_favourite_status(video_id: str), which updates the video's isFavourite value.
The frontend also supports video favourites through updateVideoFavoriteStatus(...).
The existing video API provides fetchAllVideos() and toggleVideoFav(...).
The VideoCard component also contains the existing favourite action and uses video.isFavourite.
Therefore, the issue is not with storing or toggling the video's favourite status.
Root Cause
The issue is in:
frontend/src/pages/Home/MyFav.tsx
The Favourites page currently fetches only images using fetchAllImages().
It then filters only the image list:
const favouriteImages = useMemo(() => images.filter((image) => image.isFavourite === true), [images]);
The resulting list is passed to the image-only ChronologicalGallery.
There is currently no equivalent fetchAllVideos() call or filtering of favourited videos in the Favourites page.
Impact
Users can successfully favourite videos, but cannot find those favourited videos from the Favourites page.
This creates inconsistent behaviour:
- Favourite image → appears in Favourites ✅
- Favourite video → does not appear in Favourites ❌
This may also make users think that their video favourite action was not saved, even though the favourite status is persisted correctly.
Proposed Solution
Update the existing Favourites page to fetch and display both favourite images and favourite videos.
A simple UI approach would be to keep the existing Favourites page and add two sections:
Favourite Images
Display the existing favourited images using the current image gallery.
Favourite Videos
Display favourited videos using the existing video gallery/card components.
This keeps the existing image and video gallery implementations separate while making both types of favourited media accessible from the same Favourites page.
The existing backend favourite functionality, video API, VideoCard, and video state management can be reused without changing their existing behaviour.
Acceptance Criteria
- Favourited images continue to appear in the Favourites page.
- Favourited videos appear in the Favourites page.
- Unfavouriting a video removes it from the Favourites page.
- Unfavouriting an image continues to remove it from the Favourites page.
- Existing image and video favourite functionality is not broken.
- If there are no favourited images or videos, an appropriate empty state is displayed.
Screenshot
I would like to work on this issue
Please review and assign it to me if appropriate. I’ll wait for maintainer confirmation before opening a PR.
Record
- I agree to follow this project's Code of Conduct
- Lenguaje dominante
- Python
- Estrellas
- 322
- Forks
- 793
- Merge medio
- 6 d 10 h
- PR fusionados (30 d)
- 20
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de AOSSIE-Org/PictoPy
-
bug enhancement
Dificultad 1/5 Menos de una hora Aptitud para principiantes 90/100
AOSSIE-Org/PictoPy#1802 · 2 comentarios ·
Los mantenedores suelen responder en 3 días
-
BUG: XMP metadata export permanently overwrites file modification timestamp (mtime), destroying photo datesPosiblemente ocupada @swastiksharma45 la tomó hace 2 días. Abiertobug enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
AOSSIE-Org/PictoPy#1788 · 6 comentarios ·
Los mantenedores suelen responder en 3 días
-
enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 79/100
AOSSIE-Org/PictoPy#1786 · 1 comentario ·
Los mantenedores suelen responder en 3 días
-
BUG: Semantic search sees portrait phone photos sideways (SigLIP ignores EXIF orientation)Posiblemente ocupada @omkar-suryavanshi la tomó hace 3 días. Abiertobug enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
AOSSIE-Org/PictoPy#1780 · 5 comentarios ·
Los mantenedores suelen responder en 3 días
-
BUG: Share password loses leading/trailing spaces so the password you set doesn't workPosiblemente ocupada @ManyaJain111 la tomó hace 2 días. Abiertobug good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
AOSSIE-Org/PictoPy#1779 · 2 comentarios · 1 asignado ·
Los mantenedores suelen responder en 3 días
Todos los issues de AOSSIE-Org/PictoPy
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Los mantenedores suelen responder en 1 día
-
hermes hooks doctor smoke test never checks the hook exit code — a crashing hook (exit=1) renders ✓ "ran clean" and "All shell hooks look healthy"Posiblemente ocupada @cestercian la tomó hoy. Abiertocomp/cli P2 type/bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
NousResearch/hermes-agent#162259 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
[request] gRpc/1.86.0Abiertoupstream update
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
conan-io/conan-center-index#31597 ·
Los mantenedores suelen responder en 1 día
-
community-request
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
NVIDIA-NeMo/Run#727 ·
Los mantenedores suelen responder en 1 día
-
bot-triaged module: higher order operators module: pickle module: pt2-dispatcher oncall: pt2 triaged
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
pytorch/pytorch#207247 · 1 comentario ·
Los mantenedores suelen responder en 1 día