Skip to content

feat(cms): add public read access and draft mode support - #35

Open
jlorion wants to merge 1 commit into
mainfrom
15-cms-migrate-setup-cms-api-client-type-sync-draft-mode
Open

feat(cms): add public read access and draft mode support#35
jlorion wants to merge 1 commit into
mainfrom
15-cms-migrate-setup-cms-api-client-type-sync-draft-mode

Conversation

@jlorion

@jlorion jlorion commented Jul 27, 2026

Copy link
Copy Markdown
Member

📝 Overview

What does this PR do? Briefly describe the changes and the goal of this PR.

🚀 Type of Change

  • 🐛 Bug Fix: Fixed something that was broken.
  • New Feature: Added new functionality or pages.
  • 🗄️ CMS / Database: Updated collections, fields, or config in Payload CMS.
  • 🧹 Chore / Clean up: Text updates, typos, or code cleanup.

🧱 CMS & Database Changes

Skip this section if no CMS or database changes were made.

  • Migration Created: Ran payload migrate:create and saved the file.
  • Local Verification: Verified changes in the local admin panel.

📊 Data Structure

Describe the new fields/tables or drag-and-drop a screenshot here:


🧪 Testing & Validation

  • Test Case Approval: Verified that test cases were commented on the assigned GitHub issue and approved by the Project Lead before development started.
  • Unit Tests: Added or updated unit test scripts covering the new logic.
  • Admin Panel: Verified behavior in the CMS Admin UI.
  • API Check: Tested REST/GraphQL endpoints for correct data.

📸 Visual Evidence (Mandatory)

Important

Visual proof is required to demonstrate that the approved test cases from the issue were successfully met.
Please provide screenshots, screen recordings (GIFs/Videos), or sample API outputs proving that the feature satisfies all approved test cases and do not introduce regressions.

cms client
image
type sync
image
collection with draft
{DAF6804A-7EE3-4CC9-AAC6-2B46AE1E645B}
collection without draft
{4C9F49BF-83C8-48A3-B1A5-EF3BFCBAB5FD}


📋 Final Checklist

  • Sync: Rebased from main and resolved conflicts.
  • Pre-commit: Installed and ran pre-commit hooks successfully.
  • Security: Verified no secrets or local credentials are included.
  • Build: Project builds without errors.
  • Visuals: Attached mandatory visual evidence proving all test cases passed.
  • Migrations: Migration script included (if applicable).

🧠 Extra Notes / Questions

Add any additional context or questions for the reviewers here.

- add `anyone` access control function with draft-token bypass
  for unpublished/draft documents
- generate and wire up CMS_DRAFT_SECRET_TOKEN for draft mode auth
- add custom /durianpy-website-types endpoint to sync only
  relevant collection types to the website repo
@jlorion
jlorion requested a review from a team July 27, 2026 06:47
@jlorion jlorion linked an issue Jul 27, 2026 that may be closed by this pull request
@jlorion
jlorion requested review from ASPactores and seangaaab July 27, 2026 06:47
@jlorion jlorion self-assigned this Jul 27, 2026
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.

[CMS-MIGRATE]: Setup CMS API Client, Type Sync, & Draft Mode

1 participant