Skip to content

feat(dashboards): add section headers - #36

Open
lordspline wants to merge 1 commit into
masterfrom
capy/add-section-headers
Open

feat(dashboards): add section headers#36
lordspline wants to merge 1 commit into
masterfrom
capy/add-section-headers

Conversation

@lordspline

@lordspline lordspline commented Aug 19, 2026

Copy link
Copy Markdown

Problem

Dashboard editors can add charts and text, but they cannot divide a dashboard into clearly labeled sections.

Changes

  • Adds a Section header action with a compact title and optional description form.
  • Defaults section headers to a full-width, one-row layout on desktop and mobile dashboards.
  • Preserves edit, duplicate, move, copy, delete, undo, drag, and resize behavior.
  • Stores section metadata in existing text tiles with an escaped Markdown fallback.
  • Reuses text-tile APIs and permissions, so this needs no model or migration.

Section header on a dashboard


Open video

How did you test this code?

  • Focused Jest tests guard encoding, validation, create and edit payloads, responsive defaults, literal rendering, and tile actions.
  • The dashboard logic suite guards existing tile behavior, including deletion and undo.
  • Django tests guard create, retrieve, edit, and template JSON round trips through the public dashboard API.
  • Browser QA covered create, edit, duplicate, delete, undo availability, responsive rendering, and drag reordering.
  • Frontend formatting, linting, type checking, and ci:preflight --fix completed successfully.

👉 Stay up-to-date with PostHog coding conventions for a smoother review.

Automatic notifications

  • Publish to changelog?

Docs update

No matching dashboard workflow documentation exists for this discoverable action.

🤖 Agent context

Autonomy: Human-driven (agent-assisted)

  • Capy implemented and verified the change in this thread.
  • Skills invoked: /writing-ui-components, /writing-tests, /writing-user-facing-copy, /writing-code-comments, /writing-pr-descriptions, and /running-ci-preflight.
  • The implementation reuses text-tile persistence instead of adding a dashboard model or migration.
  • All committed fixtures and published media use local demo or invented data.

View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.

@github-actions

github-actions Bot commented Aug 19, 2026

Copy link
Copy Markdown

🦔 Hogbox preview · ❌ build failed

The preview didn't come up for commit dc84036. See the build log for the failing step. It'll retry on the next push.

Previews are optional and never block merging. A failure here is often a hogland or tailnet hiccup rather than anything in your PR, so the check stays green and this comment is the status.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant