Skip to content

Commit ff81e50

Browse files
refactor(ui): reuse inbox identifier formatting
Generated-By: PostHog Code Task-Id: c1bbe3cf-742b-4b24-bf96-d11a18b4cf22
1 parent 55e1937 commit ff81e50

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

packages/ui/src/features/inbox/hooks/useReportTasks.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { humanizeIdentifier } from "@posthog/core/inbox/activityLog";
12
import type {
23
SignalReportStatus,
34
Task,
@@ -19,11 +20,6 @@ export interface ReportTaskData {
1920
startedAt: string;
2021
}
2122

22-
function humanizeIdentifier(value: string): string {
23-
const words = value.replace(/[_-]+/g, " ").trim();
24-
return words.charAt(0).toUpperCase() + words.slice(1);
25-
}
26-
2723
function derivePurpose(taskRun: {
2824
product: string;
2925
type: string;

0 commit comments

Comments
 (0)