Feature/60 implement klubok page with payload cms#69
Merged
Conversation
…, 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.
… club details with a separator.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this comment.
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
clubscollection to Payload config, generate types, and add migrations for the new table/fields. - Add a
getClubs()CMS helper and a new/kozelet/klubokpage 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.
src/app/(app)/[lang]/kozelet/klubok/components/ClubsEmptyState.tsx
Outdated
Show resolved
Hide resolved
…age population, and enhancing RichText type safety in club listings.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.