Skip to content

Navigation and site settings#296

Merged
hakalb merged 9 commits intomainfrom
cod-256-globals
Apr 2, 2025
Merged

Navigation and site settings#296
hakalb merged 9 commits intomainfrom
cod-256-globals

Conversation

@hakalb
Copy link
Copy Markdown
Member

@hakalb hakalb commented Apr 1, 2025

Closes COD-300, COD-301, COD-302, COD-304, COD-306, COD-307, COD-308

Copilot AI review requested due to automatic review settings April 1, 2025 21:43
@bolt-new-by-stackblitz
Copy link
Copy Markdown

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@hakalb hakalb self-assigned this Apr 1, 2025
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR integrates a new navigation collection and site settings functionality while updating several UI components and database migrations to leverage a unified navigation tree. Key changes include:

  • Replacing the legacy pages filtering with a navigationTree API in navigation components.
  • Integrating new collections (navigation and site-settings) and their corresponding migrations.
  • Updating admin groups and utility imports across various collections and components.

Reviewed Changes

Copilot reviewed 43 out of 43 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
apps/web/app/components/render-pages-doc.tsx New component to render pages documents based on navigation doc.
apps/web/app/components/mobile-navigation.tsx Updated to use navigationTree instead of pages filtering.
apps/web/app/components/footer.tsx Refactored to use navigationTree and conditional rendering when empty.
apps/web/app/components/desktop-navigation.tsx Replaced pages filtering with navigationTree usage.
apps/cms/src/payload.config.ts Fixed typo in getPlugins and added navigation/site-settings collections.
apps/cms/src/migrations/* Added new migration for navigation and site-settings with updated constraints and indices.
apps/cms/src/components/ArrayRowLabel Introduced custom array row label types for tenants and navigation.
apps/cms/src/collections/* Updated admin groups and fixed component references for row labels.
apps/cms/src/app/(payload)/admin/importMap.js Updated import mappings for the new row label components.
Comments suppressed due to low confidence (1)

apps/cms/src/components/NavigationArrayRowLabel.tsx:10

  • React components should not be declared as async because they need to return React elements synchronously. Consider removing the async keyword and refactoring any asynchronous operations to use appropriate React hooks.
export const NavigationArrayRowLabel: React.FC<ArrayRowLabel> = async (props) => {

Comment thread apps/cms/src/components/TenantsArrayRowLabel.tsx
@nx-cloud
Copy link
Copy Markdown

nx-cloud Bot commented Apr 1, 2025

View your CI Pipeline Execution ↗ for commit 29932dd.

Command Status Duration Result
nx e2e nx-payload-e2e -c quick ✅ Succeeded 11m 4s View ↗
nx e2e nx-payload-e2e -c skip-docker ✅ Succeeded 8m 50s View ↗

☁️ Nx Cloud last updated this comment at 2025-04-02 11:58:40 UTC

@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 1, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 81.09%. Comparing base (b61c236) to head (29932dd).
Report is 9 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #296   +/-   ##
=======================================
  Coverage   81.09%   81.09%           
=======================================
  Files          63       63           
  Lines        1074     1074           
  Branches      216      216           
=======================================
  Hits          871      871           
  Misses        203      203           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@codeware-actions
Copy link
Copy Markdown

✨ Your pull request projects are ready for preview

Project App name Preview
cms cdwr-cms-pr-296 https://cdwr-cms-pr-296.fly.dev
web cdwr-web-pr-296 https://cdwr-web-pr-296.fly.dev

@codeware-actions
Copy link
Copy Markdown

✨ Your pull request projects are ready for preview

Project App name Preview
cms cdwr-cms-pr-296 https://cdwr-cms-pr-296.fly.dev
web cdwr-web-pr-296 https://cdwr-web-pr-296.fly.dev

@codeware-actions
Copy link
Copy Markdown

✨ Your pull request projects are ready for preview

Project App name Preview
cms cdwr-cms-pr-296 https://cdwr-cms-pr-296.fly.dev
web cdwr-web-pr-296 https://cdwr-web-pr-296.fly.dev

@hakalb hakalb added this pull request to the merge queue Apr 2, 2025
Merged via the queue into main with commit d1b45e8 Apr 2, 2025
17 checks passed
@hakalb hakalb deleted the cod-256-globals branch April 2, 2025 12:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants