From 9af4670c6c6431a02fdfe4b19f219c95c7d6d459 Mon Sep 17 00:00:00 2001 From: miteruzo Date: Wed, 15 Jul 2026 23:29:19 +0900 Subject: [PATCH] #399 --- backend/app/controllers/posts_controller.rb | 3 +- frontend/src/components/TopNav.tsx | 2 +- .../posts/import/PostImportRowForm.tsx | 7 +- .../src/pages/posts/PostImportResultPage.tsx | 348 +++++++++--------- .../src/pages/posts/PostImportSourcePage.tsx | 10 +- 5 files changed, 183 insertions(+), 187 deletions(-) diff --git a/backend/app/controllers/posts_controller.rb b/backend/app/controllers/posts_controller.rb index 2ee9d53..5bfbdb1 100644 --- a/backend/app/controllers/posts_controller.rb +++ b/backend/app/controllers/posts_controller.rb @@ -148,7 +148,8 @@ class PostsController < ApplicationController original_created_from: params[:original_created_from], original_created_before: params[:original_created_before], parent_post_ids: parse_parent_post_ids, - video_ms: params[:video_ms] }).create! + video_ms: params[:video_ms], + duration: params[:duration] }).create! post.reload render json: PostRepr.base(post), status: :created diff --git a/frontend/src/components/TopNav.tsx b/frontend/src/components/TopNav.tsx index 9524311..fe9cdd9 100644 --- a/frontend/src/components/TopNav.tsx +++ b/frontend/src/components/TopNav.tsx @@ -18,7 +18,7 @@ import type { FC, MouseEvent } from 'react' import type { Material, Menu, MenuVisibleItem, Tag, User } from '@/types' -type Props = { user: User | null } +type Props = { user: User | null, } export const menuOutline = ( diff --git a/frontend/src/components/posts/import/PostImportRowForm.tsx b/frontend/src/components/posts/import/PostImportRowForm.tsx index 31c068b..4200a5c 100644 --- a/frontend/src/components/posts/import/PostImportRowForm.tsx +++ b/frontend/src/components/posts/import/PostImportRowForm.tsx @@ -4,6 +4,7 @@ import PostOriginalCreatedTimeField from '@/components/PostOriginalCreatedTimeFi import FieldError from '@/components/common/FieldError' import FieldWarning from '@/components/common/FieldWarning' import FormField from '@/components/common/FormField' +import TextArea from '@/components/common/TextArea' import ThumbnailPreview from '@/components/posts/import/ThumbnailPreview' import { inputClass } from '@/lib/utils' @@ -259,13 +260,13 @@ const PostImportAreaField = ( {({ describedBy, invalid }) => ( <> -