DennisSnijder

payload workflow

by DennisSnijder
Publishing workflow
v2
^2.0.0

Overview

Summary generated from the README

Adds a workflowStatus field to chosen collections and shows documents on a board with one column per status. Statuses, a default status and an optional column for documents without a status are configured per collection slug. The field is separate from Payload's draft and publish system, so any link to publishing must be built with hooks. Supports Payload 2.0 and up.

Features

  • Per-collection configurable list of workflow statuses with labels
  • Default status setting for new documents
  • Board view with a column for each status
  • Optional column for documents without a workflow status
  • Cards show the document title and creation date

Use cases

  • Track articles through draft, in progress, review and published stages
  • Give editorial teams a visual overview of where each document stands

From the author

A workflow plugin for Payload CMS

Installation

npm i payload-workflow

110

Stars

2

Forks

5

Open Issues

2 years ago

Last Updated

39

Weekly Downloads

v0.4.0

npm Version

213.7 KB

Unpacked Size

2

Dependencies

GitHub stars

110+2 since Sep 6

Show data
GitHub stars by day (UTC)
DateStars
Dec 5, 2026110
Dec 4, 2026110
Dec 3, 2026110
Dec 2, 2026110
Dec 1, 2026110
Nov 30, 2026110
Nov 29, 2026110
Nov 28, 2026110
Nov 27, 2026110
Nov 26, 2026110
Nov 25, 2026110
Nov 24, 2026110
Nov 23, 2026109
Nov 22, 2026109
Nov 21, 2026109
Nov 20, 2026109
Nov 19, 2026109
Nov 18, 2026109
Nov 17, 2026109
Nov 16, 2026109
Nov 15, 2026109
Nov 14, 2026109
Nov 13, 2026109
Nov 12, 2026109
Nov 11, 2026109
Nov 10, 2026109
Nov 9, 2026109
Nov 8, 2026109
Nov 7, 2026109
Nov 6, 2026109
Nov 5, 2026109
Nov 4, 2026109
Nov 3, 2026109
Nov 2, 2026109
Nov 1, 2026109
Oct 31, 2026109
Oct 30, 2026109
Oct 29, 2026109
Oct 28, 2026109
Oct 27, 2026109
Oct 26, 2026109
Oct 25, 2026109
Oct 24, 2026109
Oct 23, 2026109
Oct 22, 2026109
Oct 21, 2026109
Oct 20, 2026109
Oct 19, 2026109
Oct 18, 2026109
Oct 17, 2026109
Oct 16, 2026109
Oct 15, 2026109
Oct 14, 2026109
Oct 13, 2026109
Oct 12, 2026109
Oct 11, 2026109
Oct 10, 2026109
Oct 9, 2026109
Oct 8, 2026109
Oct 7, 2026109
Oct 6, 2026109
Oct 5, 2026108
Oct 4, 2026108
Oct 3, 2026108
Oct 2, 2026108
Oct 1, 2026108
Sep 30, 2026108
Sep 29, 2026108
Sep 28, 2026108
Sep 27, 2026108
Sep 26, 2026108
Sep 25, 2026108
Sep 24, 2026108
Sep 23, 2026108
Sep 22, 2026108
Sep 21, 2026108
Sep 20, 2026108
Sep 19, 2026108
Sep 18, 2026108
Sep 17, 2026108
Sep 16, 2026108
Sep 15, 2026108
Sep 14, 2026108
Sep 13, 2026108
Sep 12, 2026108
Sep 11, 2026108
Sep 10, 2026108
Sep 9, 2026108
Sep 8, 2026108
Sep 7, 2026108
Sep 6, 2026108
npm weekly downloads

36+31 since Sep 6

Show data
npm weekly downloads by day (UTC)
DateWeekly downloads
Dec 5, 202636
Dec 4, 202621
Dec 3, 202618
Dec 2, 202621
Dec 1, 202625
Nov 30, 202622
Nov 29, 202626
Nov 28, 202626
Nov 27, 202626
Nov 26, 202627
Nov 25, 202632
Nov 24, 202628
Nov 23, 202628
Nov 22, 202622
Nov 21, 202634
Nov 20, 202632
Nov 19, 202632
Nov 18, 202631
Nov 17, 202632
Nov 16, 202642
Nov 15, 202640
Nov 14, 202627
Nov 13, 202632
Nov 12, 202645
Nov 11, 202652
Nov 10, 202658
Nov 9, 202649
Nov 8, 202652
Nov 7, 202668
Nov 6, 202664
Nov 5, 202650
Nov 4, 202639
Nov 3, 202634
Nov 2, 202633
Nov 1, 202632
Oct 31, 202613
Oct 30, 202611
Oct 29, 20269
Oct 28, 20266
Oct 27, 20265
Oct 26, 20265
Oct 25, 20265
Oct 24, 20268
Oct 23, 20268
Oct 22, 202620
Oct 21, 202622
Oct 20, 202621
Oct 19, 202619
Oct 18, 202619
Oct 17, 202618
Oct 16, 202618
Oct 15, 202610
Oct 14, 202611
Oct 13, 202611
Oct 12, 202611
Oct 11, 202610
Oct 10, 20268
Oct 9, 202611
Oct 8, 20268
Oct 7, 20266
Oct 6, 20266
Oct 5, 20266
Oct 4, 20267
Oct 3, 20269
Oct 2, 20268
Oct 1, 20267
Sep 30, 20266
Sep 29, 202613
Sep 28, 202613
Sep 27, 202612
Sep 26, 202615
Sep 25, 202614
Sep 24, 202614
Sep 23, 202615
Sep 22, 202616
Sep 21, 202617
Sep 20, 202617
Sep 19, 202612
Sep 18, 202611
Sep 17, 202614
Sep 16, 202614
Sep 15, 20266
Sep 14, 20268
Sep 13, 20268
Sep 12, 20268
Sep 11, 20269
Sep 10, 20266
Sep 9, 20266
Sep 8, 20266
Sep 7, 20266
Sep 6, 20265

Each point is npm's rolling 7-day download count.

Health Score

39/100Fair

Composite score based on GitHub activity, stars, npm downloads, publish recency, dependency count, and package size.

Badge for your README

Payload Directory health badge
Markdown
[![Payload Directory](https://payloaddirectory.dev/badge/660795685-root.svg)](https://payloaddirectory.dev/plugins/660795685-root)
HTML
<a href="https://payloaddirectory.dev/plugins/660795685-root"><img src="https://payloaddirectory.dev/badge/660795685-root.svg" alt="Payload Directory"></a>
Updated Mar 5, 2024Created Jun 30, 2023Published Jan 6, 2024

README

Payload workflow plugin

Note This plugin is currently under active development and still in an early stage. Check the roadmap below in this readme for more details / upcoming features.

Shows an image illustrating the payload-workflow plugin

Installation

The most recent version of payload-workflow currently only supports Payload 2.0 and up. For older payload versions, please use [email protected]

$ yarn add payload-workflow

Basic usage

import { payloadWorkflow } from 'payload-workflow';

const config = buildConfig({
  collections: [ ... ],
  plugins: [
    payloadWorkflow({
      'my-collection-slug': {
        statuses: [
          {value: 'draft', label: 'Draft'},
          {value: 'in-progress', label: 'In Progress'},
          {value: 'ready-for-review', label: 'Ready for review'},
          {value: 'published', label: 'Published'},
        ],
        defaultStatus: 'draft',
        hideNoStatusColumn: false
      }
    })
  ],
});

Differences with the draft/publish system of Payload.

The workflow plugin introduces a new field called workflowStatus. This field does not interact with the draft/publish system of Payload.

You can "integrate" the workflow status with the draft/publish system of Payload yourself by using Payloads hooks.

For example: Automatically publish the document when the workflowStatus has been changed to published.

Roadmap

Upcoming Features / Ideas. Have a suggestion for the plugin? Feel free to open an issue or contribute!
  • Payload 2.0 support
  • Customize card properties (currently displays title and createdAt)
  • Edit relationships directly from the card (e.g., assigning users to a document)
  • Toggleable column for posts without a workflow status (Currently, documents lacking workflowStatus aren't visible on the board)
  • Lazy loading of column contents when scrolling (Currently, board only shows defaultLimit amount of cards)
  • Permissions for changing statuses
  • Allowed transitions between statuses
  • Integration with the draft/publish system of Payload (?)

Similar plugins