Skip to content

Conversation

@ajolipa
Copy link
Contributor

@ajolipa ajolipa commented Jan 22, 2026

In this PR

  • Adds a publish flag to the posts model to optionally use a draft/published workflow where posts aren't shown on the frontend until they're marked publish;
  • Adds a categories list to the posts schema which is populated from a list of values set in the config.json file; when present it will add a dropdown menu to the posts page where viewers can select a category to filter by.
image

Notes

  • I was initially going to add this all to paths as well because why not, but it looks like paths hasn't yet been updated to the progressing loading thing, so it would be a few more steps to add the filtering and category stuff there.
  • I'm using the HeadlessUI ListBox component for the dropdown since as best I could tell we don't have a simple list select component built out in our react-components library, but it's definitely possible that I just missed something. In the future if we do add such a component to the library, this should probably be updated to use it.

@netlify
Copy link

netlify bot commented Jan 22, 2026

👷 Deploy Preview for padp-staging processing.

Name Link
🔨 Latest commit bd548c9
🔍 Latest deploy log https://app.netlify.com/projects/padp-staging/deploys/6977c5ae1c44200007f7dce8

@netlify
Copy link

netlify bot commented Jan 22, 2026

Deploy Preview for pss-scavenger-hunt ready!

Name Link
🔨 Latest commit bd548c9
🔍 Latest deploy log https://app.netlify.com/projects/pss-scavenger-hunt/deploys/6977c5aede472a00087a6a54
😎 Deploy Preview https://deploy-preview-433--pss-scavenger-hunt.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.

@netlify
Copy link

netlify bot commented Jan 22, 2026

Deploy Preview for gbof-c19nyc-staging ready!

Name Link
🔨 Latest commit bd548c9
🔍 Latest deploy log https://app.netlify.com/projects/gbof-c19nyc-staging/deploys/6977c5ae8261590008d62bf1
😎 Deploy Preview https://deploy-preview-433--gbof-c19nyc-staging.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.

@netlify
Copy link

netlify bot commented Jan 22, 2026

Deploy Preview for juel-staging ready!

Name Link
🔨 Latest commit bd548c9
🔍 Latest deploy log https://app.netlify.com/projects/juel-staging/deploys/6977c5ae67c514000831e51d
😎 Deploy Preview https://deploy-preview-433--juel-staging.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.

@netlify
Copy link

netlify bot commented Jan 22, 2026

Deploy Preview for universities-studying-slavery-staging ready!

Name Link
🔨 Latest commit bd548c9
🔍 Latest deploy log https://app.netlify.com/projects/universities-studying-slavery-staging/deploys/6977c5aeca5d1d0009fb4422
😎 Deploy Preview https://deploy-preview-433--universities-studying-slavery-staging.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.

@netlify
Copy link

netlify bot commented Jan 22, 2026

Deploy Preview for libertos ready!

Name Link
🔨 Latest commit bd548c9
🔍 Latest deploy log https://app.netlify.com/projects/libertos/deploys/6977c5ae39eb610008927bd3
😎 Deploy Preview https://deploy-preview-433--libertos.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.

@ajolipa ajolipa requested a review from dleadbetter January 22, 2026 20:13
This was linked to issues Jan 22, 2026
@dleadbetter dleadbetter added the next release Issues in the next release label Jan 23, 2026
@netlify
Copy link

netlify bot commented Jan 26, 2026

Deploy Preview for juel-ancestry ready!

Name Link
🔨 Latest commit bd548c9
🔍 Latest deploy log https://app.netlify.com/projects/juel-ancestry/deploys/6977c5aeecbb500008d24953
😎 Deploy Preview https://deploy-preview-433--juel-ancestry.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.

@netlify
Copy link

netlify bot commented Jan 26, 2026

Deploy Preview for juel-life ready!

Name Link
🔨 Latest commit bd548c9
🔍 Latest deploy log https://app.netlify.com/projects/juel-life/deploys/6977c5ae54e5b50008557e7f
😎 Deploy Preview https://deploy-preview-433--juel-life.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.

@netlify
Copy link

netlify bot commented Jan 26, 2026

Deploy Preview for registro-project failed. Why did it fail? →

Name Link
🔨 Latest commit bd548c9
🔍 Latest deploy log https://app.netlify.com/projects/registro-project/deploys/6977c5ae29e1370008b1b595

}
</div>
<div className='flex flex-col italic text-lg divide-y divide-secondary text-[#222222]'>
{ loading && <p className='not-italic text-base'>{t('loading') || 'Loading'}...</p>}
Copy link
Contributor

Choose a reason for hiding this comment

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

If the loading key is in the i18n.json file, I don't think we need the hard-coded "Loading" label here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh yeah good catch, this was an impatient step to test it out quickly which I never went back and fixed. Thanks!

className='hover:underline hover:font-semibold py-4 font-header'
href={getRelativeLocaleUrl(lang, `posts/${post._sys.filename}`)}
key={post._sys.filename}
href={getRelativeLocaleUrl(lang, `posts/${post?._sys?.filename}`)}
Copy link
Contributor

Choose a reason for hiding this comment

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

Interesting. Will the posts array ever contain null/undefined values?

)) }
</div>
{ cursor && (
{ showMore && !loading && (
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we also need to check for cursor here?

label: 'Localize Pages',
type: 'boolean'
}, {
name: 'posts_config',
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's document these changes in the README.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

next release Issues in the next release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Post categories published Tina field for posts

3 participants