feat: add frontend admin shortcut for staff
Build and Deploy / verify (push) Failing after 15m18s
Build and Deploy / deploy (push) Skipped

Let admin and editor open /admin in a new tab from the public header and profile, so they can jump to the backend without leaving the site.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
gouki
2026-09-21 23:42:54 +00:00
co-authored by Cursor
parent 36c4ffc5b4
commit debead72a5
13 changed files with 644 additions and 0 deletions
+5
View File
@@ -32,6 +32,11 @@ See `README.md` and `docs/` for install, import, plugins, and themes.
- Filament v5 actions are `Filament\Actions\Action`. The comments relation manager on the edit page must boot in tests, because a stale `Tables\Actions\Action` import only fails when that Livewire table renders.
- Guests still get 404 for drafts. Admin and editor can open unpublished posts and see a preview banner.
## Frontend admin shortcut
- After login, admin and editor see **管理** in the site header. It opens `/admin` in a new tab.
- Regular members do not see it. The profile page has the same link for staff.
## Admin chrome
- Top-right badge shows the current app environment (`local` / `prod` / others).