diff --git a/frontend/messages/en.json b/frontend/messages/en.json index 400e0f9..4e517d3 100644 --- a/frontend/messages/en.json +++ b/frontend/messages/en.json @@ -200,15 +200,22 @@ }, "Runs": { "run_list": "Test Run List", + "run": "Run", + "new_run": "New Run", + "edit_run": "Edit Run", + "delete_run": "Delete Run", "id": "ID", "name": "Name", "description": "Description", "last_update": "Last update", "actions": "Actions", - "new_run": "New Run", - "delete_run": "Delete Run", + "run_name": "Run name", + "run_description": "Run description", "no_runs_found": "No runs found", "close": "Close", + "create": "Create", + "update": "Update", + "please_enter": "Please enter run name", "are_you_sure": "Are you sure you want to delete the run?", "delete": "Delete" }, diff --git a/frontend/messages/ja.json b/frontend/messages/ja.json index 5d4bf36..d290e65 100644 --- a/frontend/messages/ja.json +++ b/frontend/messages/ja.json @@ -199,15 +199,22 @@ }, "Runs": { "run_list": "テストラン一覧", + "run": "テストラン", + "new_run": "新規テストラン", + "edit_run": "テストランを編集", + "delete_run": "テストランを削除", "id": "ID", "name": "名前", "description": "詳細", "last_update": "最終更新", "actions": "アクション", - "new_run": "新規テストラン", - "delete_run": "テストランを削除", + "run_name": "テストラン名", + "run_description": "テストラン詳細", "no_runs_found": "テストランがありません", "close": "閉じる", + "create": "作成", + "update": "更新", + "please_enter": "テストラン名を入力してください", "are_you_sure": "テストランを削除してもよろしいですか?", "delete": "削除" }, diff --git a/frontend/src/app/[locale]/projects/ProjectDialog.tsx b/frontend/src/app/[locale]/projects/ProjectDialog.tsx index 3f71910..d6e3dd2 100644 --- a/frontend/src/app/[locale]/projects/ProjectDialog.tsx +++ b/frontend/src/app/[locale]/projects/ProjectDialog.tsx @@ -25,13 +25,13 @@ type Props = { export default function ProjectDialog({ isOpen, editingProject, onCancel, onSubmit, messages }: Props) { const [projectName, setProjectName] = useState({ text: editingProject ? editingProject.name : '', - isValid: false, + isInvalid: false, errorMessage: '', }); const [projectDetail, setProjectDetail] = useState({ text: editingProject ? editingProject.detail : '', - isValid: false, + isInvalid: false, errorMessage: '', }); @@ -67,12 +67,12 @@ export default function ProjectDialog({ isOpen, editingProject, onCancel, onSubm const clear = () => { setProjectName({ - isValid: false, + isInvalid: false, text: '', errorMessage: '', }); setProjectDetail({ - isValid: false, + isInvalid: false, text: '', errorMessage: '', }); @@ -82,7 +82,7 @@ export default function ProjectDialog({ isOpen, editingProject, onCancel, onSubm if (!projectName.text) { setProjectName({ text: '', - isValid: false, + isInvalid: true, errorMessage: messages.pleaseEnter, }); @@ -107,7 +107,7 @@ export default function ProjectDialog({ isOpen, editingProject, onCancel, onSubm type="text" label={messages.projectName} value={projectName.text} - isInvalid={projectName.isValid} + isInvalid={projectName.isInvalid} errorMessage={projectName.errorMessage} onChange={(e) => { setProjectName({ @@ -119,7 +119,7 @@ export default function ProjectDialog({ isOpen, editingProject, onCancel, onSubm