Skip to content

Add stable status page theme hooks - #451

Merged
jbrooksuk merged 1 commit into
mainfrom
codex/status-page-theme-hooks
Aug 25, 2026
Merged

Add stable status page theme hooks#451
jbrooksuk merged 1 commit into
mainfrom
codex/status-page-theme-hooks

Conversation

@jbrooksuk

@jbrooksuk jbrooksuk commented Aug 25, 2026

Copy link
Copy Markdown
Member

Summary

  • apply the previously declared banner, metrics, and footer render hooks
  • add render-hook boundaries around status summaries, incident timelines, and unsubscribe content
  • expose stable page, component, slot, state, and record selectors across public status-page views
  • add regression coverage for hook placement and selector availability

Documentation

Testing

  • 1,122 tests passed with 4,123 assertions and 2 existing todos
  • PHPStan passed with no errors
  • Pint passed

Apply every declared render hook and add missing boundaries around
status summaries, incident timelines, and unsubscribe content.

Expose stable page, component, slot, and record selectors so themes do
not depend on implementation classes.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

馃挕 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 0996749d39

鈩癸笍 About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 馃憤.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

private ?string $title = null,
private ?string $description = null
private ?string $description = null,
private string $page = 'status',

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Give the setup view its own page identifier

The default marks every layout consumer as data-page="status", but resources/views/setup/index.blade.php:1 also uses <x-cachet::cachet> without a page argument. Consequently, the public /setup route is misidentified as the status page and custom themes targeting the new stable status selector can unintentionally restyle the setup form; pass page="setup" there or avoid a misleading status default.

Useful? React with 馃憤聽/ 馃憥.

@@ -1,7 +1,11 @@
{{ \Cachet\Facades\CachetView::renderHook(\Cachet\View\RenderHook::STATUS_PAGE_METRICS_BEFORE) }}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Preserve metric hooks when graphs are hidden

When app.display_graphs is false, resources/views/status-page/index.blade.php skips <x-cachet::metrics> entirely, so neither newly exposed metrics hook in this view is evaluated. Extensions therefore cannot use these hook positions on installations that disable the built-in charts; render the hook boundaries outside the $display_graphs conditional or condition only the built-in metric content.

Useful? React with 馃憤聽/ 馃憥.

@jbrooksuk
jbrooksuk merged commit 3866efe into main Aug 25, 2026
42 of 44 checks passed
@jbrooksuk
jbrooksuk deleted the codex/status-page-theme-hooks branch August 25, 2026 18:46
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