implemented individual list functionality

This commit is contained in:
Edward Tirado Jr 2026-02-25 17:33:37 -06:00
parent 3373380f34
commit c5f74f134d
24 changed files with 592 additions and 109 deletions

View file

@ -1,9 +0,0 @@
import {type ListSettings} from "~/types/list-settings";
export type List = {
id: number,
name: string
isPublic: boolean
listSettings: ListSettings
}

View file

@ -0,0 +1,5 @@
export type MovieCriticScore = {
Source: string
Value: string
}

View file

@ -1,7 +1,7 @@
import type {Collaborator} from "~/types/collaborator";
import type {Role} from "~/types/role";
export type ListSettings = {
export type MovieListSettings = {
listName: string,
isPublic: boolean,
collaborators: Collaborator[],

11
app/types/movie-list.ts Normal file
View file

@ -0,0 +1,11 @@
import {type MovieListSettings} from "~/types/movie-list-settings";
import type {Movie} from "~/types/movie";
export type MovieList = {
id: number,
name: string
is_public: boolean
movieListSettings: MovieListSettings
movies: Movie[]
}

View file

@ -0,0 +1,8 @@
export type MovieSearchResult = {
title: string
year: number
imdbId: string
type: string
poster: string
}

View file

@ -1,6 +1,7 @@
export type Movie = {
id: number,
title: string
year: number
imdb_id: string
director: string
actors: string