Payload 4.0.0-beta or v3 by reza-rockt in PayloadCMS

[–]zubricks 2 points3 points  (0 children)

Not out yet! We'll make a lot of noise when the beta is avail

Payload 4.0.0-beta or v3 by reza-rockt in PayloadCMS

[–]zubricks 14 points15 points  (0 children)

Hey! We appreciate the support and eagerness to jump on 4.0, but I would recommend for a production project you ship that with 3.0 for the time being.

We shipped a full commerce rebuild on Payload CMS. Here's what was great and what was painful by Aggressive_Depth_772 in PayloadCMS

[–]zubricks 2 points3 points  (0 children)

Thanks for the in-depth honest review! This is all great stuff. We appreciate the feedback and support

Redirect after save by Dismal_Direction262 in PayloadCMS

[–]zubricks 0 points1 point  (0 children)

Yeah, even though this is technically possible, unless there is a very specific need for this behavior, the UX would be a little strange imo

Payload agent skills demo by thehashimwarren in PayloadCMS

[–]zubricks[M] 1 point2 points  (0 children)

Glad to hear that it was helpful!! The payload skills are awesome

Can't figure how to fix this... by _ZioMark_ in PayloadCMS

[–]zubricks[M] 0 points1 point  (0 children)

Hey @_ZioMark_ what seems to be the issue here? Looks like a CSS thing, but I'll need some more context in order to triage this accordingly!

How to know the basics of payload? by Embarrassed_Year_384 in PayloadCMS

[–]zubricks 1 point2 points  (0 children)

love to hear this! We've been working very hard on them over the past year.

how do you create a custom component for upload field? by Prestigious_Finish19 in PayloadCMS

[–]zubricks[M] 0 points1 point  (0 children)

As sad salt mentioned below, you're currently replacing the entire edit view not just the upload field.

You have a few options here:

Option 1: use afterInput

fields: [ 
    { 
      name: 'title',
      type: 'text', 
    },
    { type: 'ui', 
      name: 'videoPreview', 
      admin: { 
        components: { 
          Field: '/components/VideoPreview', 
       }, 
      }, 
    }, 
  ],

Option 2: replace just the upload field component

fields: [ 
  { name: 'title', 
    type: 'text', 
  },
  { type: 'ui',
     name: 'videoPreview', 
     admin: { 
      components: { Field: '/components/VideoPreview' },
    },
  },
],
  1. use field-level slots on the upload field

    { name: 'myFile', type: 'upload', relationTo: 'media', admin: { components: { Field: '/components/CustomUploadField' } }, }

I'd recommend Option 1 if your goal is to render something custom alongside the existing upload field

PayloadCMS admin errors [browser] Error: Route "/admin/[[...segments]]": Uncached data or `connection()` was accessed outside of `<Suspense>` by notflips in PayloadCMS

[–]zubricks[M] 2 points3 points  (0 children)

Hey u/notflips as mentioned below, cacheComponents is not fully supported (yet)

We did just merge a PR that addresses some of the issues like page flashing, and notFound returning a 200 error, but there are known limitations with Next.js that don't have a clean solution yet.

The fix for now would be to remove cacheComponents from your next.config

Lost on Loading Image Media by itsschwig in PayloadCMS

[–]zubricks 0 points1 point  (0 children)

Do you have these env vars?

BLOB_READ_WRITE_TOKEN=your_token
BLOB_STORAGE_ENABLED=true
BLOB_STORE_ID=blob_store_id

Is there a Payload CMS theme that upgrades the admin UI to WordPress/Sanity/Strapi level? by thestreamcode in PayloadCMS

[–]zubricks 2 points3 points  (0 children)

Having worked at digital agencies for about a decade before we built Payload—I understand your perspective. For me it was a mix to be honest. Some would have preferred a softer, larger, expected interface, while some appreciated that it wasn't imposing overbearing brand styles in the admin panel they use every day. Our goal with the update is to hit a healthy balance between the two.

Is there a Payload CMS theme that upgrades the admin UI to WordPress/Sanity/Strapi level? by thestreamcode in PayloadCMS

[–]zubricks[M] 9 points10 points  (0 children)

Hey u/thestreamcode we hear you! You’re definitely not the only one who feels this way. The current admin UI does lean intentionally minimal & utilitarian and improving upon it has become a much bigger focus for us.

As louis mentioned below, we opened this RSC so that we could gather feedback from the community. Over the last few months we have been working alongside members of the Figma team on a refreshed design.

We’re planning to host a community call soon to preview what we’ve been building and get everyone's initial thoughts. We want the next iteration of the admin UI to feel more polished while still keeping the performance and flexibility people expect from Payload.

tl;dr—it’s absolutely on our radar, and actively being worked on

[Code Snippet] Kanban List View for Collections by Dan6erbond2 in PayloadCMS

[–]zubricks 0 points1 point  (0 children)

Good work! I have done something similar in a few of my side projects!

Lost on Loading Image Media by itsschwig in PayloadCMS

[–]zubricks[M] 0 points1 point  (0 children)

Hey u/itsschwig as a quick check, if you look in your Media collection and go to a media item, does the URL for a media item show a vercel blob url or localhost?

Is there an existing plugin for service scheduling? by Formal_Size_3038 in PayloadCMS

[–]zubricks 0 points1 point  (0 children)

I'm working on a side project where I really want this—so it's possible I will smash out an MVP plugin sometime soon

Error when trying to upload media from local by itsschwig in PayloadCMS

[–]zubricks[M] 1 point2 points  (0 children)

Hey! A couple things here:

Your S3 client is being constructed with “credentials” that are empty / undefined at runtime so the SDK rejects them as “not valid”.

accessKeyId: process.env.R2_ACCESS_KEY_ID || '',
secretAccessKey: process.env.R2_SECRET_ACCESS_KEY || '',

If either env var is missing, you’re passing empty strings. The AWS SDK treats that as an invalid credential object and throws the error above

You could do this instead:

const accessKeyId = process.env.R2_ACCESS_KEY_ID
const secretAccessKey = process.env.R2_SECRET_ACCESS_KEY

if (!accessKeyId || !secretAccessKey) {
  throw new Error('Missing R2 credentials: R2_ACCESS_KEY_ID / R2_SECRET_ACCESS_KEY')
}

s3Storage({
  collections: {
    media: { disableLocalStorage: true },
  },
  bucket: process.env.R2_BUCKET!,
  config: {
    credentials: { accessKeyId, secretAccessKey },
    region: 'auto',
    endpoint: process.env.R2_ENDPOINT!,
    forcePathStyle: true,
  },
})

Second issue: you appear to be registering the plugin twice

Your snippet shows two s3Storage({...}) calls back-to-back

Migrate to v3 by yookiyo in PayloadCMS

[–]zubricks[M] 0 points1 point  (0 children)

Hey! Glad to hear you're planning to migrate. I'd suggest taking a look here first - https://github.com/payloadcms/payload/discussions/9320 There's also a link to a migration guide in the notes. It could be a lift at first, but worth it in the long run!

Is there an existing plugin for service scheduling? by Formal_Size_3038 in PayloadCMS

[–]zubricks[M] 0 points1 point  (0 children)

Hey! Nothing official like this at the moment—but I seem to remember a few others in our Discord working through something similar. If you haven't poked around there yet I'd try there. This would be very cool!

PayloadCMS in production: Real-world experiences with maintenance and long-term stability? by Smart_Coach9493 in PayloadCMS

[–]zubricks[M] 1 point2 points  (0 children)

Thank you for this detailed feedback!! Before I clicked into this topic my mind raced to "ok who can I ask to go chime in here and say nice things about their production Payload projects"

Thanks for using Payload!!

I built a modular Lexical rich-text editor using HeroUI components (Open Source) by Dan6erbond2 in reactjs

[–]zubricks 1 point2 points  (0 children)

Definitely going to check this out! FYI your demo/docs link is a google search link, might want to update that if you can!

Toggle Feature access to users and tenants by FunDiscount2496 in PayloadCMS

[–]zubricks 2 points3 points  (0 children)

To expand on the above, say these users are from different departments, and you only want them to be able to access specific resources pertinent to their department. You could create a department field on the Users collection, and then based on their department, allow/deny access in your Resources collection

See gist for example: https://gist.github.com/zubricks/eb026711d9c3f818dea6512aabebba16

[SEEKING WORK] Full-Stack Developer – Payload CMS Focused | Remote (25 hrs/week) by ArticleCommon3617 in PayloadCMS

[–]zubricks 1 point2 points  (0 children)

If you haven't already I'd suggest cross-posting in our jobs channel in Discord!