chore: project intake toast and activity message updated (#5143)
This commit is contained in:
parent
0b1f9f0e5b
commit
85719b9a12
5 changed files with 22 additions and 22 deletions
|
|
@ -101,7 +101,7 @@ const LabelPill = observer(({ labelId, workspaceSlug }: { labelId: string; works
|
|||
const inboxActivityMessage = {
|
||||
declined: {
|
||||
showIssue: "declined issue",
|
||||
noIssue: "declined this issue from inbox.",
|
||||
noIssue: "declined this issue from intake.",
|
||||
},
|
||||
snoozed: {
|
||||
showIssue: "snoozed issue",
|
||||
|
|
@ -109,11 +109,11 @@ const inboxActivityMessage = {
|
|||
},
|
||||
accepted: {
|
||||
showIssue: "accepted issue",
|
||||
noIssue: "accepted this issue from inbox.",
|
||||
noIssue: "accepted this issue from intake.",
|
||||
},
|
||||
markedDuplicate: {
|
||||
showIssue: "declined issue",
|
||||
noIssue: "declined this issue from inbox by marking a duplicate issue.",
|
||||
noIssue: "declined this issue from intake by marking a duplicate issue.",
|
||||
},
|
||||
};
|
||||
|
||||
|
|
@ -128,7 +128,7 @@ const getInboxUserActivityMessage = (activity: IIssueActivity, showIssue: boolea
|
|||
case "2":
|
||||
return showIssue ? inboxActivityMessage.markedDuplicate.showIssue : inboxActivityMessage.markedDuplicate.noIssue;
|
||||
default:
|
||||
return "updated inbox issue status.";
|
||||
return "updated intake issue status.";
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -155,7 +155,7 @@ export const InboxIssueCreateRoot: FC<TInboxIssueCreateRoot> = observer((props)
|
|||
return (
|
||||
<form onSubmit={handleFormSubmit}>
|
||||
<div className="space-y-5 p-5">
|
||||
<h3 className="text-xl font-medium text-custom-text-200">Create Inbox Issue</h3>
|
||||
<h3 className="text-xl font-medium text-custom-text-200">Create Intake Issue</h3>
|
||||
<div className="space-y-3">
|
||||
<InboxIssueTitle
|
||||
data={formData}
|
||||
|
|
|
|||
|
|
@ -45,7 +45,7 @@ export const DeleteInboxIssueModal: React.FC<Props> = observer(({ isOpen, onClos
|
|||
<span className="break-words font-medium text-custom-text-100">
|
||||
{projectDetails?.identifier}-{data?.sequence_id}
|
||||
</span>
|
||||
{""}? The issue will only be deleted from the inbox and this action cannot be undone.
|
||||
{""}? The issue will only be deleted from the intake and this action cannot be undone.
|
||||
</>
|
||||
}
|
||||
/>
|
||||
|
|
|
|||
|
|
@ -21,15 +21,15 @@ export const IssueInboxActivity: FC<TIssueInboxActivity> = observer((props) => {
|
|||
const getInboxActivityMessage = () => {
|
||||
switch (activity?.verb) {
|
||||
case "-1":
|
||||
return "declined this issue from inbox.";
|
||||
return "declined this issue from intake.";
|
||||
case "0":
|
||||
return "snoozed this issue.";
|
||||
case "1":
|
||||
return "accepted this issue from inbox.";
|
||||
return "accepted this issue from intake.";
|
||||
case "2":
|
||||
return "declined this issue from inbox by marking a duplicate issue.";
|
||||
return "declined this issue from intake by marking a duplicate issue.";
|
||||
default:
|
||||
return "updated inbox issue status.";
|
||||
return "updated intake issue status.";
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -249,7 +249,7 @@ export class ProjectInboxStore implements IProjectInboxStore {
|
|||
};
|
||||
|
||||
/**
|
||||
* @description fetch inbox issues with paginated data
|
||||
* @description fetch intake issues with paginated data
|
||||
* @param workspaceSlug
|
||||
* @param projectId
|
||||
*/
|
||||
|
|
@ -285,10 +285,10 @@ export class ProjectInboxStore implements IProjectInboxStore {
|
|||
}
|
||||
});
|
||||
} catch (error) {
|
||||
console.error("Error fetching the inbox issues", error);
|
||||
console.error("Error fetching the intake issues", error);
|
||||
this.loader = undefined;
|
||||
this.error = {
|
||||
message: "Error fetching the inbox issues please try again later.",
|
||||
message: "Error fetching the intake issues please try again later.",
|
||||
status: "init-error",
|
||||
};
|
||||
throw error;
|
||||
|
|
@ -296,7 +296,7 @@ export class ProjectInboxStore implements IProjectInboxStore {
|
|||
};
|
||||
|
||||
/**
|
||||
* @description fetch inbox issues with paginated data
|
||||
* @description fetch intake issues with paginated data
|
||||
* @param workspaceSlug
|
||||
* @param projectId
|
||||
*/
|
||||
|
|
@ -326,9 +326,9 @@ export class ProjectInboxStore implements IProjectInboxStore {
|
|||
});
|
||||
} else set(this, ["inboxIssuePaginationInfo", "next_page_results"], false);
|
||||
} catch (error) {
|
||||
console.error("Error fetching the inbox issues", error);
|
||||
console.error("Error fetching the intake issues", error);
|
||||
this.error = {
|
||||
message: "Error fetching the paginated inbox issues please try again later.",
|
||||
message: "Error fetching the paginated intake issues please try again later.",
|
||||
status: "pagination-error",
|
||||
};
|
||||
throw error;
|
||||
|
|
@ -336,7 +336,7 @@ export class ProjectInboxStore implements IProjectInboxStore {
|
|||
};
|
||||
|
||||
/**
|
||||
* @description fetch inbox issue with issue id
|
||||
* @description fetch intake issue with issue id
|
||||
* @param workspaceSlug
|
||||
* @param projectId
|
||||
* @param inboxIssueId
|
||||
|
|
@ -369,14 +369,14 @@ export class ProjectInboxStore implements IProjectInboxStore {
|
|||
}
|
||||
return inboxIssue;
|
||||
} catch (error) {
|
||||
console.error("Error fetching the inbox issue with inbox issue id");
|
||||
console.error("Error fetching the intake issue with intake issue id");
|
||||
this.loader = undefined;
|
||||
throw error;
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* @description create inbox issue
|
||||
* @description create intake issue
|
||||
* @param workspaceSlug
|
||||
* @param projectId
|
||||
* @param data
|
||||
|
|
@ -400,12 +400,12 @@ export class ProjectInboxStore implements IProjectInboxStore {
|
|||
});
|
||||
return inboxIssueResponse;
|
||||
} catch {
|
||||
console.error("Error creating the inbox issue");
|
||||
console.error("Error creating the intake issue");
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* @description delete inbox issue
|
||||
* @description delete intake issue
|
||||
* @param workspaceSlug
|
||||
* @param projectId
|
||||
* @param inboxIssueId
|
||||
|
|
@ -429,7 +429,7 @@ export class ProjectInboxStore implements IProjectInboxStore {
|
|||
});
|
||||
await this.inboxIssueService.destroy(workspaceSlug, projectId, inboxIssueId);
|
||||
} catch {
|
||||
console.error("Error removing the inbox issue");
|
||||
console.error("Error removing the intake issue");
|
||||
set(this.inboxIssues, [inboxIssueId], currentIssue);
|
||||
set(this, ["inboxIssuePaginationInfo", "total_results"], (this.inboxIssuePaginationInfo?.total_results || 0) + 1);
|
||||
set(this, ["inboxIssueIds"], [...this.inboxIssueIds, inboxIssueId]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue