Skip to content

[codex] Hide clear cache button on simple pages#55

Merged
cms-multi merged 2 commits into
mainfrom
codex/hide-clear-cache-simple-pages
May 13, 2026
Merged

[codex] Hide clear cache button on simple pages#55
cms-multi merged 2 commits into
mainfrom
codex/hide-clear-cache-simple-pages

Conversation

@howdu

@howdu howdu commented May 13, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • skip rendering the clear-cache Livewire button when the current Filament route is unauthenticated or a SimplePage
  • add hiddenOnSimplePages(false) as an opt-out for panels that still want the button on simple pages
  • cover unauthenticated, simple-page, opt-out, and normal dashboard rendering behavior

Root cause

The package registers its button globally on panels::user-menu.before. Filament simple/auth pages can render the simple user menu area, so the hook could place the trash icon in the top-right of auth and required MFA setup flows.

Validation

  • vendor/bin/pint --dirty --format agent
  • composer test -- --filter=FilamentClearCachePluginTest
  • composer test

@cms-multi cms-multi marked this pull request as ready for review May 13, 2026 17:11
@cms-multi cms-multi merged commit 694a7e2 into main May 13, 2026
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.

2 participants