feat(tags): Test case tag editing UI and tag settings UI (#322)

This commit is contained in:
Eliezer Castro
2025-11-02 04:52:15 -03:00
committed by GitHub
parent b71f3e99cc
commit 3fd226bdbd
21 changed files with 896 additions and 143 deletions

View File

@@ -13,6 +13,10 @@ type CaseType = {
Steps?: StepType[];
RunCases?: RunCaseType[];
Attachments?: AttachmentType[];
Tags?: {
id: number;
name: string;
}[];
};
type CaseStepType = {
@@ -89,6 +93,7 @@ type CasesMessages = {
move: string;
clone: string;
casesMoved: string;
tags: string;
casesCloned: string;
};
@@ -123,6 +128,15 @@ type CaseMessages = {
orDragAndDrop: string;
maxFileSize: string;
areYouSureLeave: string;
tags: string;
createTag: string;
maxTagsLimit: string;
tagAlreadyExists: string;
tagCreatedAndAdded: string;
errorCreatingTag: string;
errorUpdatingTestCase: string;
searchOrCreateTag: string;
noTagsSelected: string;
};
export type { CaseType, StepType, AttachmentType, CasesMessages, CaseMessages };

View File

@@ -11,4 +11,19 @@ export type SettingsMessages = {
delete: string;
close: string;
areYouSure: string;
tagManagement: string;
tagName: string;
addTag: string;
noTagsAvailable: string;
deleteTag: string;
areYouSureDeleteTag: string;
tagCreated: string;
tagUpdated: string;
tagDeleted: string;
tagErrorEmpty: string;
tagErrorMinLength: string;
tagErrorMaxLength: string;
tagErrorCreate: string;
tagErrorUpdate: string;
tagErrorDelete: string;
};

7
frontend/types/tag.ts Normal file
View File

@@ -0,0 +1,7 @@
type TagType = {
id: number;
name: string;
projectId: string;
};
export type { TagType };