Files
pterodactyl-panel/resources/scripts/components/admin
ItzLinaton 60b72365d8 Feat: Custom User Avatars (V2) (#7295)
Added custom user avatar support.

## Extra Details:
- Users can upload custom `PNG, JPEG, SVG, WebP, AVIF`, and `ICO`
avatars.
- Added avatar management to the user account area.
- Added admin controls to update and remove user avatars.
- Custom User avatars appear in:
  - Panel Navbar.
  - Panel Admin Activity Logs.
  - Server Sub user List.
  - Server Activity Logs
  - Personal Account Activity Logs.
  - Server Ownership Details.
  
---

<img width="1329" height="327"
alt="{B32EBD7F-1FCA-4356-966C-0D60A9A23E49}"
src="https://github.com/user-attachments/assets/881fa5b3-9599-4370-975d-83b6bd91a7d1"
/>

---

<img width="997" height="847" alt="adminpage"
src="https://github.com/user-attachments/assets/989acbcc-351c-431b-ab7f-557ba4c7e070"
/>

---

<img width="955" height="781" alt="serverinfo"
src="https://github.com/user-attachments/assets/6556afac-1971-4112-9686-b71137072c5f"
/>

---

<img width="1376" height="919" alt="userarea"
src="https://github.com/user-attachments/assets/d49f0ddb-1f38-4884-b186-8db78bfed4b0"
/>

---

<img width="936" height="232" alt="userslist"
src="https://github.com/user-attachments/assets/0e8a4b4a-719a-4d52-a485-d7577736b43f"
/>

---

<img width="983" height="772" alt="activity"
src="https://github.com/user-attachments/assets/37ef7176-a804-43f7-ae32-ae65e1a2671b"
/>
2026-10-20 15:09:33 -04: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-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.