Skip to content

chore: support grouped collections on project home#944

Merged
stevenle merged 2 commits intomainfrom
codex/update-collection-list-for-groups
Mar 3, 2026
Merged

chore: support grouped collections on project home#944
stevenle merged 2 commits intomainfrom
codex/update-collection-list-for-groups

Conversation

@stevenle
Copy link
Member

@stevenle stevenle commented Mar 2, 2026

Motivation

  • Ensure the project home page supports grouped collection hierarchies the same way the collection list page does, so collections can be organized by group on the main Root CMS landing page.

Description

  • Replaced the manual card-based collection list in ProjectPage.CollectionList with the existing CollectionTree component to render groups and nested collections (packages/root-cms/ui/pages/ProjectPage/ProjectPage.tsx).
  • Pass window.__ROOT_CTX.collections and the current projectId into CollectionTree and removed the unused IconFolder import.
  • Simplified styles by removing the previous card-specific rules and adding a lightweight wrapper .ProjectPage__collectionTree { max-width: 580px; } (packages/root-cms/ui/pages/ProjectPage/ProjectPage.css).
  • Modified files: packages/root-cms/ui/pages/ProjectPage/ProjectPage.tsx, packages/root-cms/ui/pages/ProjectPage/ProjectPage.css.

Testing

  • Attempted to run the dev server with pnpm -C packages/root-cms dev, but the run failed due to a corepack/network error fetching pnpm (proxy HTTP tunneling 403), so runtime verification could not be completed.

Codex Task

@stevenle
Copy link
Member Author

stevenle commented Mar 3, 2026

surgical change to get the project page to group the collections properly.

before:
Screenshot 2026-03-02 at 6 36 26 PM

after:
Screenshot 2026-03-02 at 6 36 15 PM

primarily a style-only change so no review needed (will be updating this page to be more ai task oriented in the future)

@stevenle stevenle merged commit c640e76 into main Mar 3, 2026
1 check passed
@stevenle stevenle deleted the codex/update-collection-list-for-groups branch March 3, 2026 02:38
@stevenle stevenle changed the title feat(root-cms): support grouped collections on project home chore: support grouped collections on project home Mar 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant