Skip to content

Commit

Permalink
Add scene production_date (#857)
Browse files Browse the repository at this point in the history
  • Loading branch information
InfiniteStash authored Dec 11, 2024
1 parent 78a7173 commit ed3de5f
Show file tree
Hide file tree
Showing 28 changed files with 800 additions and 152 deletions.
7 changes: 7 additions & 0 deletions frontend/src/components/editCard/ModifyEdit.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,7 @@ type ScenePerformance = {
export interface SceneDetails {
title?: string | null;
date?: string | null;
production_date?: string | null;
duration?: number | null;
details?: string | null;
director?: string | null;
Expand Down Expand Up @@ -474,6 +475,12 @@ export const renderSceneDetails = (
oldValue={oldSceneDetails?.director}
showDiff={showDiff}
/>
<ChangeRow
name="Production Date"
newValue={sceneDetails.production_date}
oldValue={oldSceneDetails?.production_date}
showDiff={showDiff}
/>
<ChangeRow
name="Studio Code"
newValue={sceneDetails.code}
Expand Down
2 changes: 2 additions & 0 deletions frontend/src/graphql/fragments/EditFragment.gql
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ fragment EditFragment on Edit {
...URLFragment
}
date
production_date
studio {
...StudioFragment
}
Expand Down Expand Up @@ -224,6 +225,7 @@ fragment EditFragment on Edit {
...URLFragment
}
date
production_date
studio {
...StudioFragment
}
Expand Down
1 change: 1 addition & 0 deletions frontend/src/graphql/fragments/SceneFragment.gql
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
fragment SceneFragment on Scene {
id
release_date
production_date
title
deleted
details
Expand Down
1 change: 1 addition & 0 deletions frontend/src/graphql/mutations/AddScene.gql
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ mutation AddScene($sceneData: SceneCreateInput!) {
sceneCreate(input: $sceneData) {
id
release_date
production_date
title
code
details
Expand Down
1 change: 1 addition & 0 deletions frontend/src/graphql/mutations/UpdateScene.gql
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ mutation UpdateScene($updateData: SceneUpdateInput!) {
sceneUpdate(input: $updateData) {
id
release_date
production_date
details
director
code
Expand Down
1 change: 1 addition & 0 deletions frontend/src/graphql/queries/EditUpdate.gql
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ query EditUpdate($id: ID!) {
title
details
date
production_date
studio {
...StudioFragment
}
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/graphql/queries/StudioPerformers.gql
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ query StudioPerformers(
scenes(input: { studio_id: $studioId }) {
id
title
date
duration
release_date
production_date
studio {
id
name
Expand Down
Loading

0 comments on commit ed3de5f

Please sign in to comment.