Skip to content

Feature/60 implement klubok page with payload cms#69

Merged
peterlipt merged 5 commits intomainfrom
feature/60-implement-klubok-page-with-payload-cms
Mar 3, 2026
Merged

Feature/60 implement klubok page with payload cms#69
peterlipt merged 5 commits intomainfrom
feature/60-implement-klubok-page-with-payload-cms

Conversation

@peterlipt
Copy link
Copy Markdown
Member

No description provided.

…, location, opening hours, and image fields.
…ich text opening hours, and external link support.
…ng, and implement an early return for empty club results on the clubs page.
@peterlipt peterlipt requested a review from Copilot March 3, 2026 13:39
@peterlipt peterlipt self-assigned this Mar 3, 2026
@peterlipt peterlipt linked an issue Mar 3, 2026 that may be closed by this pull request
@vercel
Copy link
Copy Markdown

vercel bot commented Mar 3, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
ehk Ready Ready Preview, Comment Mar 3, 2026 3:00pm

Request Review

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 adds a new “Klubok / Clubs” page backed by a new Payload CMS clubs collection, along with DB migrations and i18n strings to support it.

Changes:

  • Add clubs collection to Payload config, generate types, and add migrations for the new table/fields.
  • Add a getClubs() CMS helper and a new /kozelet/klubok page rendering clubs (with image, richtext, opening hours, and optional external link).
  • Add HU/EN dictionary entries and update navigation to link to the new page.

Reviewed changes

Copilot reviewed 16 out of 20 changed files in this pull request and generated 11 comments.

Show a summary per file
File Description
src/payload.config.ts Registers Clubs collection; modifies Postgres adapter settings
src/payload-types.ts Generated types updated to include Club
src/migrations/index.ts Registers new clubs-related migrations
src/migrations/20260222_182719_clubs_collection.ts Creates initial clubs schema
src/migrations/20260222_195349_clubs_opening_hours_richtext.ts Changes opening hours to richtext JSONB fields
src/migrations/20260222_200022_add_link_to_clubs.ts Adds link column
src/migrations/20260222_201957_simplify_clubs_image.ts Switches from join table to single image_id FK
src/lib/payload-cms.ts Adds getClubs() fetch helper
src/dictionaries/hu.json / src/dictionaries/en.json Adds clubs page translations
src/components/common/EmptyState.tsx Adds iconClassName support for icon styling
src/collections/Clubs.ts Defines the Payload clubs collection fields
src/app/(app)/components/navigation-items.ts Fixes label and links to the new clubs route
src/app/(app)/[lang]/kozelet/klubok/page.tsx New clubs page rendering CMS data
src/app/(app)/[lang]/kozelet/klubok/components/ClubsEmptyState.tsx Empty state component for clubs page
next.config.ts Enables experimental.optimizePackageImports for lucide-react

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

…age population, and enhancing RichText type safety in club listings.
@peterlipt peterlipt merged commit 65b9a55 into main Mar 3, 2026
2 checks passed
@peterlipt peterlipt deleted the feature/60-implement-klubok-page-with-payload-cms branch March 3, 2026 15:00
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.

Implement "Klubok" Page with Payload CMS

2 participants