mirror of
https://github.com/alkimake/paperclip.git
synced 2026-06-15 18:30:39 +09:00
feat(ui): reconcile backup UI changes with current routing and interaction features
This commit is contained in:
parent
83be94361c
commit
8ee063c4e5
69 changed files with 1591 additions and 666 deletions
|
|
@ -1,9 +1,8 @@
|
|||
import { Link } from "react-router-dom";
|
||||
import { Link } from "@/lib/router";
|
||||
import { Identity } from "./Identity";
|
||||
import { timeAgo } from "../lib/timeAgo";
|
||||
import { cn } from "../lib/utils";
|
||||
import type { ActivityEvent } from "@paperclip/shared";
|
||||
import type { Agent } from "@paperclip/shared";
|
||||
import { deriveProjectUrlKey, type ActivityEvent, type Agent } from "@paperclip/shared";
|
||||
|
||||
const ACTION_VERBS: Record<string, string> = {
|
||||
"issue.created": "created",
|
||||
|
|
@ -70,7 +69,7 @@ function entityLink(entityType: string, entityId: string, name?: string | null):
|
|||
switch (entityType) {
|
||||
case "issue": return `/issues/${name ?? entityId}`;
|
||||
case "agent": return `/agents/${entityId}`;
|
||||
case "project": return `/projects/${entityId}`;
|
||||
case "project": return `/projects/${deriveProjectUrlKey(name, entityId)}`;
|
||||
case "goal": return `/goals/${entityId}`;
|
||||
case "approval": return `/approvals/${entityId}`;
|
||||
default: return null;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue