Plan›Backlog

plan

Backlog

Aggregation view of plan entities with filtering, sorting, and grouping

Install

  1. Add the package: npm install @refrakt-md/plan
  2. Add it to the plugins array in refrakt.config.json: "plugins": ["@refrakt-md/plan"]

About the plugin and its runes

Source

import Markdoc from '@markdoc/markdoc';
const { Tag } = Markdoc;
import {
	createContentModelSchema,
	createComponentRenderable,
	readDeferredBody,
	COLLECTION_SENTINEL,
} from '@refrakt-md/runes';

const SHOW_TO_TYPE: Record<string, string> = {
	all: 'work,bug',
	work: 'work',
	bug: 'bug',
	spec: 'spec',
	decision: 'decision',
	milestone: 'milestone',
};

const TYPE_FIELD: Record<string, string> = { work: 'priority', bug: 'severity' };

function cardBody(extraField?: string): string {
	const extra = extraField
		? ` {% if $item.data.${extraField} %}{% badge %}{% $item.data.${extraField} %}{% /badge %}{% /if %}`
		: '';
	return `{% card href=$item.url %}
{% bar %}
{% $item.identifier %}{% if $item.mixed %} {% badge type="category" %}{% humanize($item.type) %}{% /badge %}{% /if %}${extra}
---
{% badge type="status" sentiment=$item.sentiment %}{% $item.data.status %}{% /badge %}
{% /bar %}

#### {% $item.data.title %}
{% /card %}
`;
}

const DEFAULT_TABLE_BODY = `# Identifier
{% link href=$item.url %}{% $item.identifier %}{% /link %}
# Type
{% humanize($item.type) %}
# Status
{% badge type="status" sentiment=$item.sentiment %}{% $item.data.status %}{% /badge %}
# Title
{% $item.data.title %}
`;

export const backlog = createContentModelSchema({
	attributes: {
		filter: {
			type: String,
			required: false,
			default: '',
			description:
				'Filter: space-separated field:value pairs (e.g., "status:ready priority:high").',
		},
		sort: {
			type: String,
			required: false,
			default: 'priority',
			description: 'Sort field (prefix - for descending). Default: priority.',
		},
		group: {
			type: String,
			required: false,
			default: 'status',
			description:
				'Group by field: status, priority, assignee, milestone, type, tags. A multi-value field such as tags puts an item in one group per value. Default: status.',
		},
		show: {
			type: String,
			required: false,
			default: 'all',
			description: 'Entity types: all (work + bug), work, bug, spec, decision, milestone.',
		},
		layout: {
			type: String,
			required: false,
			default: 'cards',
			matches: ['cards', 'list', 'table'],
			description:
				'How items are laid out: cards (default), list, or table. Forwarded to the underlying collection.',
		},
		limit: {
			type: Number,
			required: false,
			description: 'Cap the number of entities rendered (applied after sort, before group).',
		},
		'group-display': {
			type: String,
			required: false,
			default: 'headings',
			matches: ['headings', 'accordion'],
			description: 'How groups are presented when `group` is set: headings (default) or accordion.',
		},
	},
	deferBody: true,
	contentModel: { type: 'sequence', fields: [] },
	transform(_resolved, attrs) {
		const meta = (field: string, content: string) =>
			new Tag('meta', { 'data-field': field, content });
		const layout = String(attrs.layout ?? 'cards');
		const showVal = String(attrs.show ?? 'all');
		const type = SHOW_TO_TYPE[showVal] ?? showVal;

		const singleType = type.includes(',') ? '' : type;
		const bodySource =
			readDeferredBody(attrs) ??
			(layout === 'table' ? DEFAULT_TABLE_BODY : cardBody(TYPE_FIELD[singleType]));

		const metas = [
			meta('collection-type', type),
			meta('collection-filter', String(attrs.filter ?? '')),
			meta('collection-sort', String(attrs.sort ?? 'priority')),
			meta('collection-group', String(attrs.group ?? 'status')),
			meta('collection-limit', attrs.limit !== undefined ? String(attrs.limit) : ''),
			meta('collection-fields', ''),
			meta('collection-layout', layout),
			meta('collection-group-display', String(attrs['group-display'] ?? 'headings')),
			meta('collection-empty', ''),
			meta(COLLECTION_SENTINEL, 'true'),
			meta('collection-body', bodySource),
		];

		const placeholder = new Tag('div', { 'data-name': 'items' }, []);

		return createComponentRenderable({
			rune: 'collection',
			tag: 'section',
			properties: {},
			refs: { items: placeholder },
			children: [...metas, placeholder],
		});
	},
});

View plugins/plan/src/tags/backlog.ts on GitHub

A list of plan entities: work items, bugs, specs, decisions or milestones, filtered, sorted and grouped. It is built from your plan files at build time, so there is nothing to keep up to date by hand. The examples below pass limit=5 to stay short; a real dashboard usually leaves it out.

Basic usage

{% backlog filter="status:ready" sort="priority" limit=5 /%}
<section data-rune="collection">
  <meta data-field="collection-type" content="work,bug">
  <meta data-field="collection-filter" content="status:ready">
  <meta data-field="collection-sort" content="priority">
  <meta data-field="collection-group" content="status">
  <meta data-field="collection-limit" content="5">
  <meta data-field="collection-fields" content="">
  <meta data-field="collection-layout" content="cards">
  <meta data-field="collection-group-display" content="headings">
  <meta data-field="collection-empty" content="">
  <meta data-field="__collection-sentinel" content="true">
  <meta data-field="collection-body" content="{% card href=$item.url %}
{% bar %}
{% $item.identifier %}{% if $item.mixed %} {% badge type=&quot;category&quot; %}{% humanize($item.type) %}{% /badge %}{% /if %}
---
{% badge type=&quot;status&quot; sentiment=$item.sentiment %}{% $item.data.status %}{% /badge %}
{% /bar %}

#### {% $item.data.title %}
{% /card %}
">
  <div data-name="items"></div>
</section>

ready

WORK-9101

ready

Content model validation errors

WORK-9102

ready

Token fallback chain for nested tints

WORK-9142

ready

Implement tint rune dark mode support

WORK-055

ready

Learning Package Pipeline Hooks

WORK-094

ready

Create @refrakt-md/vite plugin — Level 1 static transform

<section class="rf-collection" data-type="work,bug" data-layout="cards" data-rune="collection" data-density="full">
  <div data-name="items" class="rf-collection__items">
    <div class="rf-collection__group" data-group="ready">
      <h3 class="rf-collection__group-title">ready</h3>
      <div class="rf-collection__item" data-entity-id="WORK-9101" data-block="">
        <div class="rf-card" data-media-position="top" data-rune="card" data-density="full">
          <div data-name="content" class="rf-card__content">
            <div data-name="body" class="rf-card__body" data-section="body">
              <div data-zone-layout="bar" class="rf-bar" data-rune="bar" data-density="full">
                <div>
                  <p>WORK-9101</p>
                </div>
                <div data-align="end">
                  <p>
                    <span class="rf-badge rf-badge" data-meta-sentiment="neutral" data-meta-type="status" data-rune="badge" data-density="full">ready</span>
                  </p>
                </div>
              </div>
              <h4 id="content-model-validation-errors" data-name="title" class="rf-card__title">Content model validation errors</h4>
            </div>
          </div>
        </div>
      </div>
      <div class="rf-collection__item" data-entity-id="WORK-9102" data-block="">
        <div class="rf-card" data-media-position="top" data-rune="card" data-density="full">
          <div data-name="content" class="rf-card__content">
            <div data-name="body" class="rf-card__body" data-section="body">
              <div data-zone-layout="bar" class="rf-bar" data-rune="bar" data-density="full">
                <div>
                  <p>WORK-9102</p>
                </div>
                <div data-align="end">
                  <p>
                    <span class="rf-badge rf-badge" data-meta-sentiment="neutral" data-meta-type="status" data-rune="badge" data-density="full">ready</span>
                  </p>
                </div>
              </div>
              <h4 id="token-fallback-chain-for-nested-tints" data-name="title" class="rf-card__title">Token fallback chain for nested tints</h4>
            </div>
          </div>
        </div>
      </div>
      <div class="rf-collection__item" data-entity-id="WORK-9142" data-block="">
        <div class="rf-card" data-media-position="top" data-rune="card" data-density="full">
          <div data-name="content" class="rf-card__content">
            <div data-name="body" class="rf-card__body" data-section="body">
              <div data-zone-layout="bar" class="rf-bar" data-rune="bar" data-density="full">
                <div>
                  <p>WORK-9142</p>
                </div>
                <div data-align="end">
                  <p>
                    <span class="rf-badge rf-badge" data-meta-sentiment="neutral" data-meta-type="status" data-rune="badge" data-density="full">ready</span>
                  </p>
                </div>
              </div>
              <h4 id="implement-tint-rune-dark-mode-support" data-name="title" class="rf-card__title">Implement tint rune dark mode support</h4>
            </div>
          </div>
          <a data-name="link" href="/runes/plan/work" data-link="stretch" class="rf-card__link"></a>
        </div>
      </div>
      <div class="rf-collection__item" data-entity-id="WORK-055" data-block="">
        <div class="rf-card" data-media-position="top" data-rune="card" data-density="full">
          <div data-name="content" class="rf-card__content">
            <div data-name="body" class="rf-card__body" data-section="body">
              <div data-zone-layout="bar" class="rf-bar" data-rune="bar" data-density="full">
                <div>
                  <p>WORK-055</p>
                </div>
                <div data-align="end">
                  <p>
                    <span class="rf-badge rf-badge" data-meta-sentiment="neutral" data-meta-type="status" data-rune="badge" data-density="full">ready</span>
                  </p>
                </div>
              </div>
              <h4 id="learning-package-pipeline-hooks" data-name="title" class="rf-card__title">Learning Package Pipeline Hooks</h4>
            </div>
          </div>
        </div>
      </div>
      <div class="rf-collection__item" data-entity-id="WORK-094" data-block="">
        <div class="rf-card" data-media-position="top" data-rune="card" data-density="full">
          <div data-name="content" class="rf-card__content">
            <div data-name="body" class="rf-card__body" data-section="body">
              <div data-zone-layout="bar" class="rf-bar" data-rune="bar" data-density="full">
                <div>
                  <p>WORK-094</p>
                </div>
                <div data-align="end">
                  <p>
                    <span class="rf-badge rf-badge" data-meta-sentiment="neutral" data-meta-type="status" data-rune="badge" data-density="full">ready</span>
                  </p>
                </div>
              </div>
              <h4 id="create-refrakt-mdvite-plugin-level-1-static-transform" data-name="title" class="rf-card__title">Create @refrakt-md/vite plugin — Level 1 static transform</h4>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</section>

Filter, sort and pick types

filter takes space-separated field:value pairs. Different fields combine with AND; several values for the same field combine with OR. This shows ready items that are high or critical priority:

{% backlog filter="status:ready priority:high priority:critical" sort="priority" limit=5 /%}
<section data-rune="collection">
  <meta data-field="collection-type" content="work,bug">
  <meta data-field="collection-filter" content="status:ready priority:high priority:critical">
  <meta data-field="collection-sort" content="priority">
  <meta data-field="collection-group" content="status">
  <meta data-field="collection-limit" content="5">
  <meta data-field="collection-fields" content="">
  <meta data-field="collection-layout" content="cards">
  <meta data-field="collection-group-display" content="headings">
  <meta data-field="collection-empty" content="">
  <meta data-field="__collection-sentinel" content="true">
  <meta data-field="collection-body" content="{% card href=$item.url %}
{% bar %}
{% $item.identifier %}{% if $item.mixed %} {% badge type=&quot;category&quot; %}{% humanize($item.type) %}{% /badge %}{% /if %}
---
{% badge type=&quot;status&quot; sentiment=$item.sentiment %}{% $item.data.status %}{% /badge %}
{% /bar %}

#### {% $item.data.title %}
{% /card %}
">
  <div data-name="items"></div>
</section>

ready

WORK-9101

ready

Content model validation errors

WORK-9102

ready

Token fallback chain for nested tints

WORK-9142

ready

Implement tint rune dark mode support

WORK-055

ready

Learning Package Pipeline Hooks

WORK-094

ready

Create @refrakt-md/vite plugin — Level 1 static transform

<section class="rf-collection" data-type="work,bug" data-layout="cards" data-rune="collection" data-density="full">
  <div data-name="items" class="rf-collection__items">
    <div class="rf-collection__group" data-group="ready">
      <h3 class="rf-collection__group-title">ready</h3>
      <div class="rf-collection__item" data-entity-id="WORK-9101" data-block="">
        <div class="rf-card" data-media-position="top" data-rune="card" data-density="full">
          <div data-name="content" class="rf-card__content">
            <div data-name="body" class="rf-card__body" data-section="body">
              <div data-zone-layout="bar" class="rf-bar" data-rune="bar" data-density="full">
                <div>
                  <p>WORK-9101</p>
                </div>
                <div data-align="end">
                  <p>
                    <span class="rf-badge rf-badge" data-meta-sentiment="neutral" data-meta-type="status" data-rune="badge" data-density="full">ready</span>
                  </p>
                </div>
              </div>
              <h4 id="content-model-validation-errors" data-name="title" class="rf-card__title">Content model validation errors</h4>
            </div>
          </div>
        </div>
      </div>
      <div class="rf-collection__item" data-entity-id="WORK-9102" data-block="">
        <div class="rf-card" data-media-position="top" data-rune="card" data-density="full">
          <div data-name="content" class="rf-card__content">
            <div data-name="body" class="rf-card__body" data-section="body">
              <div data-zone-layout="bar" class="rf-bar" data-rune="bar" data-density="full">
                <div>
                  <p>WORK-9102</p>
                </div>
                <div data-align="end">
                  <p>
                    <span class="rf-badge rf-badge" data-meta-sentiment="neutral" data-meta-type="status" data-rune="badge" data-density="full">ready</span>
                  </p>
                </div>
              </div>
              <h4 id="token-fallback-chain-for-nested-tints" data-name="title" class="rf-card__title">Token fallback chain for nested tints</h4>
            </div>
          </div>
        </div>
      </div>
      <div class="rf-collection__item" data-entity-id="WORK-9142" data-block="">
        <div class="rf-card" data-media-position="top" data-rune="card" data-density="full">
          <div data-name="content" class="rf-card__content">
            <div data-name="body" class="rf-card__body" data-section="body">
              <div data-zone-layout="bar" class="rf-bar" data-rune="bar" data-density="full">
                <div>
                  <p>WORK-9142</p>
                </div>
                <div data-align="end">
                  <p>
                    <span class="rf-badge rf-badge" data-meta-sentiment="neutral" data-meta-type="status" data-rune="badge" data-density="full">ready</span>
                  </p>
                </div>
              </div>
              <h4 id="implement-tint-rune-dark-mode-support" data-name="title" class="rf-card__title">Implement tint rune dark mode support</h4>
            </div>
          </div>
          <a data-name="link" href="/runes/plan/work" data-link="stretch" class="rf-card__link"></a>
        </div>
      </div>
      <div class="rf-collection__item" data-entity-id="WORK-055" data-block="">
        <div class="rf-card" data-media-position="top" data-rune="card" data-density="full">
          <div data-name="content" class="rf-card__content">
            <div data-name="body" class="rf-card__body" data-section="body">
              <div data-zone-layout="bar" class="rf-bar" data-rune="bar" data-density="full">
                <div>
                  <p>WORK-055</p>
                </div>
                <div data-align="end">
                  <p>
                    <span class="rf-badge rf-badge" data-meta-sentiment="neutral" data-meta-type="status" data-rune="badge" data-density="full">ready</span>
                  </p>
                </div>
              </div>
              <h4 id="learning-package-pipeline-hooks" data-name="title" class="rf-card__title">Learning Package Pipeline Hooks</h4>
            </div>
          </div>
        </div>
      </div>
      <div class="rf-collection__item" data-entity-id="WORK-094" data-block="">
        <div class="rf-card" data-media-position="top" data-rune="card" data-density="full">
          <div data-name="content" class="rf-card__content">
            <div data-name="body" class="rf-card__body" data-section="body">
              <div data-zone-layout="bar" class="rf-bar" data-rune="bar" data-density="full">
                <div>
                  <p>WORK-094</p>
                </div>
                <div data-align="end">
                  <p>
                    <span class="rf-badge rf-badge" data-meta-sentiment="neutral" data-meta-type="status" data-rune="badge" data-density="full">ready</span>
                  </p>
                </div>
              </div>
              <h4 id="create-refrakt-mdvite-plugin-level-1-static-transform" data-name="title" class="rf-card__title">Create @refrakt-md/vite plugin — Level 1 static transform</h4>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</section>

The other views are the same rune with different values:

To showWrite
Work in progressfilter="status:in-progress"
Bugs, by severityshow="bug" sort="severity"
Decision records, by dateshow="decision" sort="date"
Specsshow="spec"
Milestonesshow="milestone"
Newest firsta - before the sort field, e.g. sort="-date"
The top Nlimit=N — applied after sorting and before grouping

show defaults to all, which means work items and bugs together.

Group items

group gathers items under a heading per value of a field: status (the default), priority, assignee, milestone, type or tags. group-display="accordion" collapses each group instead.

A multi-value field such as tags gives one group per tag, and an item tagged runes, data appears under both. A group's size is the number of entities carrying that tag, so the sizes can add up to more than the number of items shown.

{% backlog show="work" filter="status:ready" group="tags" limit=5 /%}
<section data-rune="collection">
  <meta data-field="collection-type" content="work">
  <meta data-field="collection-filter" content="status:ready">
  <meta data-field="collection-sort" content="priority">
  <meta data-field="collection-group" content="tags">
  <meta data-field="collection-limit" content="5">
  <meta data-field="collection-fields" content="">
  <meta data-field="collection-layout" content="cards">
  <meta data-field="collection-group-display" content="headings">
  <meta data-field="collection-empty" content="">
  <meta data-field="__collection-sentinel" content="true">
  <meta data-field="collection-body" content="{% card href=$item.url %}
{% bar %}
{% $item.identifier %}{% if $item.mixed %} {% badge type=&quot;category&quot; %}{% humanize($item.type) %}{% /badge %}{% /if %} {% if $item.data.priority %}{% badge %}{% $item.data.priority %}{% /badge %}{% /if %}
---
{% badge type=&quot;status&quot; sentiment=$item.sentiment %}{% $item.data.status %}{% /badge %}
{% /bar %}

#### {% $item.data.title %}
{% /card %}
">
  <div data-name="items"></div>
</section>

core

WORK-9101 critical

ready

Content model validation errors

css

WORK-9102 high

ready

Token fallback chain for nested tints

tint

WORK-9142 high

ready

Implement tint rune dark mode support

theming

WORK-9142 high

ready

Implement tint rune dark mode support

learning

WORK-055 high

ready

Learning Package Pipeline Hooks

pipeline

WORK-055 high

ready

Learning Package Pipeline Hooks

vite

WORK-094 high

ready

Create @refrakt-md/vite plugin — Level 1 static transform

transform

WORK-094 high

ready

Create @refrakt-md/vite plugin — Level 1 static transform

frameworks

WORK-094 high

ready

Create @refrakt-md/vite plugin — Level 1 static transform

<section class="rf-collection" data-type="work" data-layout="cards" data-rune="collection" data-density="full">
  <div data-name="items" class="rf-collection__items">
    <div class="rf-collection__group" data-group="core">
      <h3 class="rf-collection__group-title">core</h3>
      <div class="rf-collection__item" data-entity-id="WORK-9101" data-block="">
        <div class="rf-card" data-media-position="top" data-rune="card" data-density="full">
          <div data-name="content" class="rf-card__content">
            <div data-name="body" class="rf-card__body" data-section="body">
              <div data-zone-layout="bar" class="rf-bar" data-rune="bar" data-density="full">
                <div>
                  <p>
                    WORK-9101
                     
                    <span class="rf-badge rf-badge" data-meta-sentiment="neutral" data-meta-type="tag" data-rune="badge" data-density="full">critical</span>
                  </p>
                </div>
                <div data-align="end">
                  <p>
                    <span class="rf-badge rf-badge" data-meta-sentiment="neutral" data-meta-type="status" data-rune="badge" data-density="full">ready</span>
                  </p>
                </div>
              </div>
              <h4 id="content-model-validation-errors" data-name="title" class="rf-card__title">Content model validation errors</h4>
            </div>
          </div>
        </div>
      </div>
    </div>
    <div class="rf-collection__group" data-group="css">
      <h3 class="rf-collection__group-title">css</h3>
      <div class="rf-collection__item" data-entity-id="WORK-9102" data-block="">
        <div class="rf-card" data-media-position="top" data-rune="card" data-density="full">
          <div data-name="content" class="rf-card__content">
            <div data-name="body" class="rf-card__body" data-section="body">
              <div data-zone-layout="bar" class="rf-bar" data-rune="bar" data-density="full">
                <div>
                  <p>
                    WORK-9102
                     
                    <span class="rf-badge rf-badge" data-meta-sentiment="neutral" data-meta-type="tag" data-rune="badge" data-density="full">high</span>
                  </p>
                </div>
                <div data-align="end">
                  <p>
                    <span class="rf-badge rf-badge" data-meta-sentiment="neutral" data-meta-type="status" data-rune="badge" data-density="full">ready</span>
                  </p>
                </div>
              </div>
              <h4 id="token-fallback-chain-for-nested-tints" data-name="title" class="rf-card__title">Token fallback chain for nested tints</h4>
            </div>
          </div>
        </div>
      </div>
    </div>
    <div class="rf-collection__group" data-group="tint">
      <h3 class="rf-collection__group-title">tint</h3>
      <div class="rf-collection__item" data-entity-id="WORK-9142" data-block="">
        <div class="rf-card" data-media-position="top" data-rune="card" data-density="full">
          <div data-name="content" class="rf-card__content">
            <div data-name="body" class="rf-card__body" data-section="body">
              <div data-zone-layout="bar" class="rf-bar" data-rune="bar" data-density="full">
                <div>
                  <p>
                    WORK-9142
                     
                    <span class="rf-badge rf-badge" data-meta-sentiment="neutral" data-meta-type="tag" data-rune="badge" data-density="full">high</span>
                  </p>
                </div>
                <div data-align="end">
                  <p>
                    <span class="rf-badge rf-badge" data-meta-sentiment="neutral" data-meta-type="status" data-rune="badge" data-density="full">ready</span>
                  </p>
                </div>
              </div>
              <h4 id="implement-tint-rune-dark-mode-support" data-name="title" class="rf-card__title">Implement tint rune dark mode support</h4>
            </div>
          </div>
          <a data-name="link" href="/runes/plan/work" data-link="stretch" class="rf-card__link"></a>
        </div>
      </div>
    </div>
    <div class="rf-collection__group" data-group="theming">
      <h3 class="rf-collection__group-title">theming</h3>
      <div class="rf-collection__item" data-entity-id="WORK-9142" data-block="">
        <div class="rf-card" data-media-position="top" data-rune="card" data-density="full">
          <div data-name="content" class="rf-card__content">
            <div data-name="body" class="rf-card__body" data-section="body">
              <div data-zone-layout="bar" class="rf-bar" data-rune="bar" data-density="full">
                <div>
                  <p>
                    WORK-9142
                     
                    <span class="rf-badge rf-badge" data-meta-sentiment="neutral" data-meta-type="tag" data-rune="badge" data-density="full">high</span>
                  </p>
                </div>
                <div data-align="end">
                  <p>
                    <span class="rf-badge rf-badge" data-meta-sentiment="neutral" data-meta-type="status" data-rune="badge" data-density="full">ready</span>
                  </p>
                </div>
              </div>
              <h4 id="implement-tint-rune-dark-mode-support" data-name="title" class="rf-card__title">Implement tint rune dark mode support</h4>
            </div>
          </div>
          <a data-name="link" href="/runes/plan/work" data-link="stretch" class="rf-card__link"></a>
        </div>
      </div>
    </div>
    <div class="rf-collection__group" data-group="learning">
      <h3 class="rf-collection__group-title">learning</h3>
      <div class="rf-collection__item" data-entity-id="WORK-055" data-block="">
        <div class="rf-card" data-media-position="top" data-rune="card" data-density="full">
          <div data-name="content" class="rf-card__content">
            <div data-name="body" class="rf-card__body" data-section="body">
              <div data-zone-layout="bar" class="rf-bar" data-rune="bar" data-density="full">
                <div>
                  <p>
                    WORK-055
                     
                    <span class="rf-badge rf-badge" data-meta-sentiment="neutral" data-meta-type="tag" data-rune="badge" data-density="full">high</span>
                  </p>
                </div>
                <div data-align="end">
                  <p>
                    <span class="rf-badge rf-badge" data-meta-sentiment="neutral" data-meta-type="status" data-rune="badge" data-density="full">ready</span>
                  </p>
                </div>
              </div>
              <h4 id="learning-package-pipeline-hooks" data-name="title" class="rf-card__title">Learning Package Pipeline Hooks</h4>
            </div>
          </div>
        </div>
      </div>
    </div>
    <div class="rf-collection__group" data-group="pipeline">
      <h3 class="rf-collection__group-title">pipeline</h3>
      <div class="rf-collection__item" data-entity-id="WORK-055" data-block="">
        <div class="rf-card" data-media-position="top" data-rune="card" data-density="full">
          <div data-name="content" class="rf-card__content">
            <div data-name="body" class="rf-card__body" data-section="body">
              <div data-zone-layout="bar" class="rf-bar" data-rune="bar" data-density="full">
                <div>
                  <p>
                    WORK-055
                     
                    <span class="rf-badge rf-badge" data-meta-sentiment="neutral" data-meta-type="tag" data-rune="badge" data-density="full">high</span>
                  </p>
                </div>
                <div data-align="end">
                  <p>
                    <span class="rf-badge rf-badge" data-meta-sentiment="neutral" data-meta-type="status" data-rune="badge" data-density="full">ready</span>
                  </p>
                </div>
              </div>
              <h4 id="learning-package-pipeline-hooks" data-name="title" class="rf-card__title">Learning Package Pipeline Hooks</h4>
            </div>
          </div>
        </div>
      </div>
    </div>
    <div class="rf-collection__group" data-group="vite">
      <h3 class="rf-collection__group-title">vite</h3>
      <div class="rf-collection__item" data-entity-id="WORK-094" data-block="">
        <div class="rf-card" data-media-position="top" data-rune="card" data-density="full">
          <div data-name="content" class="rf-card__content">
            <div data-name="body" class="rf-card__body" data-section="body">
              <div data-zone-layout="bar" class="rf-bar" data-rune="bar" data-density="full">
                <div>
                  <p>
                    WORK-094
                     
                    <span class="rf-badge rf-badge" data-meta-sentiment="neutral" data-meta-type="tag" data-rune="badge" data-density="full">high</span>
                  </p>
                </div>
                <div data-align="end">
                  <p>
                    <span class="rf-badge rf-badge" data-meta-sentiment="neutral" data-meta-type="status" data-rune="badge" data-density="full">ready</span>
                  </p>
                </div>
              </div>
              <h4 id="create-refrakt-mdvite-plugin-level-1-static-transform" data-name="title" class="rf-card__title">Create @refrakt-md/vite plugin — Level 1 static transform</h4>
            </div>
          </div>
        </div>
      </div>
    </div>
    <div class="rf-collection__group" data-group="transform">
      <h3 class="rf-collection__group-title">transform</h3>
      <div class="rf-collection__item" data-entity-id="WORK-094" data-block="">
        <div class="rf-card" data-media-position="top" data-rune="card" data-density="full">
          <div data-name="content" class="rf-card__content">
            <div data-name="body" class="rf-card__body" data-section="body">
              <div data-zone-layout="bar" class="rf-bar" data-rune="bar" data-density="full">
                <div>
                  <p>
                    WORK-094
                     
                    <span class="rf-badge rf-badge" data-meta-sentiment="neutral" data-meta-type="tag" data-rune="badge" data-density="full">high</span>
                  </p>
                </div>
                <div data-align="end">
                  <p>
                    <span class="rf-badge rf-badge" data-meta-sentiment="neutral" data-meta-type="status" data-rune="badge" data-density="full">ready</span>
                  </p>
                </div>
              </div>
              <h4 id="create-refrakt-mdvite-plugin-level-1-static-transform" data-name="title" class="rf-card__title">Create @refrakt-md/vite plugin — Level 1 static transform</h4>
            </div>
          </div>
        </div>
      </div>
    </div>
    <div class="rf-collection__group" data-group="frameworks">
      <h3 class="rf-collection__group-title">frameworks</h3>
      <div class="rf-collection__item" data-entity-id="WORK-094" data-block="">
        <div class="rf-card" data-media-position="top" data-rune="card" data-density="full">
          <div data-name="content" class="rf-card__content">
            <div data-name="body" class="rf-card__body" data-section="body">
              <div data-zone-layout="bar" class="rf-bar" data-rune="bar" data-density="full">
                <div>
                  <p>
                    WORK-094
                     
                    <span class="rf-badge rf-badge" data-meta-sentiment="neutral" data-meta-type="tag" data-rune="badge" data-density="full">high</span>
                  </p>
                </div>
                <div data-align="end">
                  <p>
                    <span class="rf-badge rf-badge" data-meta-sentiment="neutral" data-meta-type="status" data-rune="badge" data-density="full">ready</span>
                  </p>
                </div>
              </div>
              <h4 id="create-refrakt-mdvite-plugin-level-1-static-transform" data-name="title" class="rf-card__title">Create @refrakt-md/vite plugin — Level 1 static transform</h4>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</section>

Show a table

Items show as cards by default: the identifier and a status badge on the top line, the title below, and a type label when the backlog mixes types. A backlog of one type adds that type's key field: priority for work items, severity for bugs. layout="table" shows Identifier, Type, Status and Title columns instead, for a dense view:

{% backlog show="all" layout="table" sort="status" limit=8 /%}
<section data-rune="collection">
  <meta data-field="collection-type" content="work,bug">
  <meta data-field="collection-filter" content="">
  <meta data-field="collection-sort" content="status">
  <meta data-field="collection-group" content="status">
  <meta data-field="collection-limit" content="8">
  <meta data-field="collection-fields" content="">
  <meta data-field="collection-layout" content="table">
  <meta data-field="collection-group-display" content="headings">
  <meta data-field="collection-empty" content="">
  <meta data-field="__collection-sentinel" content="true">
  <meta data-field="collection-body" content="# Identifier
{% link href=$item.url %}{% $item.identifier %}{% /link %}
# Type
{% humanize($item.type) %}
# Status
{% badge type=&quot;status&quot; sentiment=$item.sentiment %}{% $item.data.status %}{% /badge %}
# Title
{% $item.data.title %}
">
  <div data-name="items"></div>
</section>

blocked

IdentifierTypeStatusTitle

WORK-9215

Work

blocked

Alignment system migration

in-progress

IdentifierTypeStatusTitle

BUG-9103

Bug

in-progress

Decision log ignores date filter

confirmed

IdentifierTypeStatusTitle

BUG-9201

Bug

confirmed

Showcase bleed breaks with overflow:hidden parent

BUG-9101

Bug

confirmed

Pipeline crashes on circular entity references

BUG-012

Bug

confirmed

There is no way to write a comment in refrakt content

BUG-013

Bug

confirmed

A podcast playlist is published as a music playlist

BUG-017

Bug

confirmed

bento documents a frame cascade the engine does not implement

BUG-023

Bug

confirmed

data-meta-rank is styled and specified but emitted by nothing

<section class="rf-collection" data-type="work,bug" data-layout="table" data-rune="collection" data-density="full">
  <div data-name="items" class="rf-collection__items">
    <div class="rf-collection__group" data-group="blocked">
      <h3 class="rf-collection__group-title">blocked</h3>
      <table class="rf-collection__table">
        <thead>
          <tr>
            <th>Identifier</th>
            <th>Type</th>
            <th>Status</th>
            <th>Title</th>
          </tr>
        </thead>
        <tbody>
          <tr data-entity-id="WORK-9215">
            <td>
              <p>
                <a href="/runes/plan/work">WORK-9215</a>
              </p>
            </td>
            <td>Work</td>
            <td>
              <p>
                <span class="rf-badge rf-badge" data-meta-sentiment="negative" data-meta-type="status" data-rune="badge" data-density="full">blocked</span>
              </p>
            </td>
            <td>
              <p>Alignment system migration</p>
            </td>
          </tr>
        </tbody>
      </table>
    </div>
    <div class="rf-collection__group" data-group="in-progress">
      <h3 class="rf-collection__group-title">in-progress</h3>
      <table class="rf-collection__table">
        <thead>
          <tr>
            <th>Identifier</th>
            <th>Type</th>
            <th>Status</th>
            <th>Title</th>
          </tr>
        </thead>
        <tbody>
          <tr data-entity-id="BUG-9103">
            <td>
              <p>BUG-9103</p>
            </td>
            <td>Bug</td>
            <td>
              <p>
                <span class="rf-badge rf-badge" data-meta-sentiment="neutral" data-meta-type="status" data-rune="badge" data-density="full">in-progress</span>
              </p>
            </td>
            <td>
              <p>Decision log ignores date filter</p>
            </td>
          </tr>
        </tbody>
      </table>
    </div>
    <div class="rf-collection__group" data-group="confirmed">
      <h3 class="rf-collection__group-title">confirmed</h3>
      <table class="rf-collection__table">
        <thead>
          <tr>
            <th>Identifier</th>
            <th>Type</th>
            <th>Status</th>
            <th>Title</th>
          </tr>
        </thead>
        <tbody>
          <tr data-entity-id="BUG-9201">
            <td>
              <p>
                <a href="/runes/plan/bug">BUG-9201</a>
              </p>
            </td>
            <td>Bug</td>
            <td>
              <p>
                <span class="rf-badge rf-badge" data-meta-sentiment="caution" data-meta-type="status" data-rune="badge" data-density="full">confirmed</span>
              </p>
            </td>
            <td>
              <p>Showcase bleed breaks with overflow:hidden parent</p>
            </td>
          </tr>
          <tr data-entity-id="BUG-9101">
            <td>
              <p>BUG-9101</p>
            </td>
            <td>Bug</td>
            <td>
              <p>
                <span class="rf-badge rf-badge" data-meta-sentiment="caution" data-meta-type="status" data-rune="badge" data-density="full">confirmed</span>
              </p>
            </td>
            <td>
              <p>Pipeline crashes on circular entity references</p>
            </td>
          </tr>
          <tr data-entity-id="BUG-012">
            <td>
              <p>BUG-012</p>
            </td>
            <td>Bug</td>
            <td>
              <p>
                <span class="rf-badge rf-badge" data-meta-sentiment="caution" data-meta-type="status" data-rune="badge" data-density="full">confirmed</span>
              </p>
            </td>
            <td>
              <p>There is no way to write a comment in refrakt content</p>
            </td>
          </tr>
          <tr data-entity-id="BUG-013">
            <td>
              <p>BUG-013</p>
            </td>
            <td>Bug</td>
            <td>
              <p>
                <span class="rf-badge rf-badge" data-meta-sentiment="caution" data-meta-type="status" data-rune="badge" data-density="full">confirmed</span>
              </p>
            </td>
            <td>
              <p>A podcast playlist is published as a music playlist</p>
            </td>
          </tr>
          <tr data-entity-id="BUG-017">
            <td>
              <p>BUG-017</p>
            </td>
            <td>Bug</td>
            <td>
              <p>
                <span class="rf-badge rf-badge" data-meta-sentiment="caution" data-meta-type="status" data-rune="badge" data-density="full">confirmed</span>
              </p>
            </td>
            <td>
              <p>bento documents a frame cascade the engine does not implement</p>
            </td>
          </tr>
          <tr data-entity-id="BUG-023">
            <td>
              <p>BUG-023</p>
            </td>
            <td>Bug</td>
            <td>
              <p>
                <span class="rf-badge rf-badge" data-meta-sentiment="caution" data-meta-type="status" data-rune="badge" data-density="full">confirmed</span>
              </p>
            </td>
            <td>
              <p>data-meta-rank is styled and specified but emitted by nothing</p>
            </td>
          </tr>
        </tbody>
      </table>
    </div>
  </div>
</section>

For anything richer, write your own collection body.

Attributes

AttributeTypeRequiredDescription
filterstring—Filter: space-separated field:value pairs (e.g., "status:ready priority:high").
sortstring—Sort field (prefix - for descending). Default: priority.
groupstring—Group by field: status, priority, assignee, milestone, type, tags. A multi-value field such as tags puts an item in one group per value. Default: status.
showstring—Entity types: all (work + bug), work, bug, spec, decision, milestone.
layout"cards" | "list" | "table"—How items are laid out: cards (default), list, or table. Forwarded to the underlying collection.
limitnumber—Cap the number of entities rendered (applied after sort, before group).
group-display"headings" | "accordion"—How groups are presented when `group` is set: headings (default) or accordion.

Universal attributes

bg

The background layer: image, video, gradient, flat overlay wash and legibility scrim, in a single injected layer behind the rune's content.

AttributeTypeRequiredDescription
bgstring—Background preset applied to this block
bg-fromstring—Gradient start colour — a semantic token name (→ var(--rf-color-*))
bg-gradient"to-t" | "to-b" | "to-l" | "to-r" | "to-tr" | "to-br" | "to-bl" | "to-tl"—Gradient direction (bounded named set)
bg-gradient-type"linear" | "radial" | "conic"—Gradient type
bg-tostring—Gradient end colour — a semantic token name
bg-viastring—Optional middle gradient stop — a semantic token name
scrim"top" | "bottom" | "left" | "right" | "none"—Scrim direction (heaviest edge); presence turns the scrim on, "none" opts out of the default cover scrim
scrim-blur"none" | "sm" | "md" | "lg"—Frost scrim blur amount
scrim-strength"sm" | "md" | "lg"—Gradient scrim strength
scrim-tone"dark" | "light"—Whether the scrim darkens (for light text) or lightens (for dark text)
scrim-type"gradient" | "frost"—Scrim treatment: gradient (default) or frost (backdrop blur)
elevation

How far the rune sits off the page, from sunken to overlay. The theme decides what each step looks like.

AttributeTypeRequiredDescription
elevation"sunken" | "flush" | "flat" | "raised" | "floating" | "overlay" | "none" | "sm" | "md" | "lg"—Surface depth, from sunken to overlay. Deprecated: none, sm, md and lg (read as flat, raised, raised and floating)
inset

Internal padding override.

AttributeTypeRequiredDescription
inset"flush" | "tight" | "default" | "loose" | "breathe"—Inner padding of this block
motion

Scroll-reveal entrance. You choose its character; the theme decides how it moves.

AttributeTypeRequiredDescription
reveal"none" | "fade" | "slide" | "scale" | "blur"—Scroll-reveal entrance character (none|fade|slide|scale|blur); the theme owns the choreography
staggerboolean—Cascade this block's items in as it reveals (no-op on single-child runes)
spacing

Block-level rhythm override.

AttributeTypeRequiredDescription
spacing"flush" | "tight" | "default" | "loose" | "breathe"—Vertical spacing above and below this block
substrate

Generated pattern fills behind the content, drawn by the theme.

AttributeTypeRequiredDescription
substrate"dots" | "grid" | "lines" | "cross" | "checker" | "none"—Generated surface pattern
substrate-fill"inherit" | "inset"—Surface fill the pattern sits on (full colour stays with tint)
substrate-opacity"sm" | "md" | "lg"—Pattern ink strength
substrate-size"sm" | "md" | "lg"—Pattern cell size
substrate-target"self" | "media"—Which surface the pattern fills (overrides the rune/theme default)
tint

Per-rune colour override: a named tint from the theme registry, with inline per-token overrides layered on top.

AttributeTypeRequiredDescription
tintstring—Color tint preset applied to this block
tint-mode"auto" | "dark" | "light"—Whether the tint adapts to auto, dark, or light mode
width

The track a block rune occupies.

AttributeTypeRequiredDescription
width"compact" | "narrow" | "content" | "wide" | "full"—Maximum width constraint for this block
Not availableWhy
dropcap, readingthis rune declares no prose body
framethis rune declares neither a `frameTarget` nor a media section
prominencethis rune has no page-section header or featured quotation