Skip to content

53 implement kifizetési időpontok page with dynamic payload cms data#67

Merged
peterlipt merged 5 commits intomainfrom
53-implement-kifizetési-időpontok-page-with-dynamic-payload-cms-data
Feb 22, 2026

Hidden character warning

The head ref may contain hidden characters: "53-implement-kifizet\u00e9si-id\u0151pontok-page-with-dynamic-payload-cms-data"
Merged

53 implement kifizetési időpontok page with dynamic payload cms data#67
peterlipt merged 5 commits intomainfrom
53-implement-kifizetési-időpontok-page-with-dynamic-payload-cms-data

Conversation

@peterlipt
Copy link
Copy Markdown
Member

No description provided.

…h_hu`, and pre-fill default month values for both languages.
…dated navigation, and refined global layout.
…e` component and utilize it on the payout info page.
@peterlipt peterlipt requested a review from Copilot February 22, 2026 18:06
@peterlipt peterlipt self-assigned this Feb 22, 2026
@peterlipt peterlipt linked an issue Feb 22, 2026 that may be closed by this pull request
@vercel
Copy link
Copy Markdown

vercel Bot commented Feb 22, 2026

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

Project Deployment Actions Updated (UTC)
ehk Ready Ready Preview, Comment Feb 22, 2026 6:16pm

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 “Kifizetési időpontok / Payout dates” page backed by Payload CMS, including a new payout-periods collection with an “active period” concept and the necessary schema/migrations.

Changes:

  • Add PayoutPeriods collection (with hook to enforce a single active period) and register it in Payload config / generated types.
  • Add CMS query helper (getActivePayoutPeriod) and a new localized page rendering payout tables + static informational content.
  • Add DB migrations and i18n dictionary entries; add a navigation item pointing to the new page.

Reviewed changes

Copilot reviewed 13 out of 15 changed files in this pull request and generated 6 comments.

Show a summary per file
File Description
src/payload.config.ts Registers the new PayoutPeriods collection in Payload.
src/payload-types.ts Updates generated types to include payout-periods.
src/migrations/index.ts Registers new migrations in the migration list.
src/migrations/20260210_212659_add_payout_periods.ts Creates payout period tables + relation column; rollback logic needs fixes.
src/migrations/20260210_212659_add_payout_periods.json Generated schema snapshot for the above migration.
src/migrations/20260210_215940_add_payout_periods_and_months.ts Renames monthmonth_hu and adds month_en; rollback logic needs fixes.
src/migrations/20260210_215940_add_payout_periods_and_months.json Generated schema snapshot for the above migration.
src/lib/payload-cms.ts Adds getActivePayoutPeriod() helper for the new page.
src/dictionaries/hu.json Adds Hungarian strings for the payout page (contains a small typo).
src/dictionaries/en.json Adds English strings for the payout page.
src/collections/PayoutPeriods.ts Introduces the payout-periods collection + hook to deactivate other active docs.
src/app/(app)/components/navigation-items.ts Adds a nav item for the payout page.
src/app/(app)/[lang]/layout.tsx Wraps Navbar+children in a flex container (layout structure change).
src/app/(app)/[lang]/kifizetesi-idopontok/page.tsx New payout info page fetching the active period and rendering content.
src/app/(app)/[lang]/kifizetesi-idopontok/components/PayoutTable.tsx New table component for rendering semester payout rows.

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

Comment thread src/migrations/20260210_215940_add_payout_periods_and_months.ts
Comment thread src/migrations/20260210_212659_add_payout_periods.ts
Comment thread src/collections/PayoutPeriods.ts
Comment on lines +24 to +33
<table className="w-full text-left text-lg">
<tbody className="divide-y">
{payouts?.map((payout, index) => (
<tr key={index} className="hover:bg-muted/50 transition-colors">
<td className="px-6 py-4 text-muted-foreground text-center font-medium">
{index + 1}.
</td>
<td className="px-6 py-4 font-medium capitalize">
{lang === "hu" ? payout.month_hu : payout.month_en}
</td>
Copy link

Copilot AI Feb 22, 2026

Choose a reason for hiding this comment

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

Using the array index as the React key can cause incorrect row reuse when items are inserted/reordered. The CMS array items include an id field (Payload typically provides it for array rows), so prefer a stable identifier for the row key (e.g., payout.id) with a fallback only if it’s missing.

Copilot uses AI. Check for mistakes.
Comment thread src/lib/payload-cms.ts
Comment thread src/dictionaries/hu.json Outdated
@peterlipt peterlipt merged commit 2b209d8 into main Feb 22, 2026
1 of 2 checks passed
@peterlipt peterlipt deleted the 53-implement-kifizetési-időpontok-page-with-dynamic-payload-cms-data branch February 22, 2026 18:14
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 "Kifizetési időpontok" Page with Dynamic Payload CMS Data

2 participants