feat: add frontend admin shortcut for staff
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:
@@ -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).
|
||||
|
||||
Reference in New Issue
Block a user