Skip to content

Collection chapter backend fix#666

Open
nguyen-katie wants to merge 7 commits into
mainfrom
collection-chapter-backend-fix
Open

Collection chapter backend fix#666
nguyen-katie wants to merge 7 commits into
mainfrom
collection-chapter-backend-fix

Conversation

@nguyen-katie
Copy link
Copy Markdown
Collaborator

@nguyen-katie nguyen-katie commented Feb 20, 2026

This PR updates the CollectionChapter struct in which it differentiates between a page and a document. I updated the schema and the frontend now shows the correct chapters in the table of contents that can be published under. However, there is still no backend method for collections publishing yet that works similar to MenuUpdate, so the feature for collections is unfinished until then. I added to the alert for when someone wishes to change the location of a page in a collections that says the publishing feature is still in development, but I am happy to comment out the code again to cover up the feature for collections entirely.

image

@netlify
Copy link
Copy Markdown

netlify Bot commented Feb 20, 2026

Deploy Preview for dailp ready!

Name Link
🔨 Latest commit 8a2358c
🔍 Latest deploy log https://app.netlify.com/projects/dailp/deploys/69d8099d0a7d13000861de85
😎 Deploy Preview https://deploy-preview-666--dailp.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@nguyen-katie nguyen-katie linked an issue Feb 20, 2026 that may be closed by this pull request
@chullings chullings requested a review from nole2701 April 15, 2026 19:10
...(collectionSections ?? []),
...(collectionPageChapters?.map((ch) => ch.title) ?? []),
].map((item) => (
<option key={item} value={item}>
Copy link
Copy Markdown
Collaborator

@nole2701 nole2701 Apr 22, 2026

Choose a reason for hiding this comment

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

Would there be a way to distinguish between sections and chapter titles that have the same name when in the menu dropdown?

Copy link
Copy Markdown
Collaborator

@nole2701 nole2701 left a comment

Choose a reason for hiding this comment

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

Looks good just that one nitpick about duplicate names that might happen.

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.

Page publishing for collections

2 participants