From dd2d199d04448e17c78709ac81c4701e16504d96 Mon Sep 17 00:00:00 2001 From: miteruzo Date: Thu, 16 Jul 2026 23:39:13 +0900 Subject: [PATCH] #399 --- frontend/src/App.tsx | 10 - .../posts/import/PostImportRowSummary.tsx | 19 +- frontend/src/lib/postNewQueryState.ts | 368 ++++++++++++-- .../src/pages/posts/PostImportReviewPage.tsx | 455 +++++++++++------- .../src/pages/posts/PostImportSourcePage.tsx | 4 +- 5 files changed, 605 insertions(+), 251 deletions(-) diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index c3cfd17..78fd0a9 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -75,11 +75,6 @@ const RouteTransitionWrapper = ({ animationMode, user, setUser }: { }/> }/> }/> - }/> - }/> - }/> - }/> - }/> }/> }/> }/> @@ -118,11 +113,6 @@ const RouteTransitionWrapper = ({ animationMode, user, setUser }: { }/> }/> }/> - }/> - }/> - }/> - }/> - }/> }/> }/> }/> diff --git a/frontend/src/components/posts/import/PostImportRowSummary.tsx b/frontend/src/components/posts/import/PostImportRowSummary.tsx index c729a6a..3523f88 100644 --- a/frontend/src/components/posts/import/PostImportRowSummary.tsx +++ b/frontend/src/components/posts/import/PostImportRowSummary.tsx @@ -12,6 +12,7 @@ import type { PostImportRow } from '@/lib/postImportSession' type Props = { row: PostImportRow + displayNumber?: number onEdit?: () => void onRetry?: () => void onToggleSkip?: (checked: boolean) => void @@ -35,6 +36,7 @@ const summaryDate = (row: PostImportRow): string => const PostImportRowSummary: FC = ( { row, + displayNumber, onEdit, onRetry, onToggleSkip, @@ -47,9 +49,11 @@ const PostImportRowSummary: FC = ( ) => { const warning = summaryWarning (row) const displayStatus = displayPostImportStatus (row) - const editAllowed = onEdit != null && canEditReviewRow (row) + const editVisible = onEdit != null + const editAllowed = editVisible && canEditReviewRow (row) const retryAllowed = onRetry != null && canRetryResultRow (row) const skipChecked = row.skipReason === 'manual' + const rowNumber = displayNumber ?? row.sourceRow const skipControl = showSkipToggle ? (