diff --git a/frontend/config/selection.ts b/frontend/config/selection.ts index 9192003..74b794d 100644 --- a/frontend/config/selection.ts +++ b/frontend/config/selection.ts @@ -6,19 +6,19 @@ const priorities = [ ]; const testTypes = [ - { name: "Other", uid: "other" }, - { name: "Security", uid: "security" }, - { name: "Performance", uid: "performance" }, - { name: "Accessibility", uid: "accessibility" }, - { name: "Functional", uid: "functional" }, - { name: "Acceptance", uid: "acceptance" }, - { name: "Usability", uid: "usability" }, - { name: "Smoke&Sanity", uid: "smoke-sanity" }, - { name: "Compatibility", uid: "compatibility" }, - { name: "Destructive", uid: "destructive" }, - { name: "Regression", uid: "regression" }, - { name: "Automated", uid: "automated" }, - { name: "Manual", uid: "manual" }, + { uid: "other" }, + { uid: "security" }, + { uid: "performance" }, + { uid: "accessibility" }, + { uid: "functional" }, + { uid: "acceptance" }, + { uid: "usability" }, + { uid: "smokeSanity" }, + { uid: "compatibility" }, + { uid: "destructive" }, + { uid: "regression" }, + { uid: "automated" }, + { uid: "manual" }, ]; const automationStatus = [ @@ -28,10 +28,7 @@ const automationStatus = [ { name: "Obsolete", uid: "obsolete" }, ]; -const templates = [ - { name: "Text", uid: "text-template" }, - { name: "Step", uid: "step-template" }, -]; +const templates = [{ uid: "text" }, { uid: "step" }]; const testRunStatus = [ { name: "New", uid: "new" }, diff --git a/frontend/messages/en.json b/frontend/messages/en.json index 89f023d..3444f9b 100644 --- a/frontend/messages/en.json +++ b/frontend/messages/en.json @@ -53,10 +53,51 @@ "low": "Low" }, "Case": { + "back_to_cases": "Back to test cases", + "updating": "Updating...", + "update": "Update", + "basic": "Basic", + "title": "Title", + "please_enter_title": "Please enter title", + "description": "Description", + "test_case_description": "Test case description", + "priority": "Priority", "critical": "Critical", "high": "High", "medium": "Medium", - "low": "Low" + "low": "Low", + "type": "Type", + "other": "Other", + "security": "Security", + "performance": "Performance", + "accessibility": "Accessibility", + "functional": "Functional", + "acceptance": "Acceptance", + "usability": "Usability", + "smoke_sanity": "Smoke&Sanity", + "compatibility": "Compatibility", + "destructive": "Destructive", + "regression": "Regression", + "automated": "Automated", + "manual": "Manual", + "template": "Template", + "test_detail": "Test detail", + "preconditions": "Preconditions", + "step": "Step", + "text": "Text", + "steps": "Steps", + "new_step": "New Step", + "details_of_the_step": "Details of the step", + "expected_result": "Expected result", + "delete_this_step": "Delete this step", + "insert_step": "Insert step", + "attachments": "Attachments", + "delete": "Delete", + "download": "Download", + "delete_file": "Delete file", + "click_to_upload": "Click to upload", + "or_drag_and_drop": "or drag and drop", + "max_file_size": "Max. file size" }, "Runs": { "id": "ID", diff --git a/frontend/messages/ja.json b/frontend/messages/ja.json index 064667c..ec182b1 100644 --- a/frontend/messages/ja.json +++ b/frontend/messages/ja.json @@ -53,10 +53,51 @@ "low": "低" }, "Case": { + "back_to_cases": "テストケース一覧に戻る", + "updating": "更新中...", + "update": "更新", + "basic": "基本データ", + "title": "タイトル", + "please_enter_title": "タイトルを入力してください", + "description": "詳細", + "test_case_description": "テストケース詳細", + "priority": "優先度", "critical": "致", "high": "高", "medium": "中", - "low": "低" + "low": "低", + "type": "タイプ", + "other": "その他", + "security": "セキュリティ", + "performance": "パフォーマンス", + "accessibility": "アクセシビリティ", + "functional": "機能", + "acceptance": "受け入れ", + "usability": "ユーザビリティ", + "smoke_sanity": "スモーク/サニティ", + "compatibility": "互換性", + "destructive": "破壊", + "regression": "回帰", + "automated": "自動", + "manual": "手動", + "template": "テンプレート", + "test_detail": "テスト詳細", + "preconditions": "前提条件", + "step": "ステップ", + "text": "テキスト", + "steps": "ステップ", + "new_step": "新規ステップ", + "details_of_the_step": "ステップ詳細", + "expected_result": "期待結果", + "delete_this_step": "このステップを削除", + "insert_step": "ステップを挿入", + "attachments": "添付ファイル", + "delete": "削除", + "download": "ダウンロード", + "delete_file": "ファイルを削除", + "click_to_upload": "クリックしてアップロード", + "or_drag_and_drop": "またはドラッグアンドドロップ", + "max_file_size": "最大ファイルサイズ" }, "Runs": { "id": "ID", diff --git a/frontend/src/app/[locale]/projects/[projectId]/folders/[folderId]/cases/[caseId]/CaseAttachmentsEditor.tsx b/frontend/src/app/[locale]/projects/[projectId]/folders/[folderId]/cases/[caseId]/CaseAttachmentsEditor.tsx index ad7ccec..fe78710 100644 --- a/frontend/src/app/[locale]/projects/[projectId]/folders/[folderId]/cases/[caseId]/CaseAttachmentsEditor.tsx +++ b/frontend/src/app/[locale]/projects/[projectId]/folders/[folderId]/cases/[caseId]/CaseAttachmentsEditor.tsx @@ -1,5 +1,5 @@ import { Image, Button, Tooltip, Card, CardBody } from "@nextui-org/react"; -import { AttachmentType } from "../../../../../../../../types/case"; +import { AttachmentType, CaseMessages } from "@/types/case"; import { Trash, ArrowDownToLine } from "lucide-react"; type Props = { @@ -9,12 +9,14 @@ type Props = { downloadFileName: string ) => void; onAttachmentDelete: (attachmentId: number) => void; + messages: CaseMessages, }; export default function CaseAttachmentsEditor({ attachments = [], onAttachmentDownload, onAttachmentDelete, + messages, }: Props) { let images = []; let others = []; @@ -48,7 +50,7 @@ export default function CaseAttachmentsEditor({ />
{image.title}
-