SSWConsulting / SSW.Rules

Generator for ssw.com.au/rules
https://www.ssw.com.au/rules
MIT License
11 stars 12 forks source link

👀 Investigate - Move to TinaCMS #1338

Open JackDevAU opened 1 month ago

JackDevAU commented 1 month ago

CC @bradystroud @adamcogan @wicksipedia

Hi Team,

We are looking to move from DecapCMS to TinaCMS but, we need to investigate if we can move with Gatsby or if it will be less work to start fresh with Next.js.

Tasks

Aibono1225 commented 1 month ago

Update 03/06/2024:

Investigate how we can manage images

Based on Tina's doc, I've set up a separate content repo to test image handling functionality. The results show that images stored in a public folder within a separate repo can be successfully managed by TinaCMS.

Therefore, to move to Tina, we might need to run a script to:

Also, we might consider adding a feature to TinaCMS that automatically updates the images folder name when a rule folder name is changed.

Aibono1225 commented 1 month ago

Additionally, the current implementation of Rules use gatsby-remark-custom-blocks and gatsby-remark-fenced-divs to generate styled blocks such as email templates and good/bad examples.

Once we move to TinaCMS, we will need to handle these block manually, which means transforming all .md files to .mdx to use custom components.

JackDevAU commented 3 weeks ago

Update:

Investigate and list all components that are needed to migrate

We have 9 components that are used and 1 that I don't think needs to be migrated.

To migrate:

We will also need to migrate the Frontmatter as the current fields can be improved now that we know what we need.

Shouldn't be migrated: