Skip to content

Add Feed page to spaces with post creation - #21

Merged
KallynGowdy merged 2 commits into
devfrom
claude/gifted-mayer-wyvpmy
Sep 16, 2026
Merged

KallynGowdy merged 2 commits into
devfrom
claude/gifted-mayer-wyvpmy

Conversation

@KallynGowdy

Copy link
Copy Markdown
Contributor

Description

This PR adds a new Feed page to spaces, allowing users to view and create posts within a space context. The feed displays posts from all rooms within the space hierarchy and includes a floating action button to create new posts.

Changes:

  • New SpaceFeed component (src/app/pages/client/space/Feed.tsx): A new page component that displays a feed of posts from all rooms in a space, with a "Share" button (FAB) to create new posts
  • Feed styling (src/app/pages/client/space/Feed.css.ts): Styles for the floating action button positioned in the bottom-right corner
  • Space navigation integration (src/app/pages/client/space/Space.tsx): Added a "Feed" nav item to the space sidebar that links to the new feed page
  • Feed rooms hook (src/app/features/feed/useFeedRooms.ts): New useSpaceFeedRooms hook that retrieves all rooms within a space hierarchy for feed display
  • Router updates (src/app/pages/Router.tsx, src/app/pages/paths.ts, src/app/pages/pathUtils.ts): Added routing support for the space feed page with path /space/:spaceIdOrAlias/feed
  • Route selection hook (src/app/hooks/router/useSelectedSpace.ts): New useSpaceFeedSelected hook to detect when the feed page is active
  • Module exports (src/app/pages/client/space/index.ts): Exported the new SpaceFeed component

The implementation follows existing patterns in the codebase for space pages (similar to SpaceSearch and SpaceLobby) and reuses the existing Feed component infrastructure.

Fixes #

Checklist:

https://claude.ai/code/session_01Vz3XwBGSj72K2VdWdeupDt

Adds a Feed nav entry and route for each space, mirroring the existing
Home feed but restricted to posts from rooms attached to that space
(recursively, excluding nested DMs), via useSpaceFeedRooms.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Vz3XwBGSj72K2VdWdeupDt
Covers getAllParents/mapParentWithChildren (the pure functions that
resolve a room's ancestor spaces, including through nested sub-spaces,
which useSpaceFeedRooms relies on to scope posts to a space) and the
new getSpaceFeedPath route helper.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Vz3XwBGSj72K2VdWdeupDt
@KallynGowdy
KallynGowdy merged commit e16af32 into dev Sep 16, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants