diff --git a/apps/web/src/components/chips.tsx b/apps/web/src/components/chips.tsx index d0402ecf..c9790b2a 100644 --- a/apps/web/src/components/chips.tsx +++ b/apps/web/src/components/chips.tsx @@ -46,7 +46,12 @@ export function BaseThreadChip({ fallback={thread.author?.name} src={thread.author?.user?.image ?? undefined} /> - {thread.name} + {thread.name} + {thread.shortId != null && ( + + #{thread.shortId} + + )} ); } @@ -77,7 +82,14 @@ export function ThreadChip({ />
-
{thread.name}
+
+ {thread.name} + {thread.shortId != null && ( + + #{thread.shortId} + + )} +
{ src={thread.author.user?.image} />
{thread.name}
+ {thread.shortId != null && ( + + #{thread.shortId} + + )}
diff --git a/apps/web/src/routes/app/_workspace/_main/playground/index.tsx b/apps/web/src/routes/app/_workspace/_main/playground/index.tsx index a6349174..4e477ba3 100644 --- a/apps/web/src/routes/app/_workspace/_main/playground/index.tsx +++ b/apps/web/src/routes/app/_workspace/_main/playground/index.tsx @@ -103,7 +103,7 @@ function PlaygroundPage() { Threads
- {(threads as any[])?.map((thread: { id: string; name: string }) => ( + {threads?.map((thread) => ( ))} - {(!threads || (threads as any[]).length === 0) && ( + {(threads?.length ?? 0) === 0 && (
No threads found
diff --git a/apps/web/src/routes/app/_workspace/_main/search/index.tsx b/apps/web/src/routes/app/_workspace/_main/search/index.tsx index a48b5abf..7b6fb1b9 100644 --- a/apps/web/src/routes/app/_workspace/_main/search/index.tsx +++ b/apps/web/src/routes/app/_workspace/_main/search/index.tsx @@ -67,6 +67,11 @@ const SearchResultItem = ({ messageId }: SearchResultItemProps) => {
{thread?.name}
+ {thread?.shortId != null && ( + + #{thread.shortId} + + )}
diff --git a/apps/web/src/routes/app/_workspace/_main/threads/$id/index.tsx b/apps/web/src/routes/app/_workspace/_main/threads/$id/index.tsx index d873d15d..a0690ab0 100644 --- a/apps/web/src/routes/app/_workspace/_main/threads/$id/index.tsx +++ b/apps/web/src/routes/app/_workspace/_main/threads/$id/index.tsx @@ -267,7 +267,14 @@ function RouteComponent() { - {thread.name} + + {thread.name} + {thread.shortId != null && ( + + #{thread.shortId} + + )} + diff --git a/apps/web/src/routes/app/_workspace/_main/threads/archive/$id.tsx b/apps/web/src/routes/app/_workspace/_main/threads/archive/$id.tsx index 6e285702..a5f50cd8 100644 --- a/apps/web/src/routes/app/_workspace/_main/threads/archive/$id.tsx +++ b/apps/web/src/routes/app/_workspace/_main/threads/archive/$id.tsx @@ -160,7 +160,14 @@ function RouteComponent() { - {thread.name} + + {thread.name} + {thread.shortId != null && ( + + #{thread.shortId} + + )} + diff --git a/apps/web/src/routes/app/_workspace/_main/threads/index.tsx b/apps/web/src/routes/app/_workspace/_main/threads/index.tsx index e0615298..721e6501 100644 --- a/apps/web/src/routes/app/_workspace/_main/threads/index.tsx +++ b/apps/web/src/routes/app/_workspace/_main/threads/index.tsx @@ -347,6 +347,11 @@ export function ThreadsList({ fixedFilters = {}, subTitle }: ThreadsListProps) { >
+ {thread?.shortId != null && ( + + #{thread.shortId} + + )}