Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

fix(today): point an empty space feed to the composer like desktop (#109857)

Shy Altereb458d083287
diff --git a/products/tasks/frontend/spaces/SpaceFeed.tsx b/products/tasks/frontend/spaces/SpaceFeed.tsx
index fcb607be9d07..04ca2959ea9e 100644
--- a/products/tasks/frontend/spaces/SpaceFeed.tsx
+++ b/products/tasks/frontend/spaces/SpaceFeed.tsx
@@ -21,7 +21,11 @@ const EMPTY_NOUNS: Record<SpaceFeedType, string> = { task: 'sessions', canvas: '
function emptyNote(types: SpaceFeedType[]): string {
const nouns = SPACE_FEED_TYPES.filter(({ value }) => types.includes(value)).map(({ value }) => EMPTY_NOUNS[value])
const last = nouns.pop()
- return `No ${nouns.length ? `${nouns.join(', ')} or ${last}` : last} in this space yet.`
+ const note = `No ${nouns.length ? `${nouns.join(', ')} or ${last}` : last} in this space yet.`
+ if (!types.includes('task')) {
+ return note
+ }
+ return `${note} ${nouns.length ? 'Start a session' : 'Start one'} from the composer above.`
}
export function SpaceFeed({ id }: { id: string }): JSX.Element {
@@ -84,7 +88,7 @@ export function SpaceFeed({ id }: { id: string }): JSX.Element {
)}
{feedPending && <SpaceFeedSkeleton listRows={listRows} />}
{feedEmpty && (
- <div className="flex flex-col items-start gap-2 px-2 pt-6">
+ <div className="flex flex-col items-center gap-2 px-2 py-6 text-center">
<Text size="sm" variant="muted">
{filtersActive ? 'Nothing here matches these filters.' : emptyNote(emptyTypes)}
</Text>