Skip to content

Upgrade to payload v3.58.0 & add view doc button - #571

Merged
rchlfryn merged 9 commits into
mainfrom
ugrade-payload
Oct 9, 2025
Merged

rchlfryn merged 9 commits into
mainfrom
ugrade-payload

Conversation

@rchlfryn

@rchlfryn rchlfryn commented Oct 2, 2025 •

Copy link
Copy Markdown
Collaborator

Description

  • Upgrade payload to 3.58.0 (no major changes in release notes)
  • Add view page/post button that links to published version
Screenshot 2025-10-02 at 16 24 06
  • Re-addes padding to bottom of posts before related posts

Issues

Resolves #339
Resolves #382
Resolves #565

@github-actions

github-actions Bot commented Oct 2, 2025

Copy link
Copy Markdown
Contributor

})
const page = pageRes.docs[0]
const pageTenant = await resolveTenant(page.tenant)
const canonicalUrl = (await getCanonicalUrlForSlug(pageTenant.slug, page.slug)) || ''

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

In the case where the await doesn't throw, why can we get an empty result and have to || ''? Will a ViewDocumentButton with an empty URI go to some nice 404/oops page?

@rchlfryn rchlfryn Oct 3, 2025 •

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Good call - I was just trying to please the linter. I changed it to return null ifcanonicalUrl is empty

@busbyk busbyk left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Comment thread src/components/Footer/Footer.tsx Resolved
@rchlfryn

rchlfryn commented Oct 7, 2025 •

Copy link
Copy Markdown
Collaborator Author

@busbyk Great call on the preview mode.. I added the same code Exit preview mode is using. Let me know if you had something else in mind

Base automatically changed from migrate-off-multi-tenant to main October 7, 2025 22:51
@busbyk

busbyk commented Oct 9, 2025

Copy link
Copy Markdown
Collaborator

Not sure when this changed but the standalone-seed script now needs an await (see this change I had to make in the migration safety PR: https://github.com/NWACus/web/pull/584/files#diff-ca970e298417e124a0a6cd435bf4192e84284997ea7cb6c3d6130cb6166b5954). This preview env doesn't have any seed data - the seed script doesn't run now. Maybe due to our last Payload version bump and we just never noticed?

Want to add that here so other PRs that have to merge this change in will get seed data?

@rchlfryn
rchlfryn added this pull request to the merge queue Oct 9, 2025
Merged via the queue into main with commit a8818c6 Oct 9, 2025
@rchlfryn
rchlfryn deleted the ugrade-payload branch October 9, 2025 18:35

This branch was previously deployed

1 inactive deployment
Preview — e441bd07 Deployed Oct 9, 2025 by rchlfryn
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.

Padding at the bottom of Post pages look a little tight Link to live page in document view Published At issues for pages and posts

3 participants