SSWConsulting / SSWConsulting/SSW.Website

🦙Tina - enable draft mode for the website

Open
#2,893 0 comments 0 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.