Files
pterodactyl-panel/resources/scripts/components/admin
ItzLinaton 4257022c66 Feat: Company/Brand Logo (V2) (#7269)
Added a configurable panel company/brand logo.

## Extra Details:
- New logo is used for:
  - Login page
  - Navigation bar
  - Page Favicon
- Panel Falls back to the default Ptero logo when no custom one is set.
- Supported File Formats: PNG, JPEG, WebP, AVIF, ICO, and safe SVG
files.

---

## Preview:
<img width="912" height="151"
alt="{67E9647B-AD26-41F8-8272-8B7F4D1CDFB7}"
src="https://github.com/user-attachments/assets/1af9c52b-ad4a-4f82-bb67-14a2b662beb2"
/>

<img width="916" height="256"
alt="{F49323AE-974C-4C16-B129-D60D3494BA0F}"
src="https://github.com/user-attachments/assets/3e35d7f1-c95b-4007-bf1f-69e2ce9891a2"
/>

<img width="1749" height="940"
alt="{252E88D0-BA45-43C8-99E2-5B31E81B739E}"
src="https://github.com/user-attachments/assets/2e807035-bbd0-48ca-823a-4510a9be696e"
/>

<img width="996" height="452" alt="image"
src="https://github.com/user-attachments/assets/c0bef229-285c-4cda-9291-7295e70b2189"
/>
2026-11-01 19:50:03 -05:00
..
2026-10-12 15:12:49 -04:00
2026-10-08 16:54:59 -04:00
2026-10-12 19:29:07 -04:00
2026-10-14 04:01:26 -04:00
2026-10-12 14:22:47 -04:00
2026-10-12 19:29:07 -04:00
2026-10-12 14:22:47 -04:00
2026-10-12 14:22:58 -04:00
2026-10-08 16:54:59 -04:00
2026-10-12 14:22:58 -04:00
2026-10-12 14:22:47 -04:00
2026-10-13 15:06:23 -04:00
2026-10-20 15:46:16 -04:00
2026-10-05 18:10:18 -04:00
2026-10-08 16:54:59 -04:00
2026-10-12 14:22:47 -04:00
2026-10-08 16:54:59 -04:00
2026-10-05 18:10:18 -04:00
2026-10-05 18:10:18 -04:00
2026-10-05 18:10:18 -04:00
2026-10-05 18:10:18 -04:00

Admin SPA (/panel)

React admin area that reuses the shared Panel data and UI architecture. It is the only admin destination exposed by the frontend navigation. The legacy Blade panel at /admin remains available by direct URL while the backend cutover is completed.

How it's wired

  • Base route: /panel, defined in resources/scripts/router/routeTree.ts under the authenticated route tree and rendered by AdminLayout.
  • Route loaders: preload page-critical data through TanStack Query queryOptions exported from api/**/queries.ts.
  • Data layer: api/admin/* calls the dedicated Admin API (/api/admin/*) with the first-party session cookie. The public /api/application API is not used.
  • State: TanStack Query owns API data. Zustand/ServerContext are not used for admin API data.
  • Errors: mutation and transient server errors use Sonner through domain query hooks and notifyHttpError; blocking screen errors render ServerError.

Adding a domain (follow users/)

  1. api/admin/<domain>/get<Domain>.ts calls the Admin API, maps response data, and returns typed data.
  2. api/admin/<domain>/queries.ts exports shared queryOptions, query hooks, mutation hooks, cache updates, and Sonner error/success handling.
  3. components/admin/<domain>/<Domain>Container.tsx renders AdminContentBlock, Pagination, rows, empty states, and blocking ServerError retry UI.
  4. Register routes and page-critical loaders in router/routeTree.ts, using the same query options as the component hooks.