SSWConsulting / SSWConsulting/SSW.Website
🦙Tina - enable draft mode for the website
Nobody has claimed this yet.
- Dominant language
- HTML
- Stars
- 14
- Forks
- 10
- Avg merge
- 13h 51m
- Merged PRs (30d)
- 38
Description
CC: @miichaelsmedley @wicksipedia, @uly1
❌ The pain
Marketing and management are unable to preview new content until a PR slot is deployed with their changes. This reduces the throughput of content being added to the site.
💡 The solution
@JackDevAU Tells me that Tina allows you to preview changes before adding a page, however you do need to enable draft mode in next JS. Harry started implementing draft mode before he left but the endpoint for enabling it is only a stub. https://github.com/SSWConsulting/SSW.Website/blob/main/app/api/enable-draft/route.ts
📒 Important note
We may need to migrate our content to use the app router before we can enable this feature.
- [ ] enable draft mode for Tina
- [ ] Configure tina fields to enable draft mode https://tina.io/docs/drafts/drafts-fields/
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with app/api/enable-draft/route.ts, which the issue identifies as the stub endpoint, then review Tina's draft fields documentation. Determine whether the content must migrate to the app router first. Done means Tina can preview draft content and the listed draft-mode tasks are configured.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- nextjs
- Domain
- content, web-dev
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100