getgrav / getgrav/grav-plugin-admin

Feature Request: Add support for "Draft" status visual indicator in Pages list

Open
#2,512 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
PHP
Stars
377
Forks
225
Avg merge
11h 51m
Merged PRs (30d)
4

Description

Description
Currently, the admin interface only visually distinguishes between published: true (green) and published: false (red/grey). However, many users use a draft: true metadata or header property to keep a page published (for preview purposes) but marked as "in progress". It would be very helpful to have a distinct visual indicator (e.g., an orange badge) for this state.

Proposed Solution
Add a native "Draft" state recognition in the Pages list. If a page has draft: true in its frontmatter:

The status badge should turn orange instead of green.

This should work even if published is set to true (allowing for live previews while clearly signaling the draft status to editors).

Why this is useful
For blogs and long-form essays, writers often need to preview their work in the live theme without it being considered "final". The current binary color system makes it hard to distinguish at a glance which pages are truly finished and which ones are still being polished.

Additional context
This could be implemented by checking for a draft property in the page header and adding a .status-draft class to the row in the admin list.

Contributor guide

Open the contributing guide

Research direction

Start by locating the admin Pages list rendering for the published status badge and the page-header parsing that exposes frontmatter values. Verify the existing published and unpublished indicators, then confirm that draft: true produces an orange draft indicator even when published: true, while other statuses remain unchanged.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
frontend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
65/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.