Skip to content

Add admin visibility controls for home Calendar and News - #103

Merged
InnerDesires merged 3 commits into
mainfrom
codex/home-section-visibility
Oct 20, 2026
Merged

InnerDesires merged 3 commits into
mainfrom
codex/home-section-visibility

Conversation

@InnerDesires

Copy link
Copy Markdown
Owner

Admins can now independently hide the Calendar and News sections on the main page under Глобальні → Головна сторінка. Both sections remain visible by default, and the settings apply to Ukrainian and English without deleting content.

The page removes the shared container when both sections are hidden and adjusts spacing when only Calendar is visible. Saving settings invalidates the homepage settings cache. Includes admin-only update access, generated Payload types, a production database migration, and a browser regression test.

Validation:

  • pnpm exec tsc --noEmit and pnpm lint passed.
  • Playwright passed all four saved visibility combinations in Ukrainian and English at desktop and mobile sizes against an isolated Neon branch.
  • Verified settings persist after admin reload, anonymous updates return 403, and hiding both removes the empty container.
  • Captured and visually reviewed screenshots of the admin controls and all four desktop states; also captured English and mobile variants.

@vercel

vercel Bot commented Oct 20, 2026 •

Copy link
Copy Markdown

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

1 Skipped Deployment
Project Deployment Actions Updated
learning-platform Ignored Ignored Preview Oct 20, 2026 7:42am UTC

@github-actions

github-actions Bot commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

Playwright Report

✅ E2E passed — job logs (run attempt 1)

@InnerDesires
InnerDesires merged commit 9d0a3c7 into main Oct 20, 2026
5 checks passed
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.

1 participant