[WEB-3849] chore: added intake source in the list (#6919)
* chore: added intake source in the list * fix: refactor
This commit is contained in:
parent
915e374485
commit
ed8d00acb1
4 changed files with 16 additions and 2 deletions
7
web/ce/components/inbox/source-pill.tsx
Normal file
7
web/ce/components/inbox/source-pill.tsx
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
import { EInboxIssueSource } from "@plane/constants";
|
||||
|
||||
export type TInboxSourcePill = {
|
||||
source: EInboxIssueSource;
|
||||
};
|
||||
|
||||
export const InboxSourcePill = (props: TInboxSourcePill) => <></>;
|
||||
|
|
@ -15,6 +15,7 @@ import { renderFormattedDate } from "@/helpers/date-time.helper";
|
|||
import { getFileURL } from "@/helpers/file.helper";
|
||||
import { useLabel, useMember, useProjectInbox } from "@/hooks/store";
|
||||
import { usePlatformOS } from "@/hooks/use-platform-os";
|
||||
import { InboxSourcePill } from "@/plane-web/components/inbox/source-pill";
|
||||
|
||||
type InboxIssueListItemProps = {
|
||||
workspaceSlug: string;
|
||||
|
|
@ -65,7 +66,10 @@ export const InboxIssueListItem: FC<InboxIssueListItemProps> = observer((props)
|
|||
<div className="flex-shrink-0 text-xs font-medium text-custom-text-300">
|
||||
{projectIdentifier}-{issue.sequence_id}
|
||||
</div>
|
||||
{inboxIssue.status !== -2 && <InboxIssueStatus inboxIssue={inboxIssue} iconSize={12} />}
|
||||
<div className="flex items-center gap-2">
|
||||
{inboxIssue.source && <InboxSourcePill source={inboxIssue.source} />}
|
||||
{inboxIssue.status !== -2 && <InboxIssueStatus inboxIssue={inboxIssue} iconSize={12} />}
|
||||
</div>
|
||||
</div>
|
||||
<h3 className="truncate w-full text-sm">{issue.name}</h3>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@ import { observer } from "mobx-react";
|
|||
import { EInboxIssueSource } from "@plane/constants";
|
||||
import { LayersIcon } from "@plane/ui";
|
||||
// hooks
|
||||
import { capitalizeFirstLetter } from "@plane/utils";
|
||||
import { useIssueDetail } from "@/hooks/store";
|
||||
// local imports
|
||||
import { IssueActivityBlockComponent } from "./";
|
||||
|
|
@ -34,7 +35,8 @@ export const IssueDefaultActivity: FC<TIssueDefaultActivity> = observer((props)
|
|||
{activity.verb === "created" ? (
|
||||
source && source !== EInboxIssueSource.IN_APP ? (
|
||||
<span>
|
||||
created the work item via <span className="font-medium">{source.toLowerCase()}</span>.
|
||||
created the work item via{" "}
|
||||
<span className="font-medium">{capitalizeFirstLetter(source.toLowerCase() || "")}</span>.
|
||||
</span>
|
||||
) : (
|
||||
<span> created the work item.</span>
|
||||
|
|
|
|||
1
web/ee/components/inbox/source-pill.tsx
Normal file
1
web/ee/components/inbox/source-pill.tsx
Normal file
|
|
@ -0,0 +1 @@
|
|||
export * from "ce/components/inbox/source-pill";
|
||||
Loading…
Add table
Add a link
Reference in a new issue