Skip to content

Commit b0ff9a7

Browse files
authored
Feat/add new filters (#418)
* chore: WIP list all user-items in collection page * chore: list all in collection home * chore: add drawer * chore: add dictionary setup * chore: add drawer and filter fields * chore: use all as default value in collection screen * chore: update collection table * chore: update dictionary * chore: fix collection filter page * chore: retrieve filter from form and pass to request * fix: requests * chore: WIP Changes * chore: update contexts * fix: slider * chore: WIP changes * chore: add dictonary changes * chore: update orval generated files * chore: WIP add new filter * chore: close model after save * fix: update UserItemsCommand rendering condition and enhance filter state management * chore: apply lint * refactor: use useReducer insteadOf useState * refactor: update collection filters * chore: update collection filter * feat: enhance collection filters with new options and rating disabled message * build: remove unused
1 parent 166050f commit b0ff9a7

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+12068
-9696
lines changed

.tool-versions

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
nodejs 23.8.0

apps/web/public/dictionaries/de-DE.json

+29-1
Original file line numberDiff line numberDiff line change
@@ -425,6 +425,33 @@
425425
},
426426
"no_results": "Keine Ergebnisse."
427427
},
428+
"collection_filters": {
429+
"title": "Filtern Sie Ihre Sammlung",
430+
"filters_tab": "Filter",
431+
"order_tab": "Sortierung",
432+
"rating_field_label": "Bewertung",
433+
"media_type_field_label": "Typ",
434+
"media_type_TV_SHOW": "TV-Serie",
435+
"media_type_MOVIE": "Film",
436+
"only_items_without_review_field_label": "Nur Elemente ohne Bewertung anzeigen",
437+
"sort_by_label": "Sortieren nach",
438+
"sort_by_placeholder": "Sortieren nach",
439+
"sort_by_options": {
440+
"addedAt.desc": "Zuletzt hinzugefügt",
441+
"addedAt.asc": "Zuerst hinzugefügt",
442+
"updatedAt.desc": "Zuletzt aktualisiert",
443+
"updatedAt.asc": "Zuerst aktualisiert",
444+
"rating.desc": "Beste Bewertung",
445+
"rating.asc": "Schlechteste Bewertung"
446+
},
447+
"close_button": "Schließen",
448+
"save_changes_button": "Änderungen speichern",
449+
"rating_disabled_message": "Die Bewertung kann nicht angepasst werden, wenn 'Nur Elemente ohne Bewertung anzeigen' ausgewählt ist",
450+
"options": {
451+
"TV_SHOW": "TV-Serie",
452+
"MOVIE": "Film"
453+
}
454+
},
428455
"list_command": {
429456
"search_placeholder": "Suche nach allem...",
430457
"no_results": "Keine Ergebnisse gefunden.",
@@ -646,6 +673,7 @@
646673
"watched": "Gesehen",
647674
"watching": "Ansehen",
648675
"watchlist": "Watchlist",
676+
"all": "Alle",
649677
"stats": "Statistiken",
650678
"where_to_watch": "Wo zu sehen",
651679
"unavailable": "Nicht verfügbar",
@@ -835,4 +863,4 @@
835863
"perfect_place_for_watching": "Der perfekte Ort für alle, die",
836864
"everything": "alles",
837865
"manage_rate_discover": "Verwalten, bewerten, entdecken und teilen Sie Ihre Lieblingsinhalte. Erstellen Sie Listen, erhalten Sie Empfehlungen und behalten Sie den Überblick über alles, was Sie gesehen haben."
838-
}
866+
}

apps/web/public/dictionaries/en-US.json

+29-1
Original file line numberDiff line numberDiff line change
@@ -428,6 +428,33 @@
428428
},
429429
"no_results": "No results."
430430
},
431+
"collection_filters": {
432+
"title": "Filter your collection",
433+
"filters_tab": "Filters",
434+
"order_tab": "Order",
435+
"rating_field_label": "Rating",
436+
"media_type_field_label": "Type",
437+
"media_type_TV_SHOW": "TV Show",
438+
"media_type_MOVIE": "Movie",
439+
"only_items_without_review_field_label": "Show only items without review",
440+
"sort_by_label": "Sort by",
441+
"sort_by_placeholder": "Sort by",
442+
"rating_disabled_message": "Rating cannot be adjusted when 'Show only items without review' is selected",
443+
"sort_by_options": {
444+
"addedAt.desc": "Latest Added",
445+
"addedAt.asc": "Oldest Added",
446+
"updatedAt.desc": "Latest Updated",
447+
"updatedAt.asc": "Oldest Updated",
448+
"rating.desc": "Highest Rated",
449+
"rating.asc": "Lowest Rated"
450+
},
451+
"options": {
452+
"TV_SHOW": "TV Show",
453+
"MOVIE": "Movie"
454+
},
455+
"close_button": "Close",
456+
"save_changes_button": "Save Changes"
457+
},
431458
"list_command": {
432459
"search_placeholder": "Search for anything...",
433460
"no_results": "No results found.",
@@ -647,6 +674,7 @@
647674
"watched": "Watched",
648675
"watching": "Watching",
649676
"watchlist": "Watchlist",
677+
"all": "All",
650678
"stats": "Stats",
651679
"where_to_watch": "Where to watch",
652680
"unavailable": "Unavailable",
@@ -837,4 +865,4 @@
837865
"everything": "everything",
838866
"manage_rate_discover": "Manage, rate, discover, and share your favorite content. Create lists, receive recommendations, and keep track of everything you've watched.",
839867
"start_now": "Start now"
840-
}
868+
}

apps/web/public/dictionaries/es-ES.json

+30-2
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@
315315
"explore_popular_movies": "Explora películas populares y danos tu opinión."
316316
},
317317
"movies_list_filters": {
318-
"title": "Descubrir Películas",
318+
"title": "Filtrar películas",
319319
"tabs": {
320320
"filters": "Filtros",
321321
"order": "Ordenar",
@@ -430,6 +430,33 @@
430430
},
431431
"no_results": "Sin resultados."
432432
},
433+
"collection_filters": {
434+
"title": "Filtrar tu colección",
435+
"filters_tab": "Filtros",
436+
"order_tab": "Ordenar",
437+
"rating_field_label": "Calificación",
438+
"media_type_field_label": "Tipo",
439+
"media_type_TV_SHOW": "Serie de TV",
440+
"media_type_MOVIE": "Película",
441+
"only_items_without_review_field_label": "Mostrar solo elementos sin reseña",
442+
"sort_by_label": "Ordenar por",
443+
"sort_by_placeholder": "Ordenar por",
444+
"sort_by_options": {
445+
"addedAt.desc": "Añadidos recientemente",
446+
"addedAt.asc": "Añadidos primero",
447+
"updatedAt.desc": "Actualizados recientemente",
448+
"updatedAt.asc": "Actualizados primero",
449+
"rating.desc": "Mejor calificación",
450+
"rating.asc": "Peor calificación"
451+
},
452+
"close_button": "Cerrar",
453+
"save_changes_button": "Guardar cambios",
454+
"rating_disabled_message": "La calificación no puede ser ajustada cuando 'Mostrar solo elementos sin reseña' está seleccionado",
455+
"options": {
456+
"TV_SHOW": "Serie de TV",
457+
"MOVIE": "Película"
458+
}
459+
},
433460
"list_command": {
434461
"search_placeholder": "Buscar cualquier cosa...",
435462
"no_results": "No se encontraron resultados.",
@@ -649,6 +676,7 @@
649676
"watched": "Vistos",
650677
"watching": "Viendo",
651678
"watchlist": "Watchlist",
679+
"all": "Todos",
652680
"stats": "Estadísticas",
653681
"where_to_watch": "Dónde ver",
654682
"unavailable": "No disponible",
@@ -839,4 +867,4 @@
839867
"everything": "todo",
840868
"manage_rate_discover": "Gestiona, califica, descubre y comparte tu contenido favorito. Crea listas, recibe recomendaciones y mantén un registro de todo lo que has visto.",
841869
"start_now": "Empezar ahora"
842-
}
870+
}

apps/web/public/dictionaries/fr-FR.json

+29-1
Original file line numberDiff line numberDiff line change
@@ -431,6 +431,33 @@
431431
},
432432
"no_results": "Aucun résultat."
433433
},
434+
"collection_filters": {
435+
"title": "Filtrer votre collection",
436+
"filters_tab": "Filtres",
437+
"order_tab": "Trier",
438+
"rating_field_label": "Évaluation",
439+
"media_type_field_label": "Type",
440+
"media_type_TV_SHOW": "Série TV",
441+
"media_type_MOVIE": "Film",
442+
"only_items_without_review_field_label": "Afficher uniquement les éléments sans avis",
443+
"sort_by_label": "Trier par",
444+
"sort_by_placeholder": "Trier par",
445+
"sort_by_options": {
446+
"addedAt.desc": "Ajoutés récemment",
447+
"addedAt.asc": "Ajoutés en premier",
448+
"updatedAt.desc": "Mis à jour récemment",
449+
"updatedAt.asc": "Mis à jour en premier",
450+
"rating.desc": "Meilleures évaluations",
451+
"rating.asc": "Pires évaluations"
452+
},
453+
"close_button": "Fermer",
454+
"save_changes_button": "Enregistrer les modifications",
455+
"rating_disabled_message": "La note ne peut pas être ajustée lorsque 'Afficher uniquement les éléments sans avis' est sélectionné",
456+
"options": {
457+
"TV_SHOW": "Série TV",
458+
"MOVIE": "Film"
459+
}
460+
},
434461
"list_command": {
435462
"search_placeholder": "Rechercher n'importe quoi...",
436463
"no_results": "Aucun résultat trouvé.",
@@ -652,6 +679,7 @@
652679
"watched": "Vus",
653680
"watching": "Visionnage",
654681
"watchlist": "Liste de suivi",
682+
"all": "Tout",
655683
"stats": "Statistiques",
656684
"where_to_watch": "Où regarder",
657685
"unavailable": "Indisponible",
@@ -841,4 +869,4 @@
841869
"perfect_place_for_watching": "L'endroit parfait pour ceux qui regardent",
842870
"everything": "tout",
843871
"manage_rate_discover": "Gérez, évaluez, découvrez et partagez votre contenu préféré. Créez des listes, recevez des recommandations et suivez tout ce que vous avez regardé."
844-
}
872+
}

apps/web/public/dictionaries/it-IT.json

+30-2
Original file line numberDiff line numberDiff line change
@@ -430,6 +430,33 @@
430430
},
431431
"no_results": "Nessun risultato."
432432
},
433+
"collection_filters": {
434+
"title": "Filtra la tua collezione",
435+
"filters_tab": "Filtri",
436+
"order_tab": "Ordina",
437+
"rating_field_label": "Valutazione",
438+
"media_type_field_label": "Tipo",
439+
"media_type_TV_SHOW": "Serie TV",
440+
"media_type_MOVIE": "Film",
441+
"only_items_without_review_field_label": "Mostra solo elementi senza recensione",
442+
"sort_by_label": "Ordina per",
443+
"sort_by_placeholder": "Ordina per",
444+
"sort_by_options": {
445+
"addedAt.desc": "Aggiunti di recente",
446+
"addedAt.asc": "Aggiunti per primi",
447+
"updatedAt.desc": "Aggiornati di recente",
448+
"updatedAt.asc": "Aggiornati per primi",
449+
"rating.desc": "Valutazione più alta",
450+
"rating.asc": "Valutazione più bassa"
451+
},
452+
"close_button": "Chiudi",
453+
"save_changes_button": "Salva modifiche",
454+
"rating_disabled_message": "La valutazione non può essere modificata quando 'Mostra solo elementi senza recensione' è selezionato",
455+
"options": {
456+
"TV_SHOW": "Serie TV",
457+
"MOVIE": "Film"
458+
}
459+
},
433460
"list_command": {
434461
"search_placeholder": "Cerca qualsiasi cosa...",
435462
"no_results": "Nessun risultato trovato.",
@@ -646,9 +673,10 @@
646673
"list_edited_successfully": "Elenco modificato con successo.",
647674
"upgrade_list_message": "Abbonati al piano PRO per ottenere liste illimitate.",
648675
"activity": "Attività",
649-
"watched": "Visti",
676+
"watched": "Guardati",
650677
"watching": "Guardando",
651678
"watchlist": "Lista di controllo",
679+
"all": "Tutti",
652680
"stats": "Statistiche",
653681
"where_to_watch": "Dove guardare",
654682
"unavailable": "Non disponibile",
@@ -838,4 +866,4 @@
838866
"perfect_place_for_watching": "Il posto perfetto per chi guarda",
839867
"everything": "tutto",
840868
"manage_rate_discover": "Gestisci, valuta, scopri e condividi i tuoi contenuti preferiti. Crea liste, ricevi consigli e tieni traccia di tutto ciò che hai guardato."
841-
}
869+
}

apps/web/public/dictionaries/ja-JP.json

+29-1
Original file line numberDiff line numberDiff line change
@@ -430,6 +430,33 @@
430430
},
431431
"no_results": "結果がありません。"
432432
},
433+
"collection_filters": {
434+
"title": "コレクションをフィルター",
435+
"filters_tab": "フィルター",
436+
"order_tab": "並び替え",
437+
"rating_field_label": "評価",
438+
"media_type_field_label": "タイプ",
439+
"media_type_TV_SHOW": "テレビ番組",
440+
"media_type_MOVIE": "映画",
441+
"only_items_without_review_field_label": "レビューのないアイテムのみ表示",
442+
"sort_by_label": "並び替え",
443+
"sort_by_placeholder": "並び替え",
444+
"sort_by_options": {
445+
"addedAt.desc": "最近追加",
446+
"addedAt.asc": "最初に追加",
447+
"updatedAt.desc": "最近更新",
448+
"updatedAt.asc": "最初に更新",
449+
"rating.desc": "評価高い順",
450+
"rating.asc": "評価低い順"
451+
},
452+
"close_button": "閉じる",
453+
"save_changes_button": "変更を保存",
454+
"rating_disabled_message": "評価はレビューのないアイテムのみ表示が選択されている場合は変更できません。",
455+
"options": {
456+
"TV_SHOW": "テレビ番組",
457+
"MOVIE": "映画"
458+
}
459+
},
433460
"list_command": {
434461
"search_placeholder": "何でも検索...",
435462
"no_results": "結果が見つかりませんでした。",
@@ -652,6 +679,7 @@
652679
"watched": "視聴済み",
653680
"watching": "視聴中",
654681
"watchlist": "ウォッチリスト",
682+
"all": "すべて",
655683
"stats": "統計",
656684
"where_to_watch": "視聴可能な場所",
657685
"unavailable": "利用不可",
@@ -841,4 +869,4 @@
841869
"perfect_place_for_watching": "すべてを見る人のための完璧な場所",
842870
"everything": "すべて",
843871
"manage_rate_discover": "お気に入りのコンテンツを管理、評価、発見、共有しましょう。リストを作成し、おすすめを受け取り、視聴したすべてを追跡できます。"
844-
}
872+
}

apps/web/public/dictionaries/pt-BR.json

+30-2
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@
313313
"explore_popular_movies": "Explore filmes populares e nos dê sua opinião."
314314
},
315315
"movies_list_filters": {
316-
"title": "Descubra Filmes",
316+
"title": "Filtre sua coleção",
317317
"tabs": {
318318
"filters": "Filtros",
319319
"order": "Ordenar",
@@ -429,6 +429,33 @@
429429
},
430430
"no_results": "Sem resultados."
431431
},
432+
"collection_filters": {
433+
"title": "Filtrar sua coleção",
434+
"filters_tab": "Filtros",
435+
"order_tab": "Ordenar",
436+
"rating_field_label": "Avaliação",
437+
"media_type_field_label": "Tipo",
438+
"media_type_TV_SHOW": "Série de TV",
439+
"media_type_MOVIE": "Filme",
440+
"only_items_without_review_field_label": "Mostrar apenas itens sem avaliação",
441+
"sort_by_label": "Ordenar por",
442+
"sort_by_placeholder": "Ordenar por",
443+
"sort_by_options": {
444+
"addedAt.desc": "Adicionados recentemente",
445+
"addedAt.asc": "Adicionados primeiro",
446+
"updatedAt.desc": "Atualizados recentemente",
447+
"updatedAt.asc": "Atualizados primeiro",
448+
"rating.desc": "Melhor avaliação",
449+
"rating.asc": "Pior avaliação"
450+
},
451+
"close_button": "Fechar",
452+
"save_changes_button": "Salvar alterações",
453+
"rating_disabled_message": "A avaliação não pode ser ajustada quando 'Mostrar apenas itens sem avaliação' está selecionado",
454+
"options": {
455+
"TV_SHOW": "Série de TV",
456+
"MOVIE": "Filme"
457+
}
458+
},
432459
"list_command": {
433460
"search_placeholder": "Pesquise qualquer coisa...",
434461
"no_results": "Nenhum resultado encontrado.",
@@ -648,6 +675,7 @@
648675
"upgrade_list_message": "Assine o plano PRO para ter listas ilimitadas.",
649676
"activity": "Atividade",
650677
"watched": "Assistido",
678+
"all": "Todos",
651679
"watchlist": "Assistir",
652680
"watching": "Assistindo",
653681
"stats": "Estatísticas",
@@ -840,4 +868,4 @@
840868
"everything": "tudo",
841869
"manage_rate_discover": "Gerencie, avalie, descubra e compartilhe seus conteúdos favoritos. Crie listas, receba recomendações e acompanhe tudo o que já assistiu.",
842870
"start_now": "Comece agora"
843-
}
871+
}

0 commit comments

Comments
 (0)