Commit Graph
794 Commits
Author SHA1 Message Date
robert dennis e1a9abde2d openapi path params 2026-10-12 05:18:54 -04:00
Sandip Ghimire 0d3ce311eb feat(editor): align CodeMirror search widget with panel theme and fix replace toggle (#7279)
The default CodeMirror search & replace bar in the File Editor was
unstyled, pushed the editor code down when opened, used mismatched
fonts/colors, and had a broken Replace collapse toggle.

### Changes
- Replaced the default search panel with a compact, floating top-right
widget (VS Code style) that doesn't shift editor content.
- Applied panel theme variables for backgrounds, inputs
(`var(--input)`), borders (`var(--border)`), primary buttons
(`var(--primary)`), and a danger close button (`var(--destructive)`).
- Set all widget inputs and buttons to use the theme font
(`var(--font-sans)`).
- Change the Replace section so it stays hidden by default and properly
collapses/expands on chevron click or `Ctrl+H`.
2026-10-11 17:49:53 -04:00
robert dennis cf956515d9 console scroll easing 2026-10-11 01:11:32 -04:00
robert dennis 706d7ea5a9 console scrollbar 2026-10-11 01:11:32 -04:00
robert dennis 93e4b98882 touch scrolling for console 2026-10-11 00:31:17 -04:00
robert dennis 2aa8e5fc64 stop console opening mobile keyboard 2026-10-11 00:18:11 -04:00
robert dennis 890dc0d863 fix 2fa code pattern 2026-10-11 00:13:04 -04:00
robert dennis 489528e269 format 2026-10-09 17:43:41 -04:00
robert dennis cd5925da87 egg config round trip 2026-10-09 17:34:17 -04:00
ItzLinaton b3446c5324 Fix: Centered Bulletpoints in MassActionsBar (V2) (#7265)
Before:
<img width="569" height="248"
alt="{92F812C3-A2EA-45FD-BC4E-F27AE92A8BE5}"
src="https://github.com/user-attachments/assets/2744d97d-0279-4b18-8fc2-e1935f9a9306"
/>

Fixed:
<img width="558" height="244"
alt="{9D6E50EA-81CD-49FC-96DE-E48BF4B21534}"
src="https://github.com/user-attachments/assets/e8e2a56e-8cb0-483b-8597-0e6c0acc008e"
/>
2026-10-09 15:34:32 -04:00
ItzLinaton 70353cfc94 Added new "Add All Permission" button (V2) (#7264)
* Added a button to add all available permissions to new subusers
<img width="1165" height="328"
alt="{210F04F1-6476-42F0-ACE5-59DA080A2327}"
src="https://github.com/user-attachments/assets/cc54783b-8d8e-4e4b-9b14-e7f82d24d671"
/>
2026-10-09 15:33:53 -04:00
Sky Mulley efca702654 discard resource count double up 2026-10-09 13:23:04 +01:00
Sky Mulley b7ed839c0b node about tab should display exact resources like the node table 2026-10-09 12:48:42 +01:00
Sky Mulleyandrobert dennis 71dd1911a5 Implement native support for hooking into forms with extensions (#7256)
## Problem

Extensions can render content before and after most admin pages, but not
inside the forms on them. The only exception was
`panel.users.detail.form`, and it could only re-render or validate the
user's existing fields. An extension had no way to add a field of its
own, because the Panel's save requests had nowhere to carry the value
and nothing loaded it back.

## Changes

### Slots inside every admin form

The create and edit forms for users, nodes, servers, eggs, locations,
mounts and database hosts each render a slot inside the form, such as
`panel.servers.create.form` and `panel.servers.detail.details.form`. The
slot receives the native `form`, the form's `kind` (`admin.server`), and
`mode` (`'create'` or `'edit'`). Edit slots also receive the saved
`resource`. Contributed `form.AppField` controls share the form's
validation, pending state and submit action.

### Extension-owned fields

An extension registers fields in its provider:

```php
$this->registerFormFields('admin.user', ['plan' => ['required', 'in:free,pro']]);

$this->registerFormFields(
    'admin.node',
    ['region' => ['required', 'string', 'max:32']],
    fn (Node $node): array => ['region' => NodeRegion::for($node)],
    fn (Node $node, array $values) => NodeRegion::store($node, $values['region']),
);
```

The 14 create and update endpoints accept an optional `extensions: {
[extensionId]: { [field]: value } }` body field. Each extension's rules
are applied as `extensions.{id}.{field}`, and only when the request
includes that extension's values. The extension's `save` callback runs
in the same database transaction as the core change, so a failure rolls
both back.

Server creation is the exception. Wings reads the new server while
provisioning it, so extension values are saved after provisioning
succeeds, outside the transaction.

For Node updates when Wings is unreachable. `UpdateNode` saves the node
and then throws `ConfigurationNotPersistedException` as a warning. The
node controller defers that exception until the extension values are
saved, so the node update is no longer rolled back.

`GET /api/admin/extensions/forms/{form}/{id}` returns every extension's
current values. It requires the resource's read permission. Edit pages
fetch it before rendering the form, but only when an extension has
registered fields for that form; the bootstrap payload now lists them
per extension in `forms`.

For users and servers the callbacks are optional, and values are stored
in the extension's scoped settings (`settings()->forUser($user)`,
`forServer($server)`). Values are limited to strings, numbers, booleans,
`null`, or lists of strings and numbers, which keeps the OpenAPI schema
and generated types concrete.

A `load` callback that throws, or returns an invalid value, is recorded
against the extension in the `form` phase. The frontend then hides that
extension's slot contributions on the edit page, so a save cannot
overwrite its stored values with defaults. Fields of a disabled or
failed extension are neither validated, saved nor loaded.

---------

Co-authored-by: robert dennis <31261583+robertdrakedennis@users.noreply.github.com>
2026-10-09 01:26:45 -04:00
robert dennis 135b298560 alpha cleanup 2026-10-08 19:17:30 -04:00
robert dennis e217e42360 complexity cleanup 2026-10-08 18:49:15 -04:00
robert dennis 3314ce8630 chart cleanup 2026-10-08 17:48:30 -04:00
robert dennis 56fb932a73 action cleanup 2026-10-08 17:40:00 -04:00
robert dennis cceaa535b8 lint cleanup 2026-10-08 16:54:59 -04:00
robert dennis b516dc3646 registry cleanup 2026-10-08 16:53:56 -04:00
Sky Mulley dd81db5d4d implement ability to set icon for extensions 2026-10-07 10:46:54 +01:00
robert dennis 7db75f2e4a install handling cleanup 2026-10-06 20:11:59 -04:00
Sky Mulley 4adda9b8df don't snap to bottom for new lines in console log 2026-10-06 23:10:31 +01:00
Sky Mulley 9bccb278a9 redirect to intended path after login 2026-10-06 23:05:44 +01:00
Sky Mulley faa806668b mask database password when viewing credentials 2026-10-06 22:32:56 +01:00
Sky Mulley b40a98afa7 don't force docker image selector to inherit the height of the startup parameter field 2026-10-06 22:26:11 +01:00
Sky Mulley 8461ffe454 fix issue where input rules could come off the container card if too long 2026-10-06 22:25:48 +01:00
Sky Mulley 879b3fa11c convert mobile navbar to dropdown, similar to admin 2026-10-06 21:23:17 +01:00
Sky Mulley 829639a316 properly handle extensions adding menu items causing nav to become too long to handle 2026-10-06 21:16:27 +01:00
Sky Mulley 0a3bb17f06 switch login default logo to new pterodacty logo 2026-10-06 14:15:31 +01:00
Sky Mulley 240aaf62ea properly handle file permissions regarding to creation and updating 2026-10-06 13:51:34 +01:00
Sky Mulley 76b49b1be1 improve reset password security 2026-10-06 13:13:39 +01:00
Sky Mulley c848794e13 hide recaptcha inputted secret key from settings 2026-10-06 12:57:00 +01:00
Sky Mulley e8fd6f1e29 fix issue where tooltips would block the first press of buttons in the nav on mobile 2026-10-06 12:40:59 +01:00
Sky Mulley 652bd19a1c Merge branch '2.0-develop' of https://github.com/pterodactyl/panel into 2.0-develop 2026-10-06 12:19:07 +01:00
Sky Mulley 6bc4fb33c4 fix issue where console terminals could leak between sessions 2026-10-06 12:19:05 +01:00
BletzziandClaude Opus 5.5 55ad1f5e4b Keep the file editor focus ring above the active line and gutters
The focus ring was an outline on .cm-editor with a negative offset. The
scroller and the sticky gutters are positioned, so they painted over it:
the active line hid the ring on the right and the line numbers hid it on
the left. Draw the ring on a ::after layer above them instead.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-06 01:01:16 -03:00
robert dennis d3410f8543 fix react doctor errors 2026-10-05 23:28:29 -04:00
robert dennis 8244e6be04 fix formatting 2026-10-05 23:19:35 -04:00
Sky Mulley 45eeda1999 only validate for a payload on scheduled actions that require a payload 2026-10-06 03:31:47 +01:00
Sky Mulley c2d979702b fix issue where router icons for addresses on server list get squashed at certain resolutions 2026-10-06 02:57:14 +01:00
6c0413e39b Start 2.0 development
Co-authored-by: Anthony <anthony@infraly.co>
Co-authored-by: Sky Mulley <daniel.mulley@outlook.com>
2026-10-05 18:10:18 -04:00
MagicDev c227a20f32 fix/apikey-overflow (#5563)
This fixes an overflow bug that occurs on smaller screens on the
ApiKeyModal opening.

**Context**:
Whenever you create an `Client Api Key` the `ApiModal` is opened on the
user's interface and the key is displayed, but as it wasn't correctly
*overflow-protected* it overflows on smaller screens.

- Before:

![Screenshot_20260209-175019](https://github.com/user-attachments/assets/fa14b7c5-6b90-43f9-9ae0-07a87f485fda)
- After:

![Screenshot_20260210-133232.png](https://github.com/user-attachments/assets/c2e907b1-a075-4d7c-8b18-6980c7475337)

Closes #5625
2026-06-05 11:12:09 -04:00
_KroZen_ 151ac019ae Reset page on showOnlyAdmin change (#5559)
closes #5557
2026-02-12 09:51:10 -08:00
VoidValueandcesarmr-github e5a9706d6c Fix Unicode character width rendering using Unicode11Addon in xterm.js [TO FIX #2484] (#5524)
fixes #2484

Co-authored-by: cesarmr-github <167689141+cesarmr-github@users.noreply.github.com>
2026-02-11 16:05:02 -08:00
Dane Everitt d648a63e13 Update i18n to resolve issues rendering unclosed div tags (#5547) 2026-02-01 13:19:41 -08:00
Dawid Jaworski a1f7d287ac feat: Auth Required modal for hytale (#5526)
This PR add modal related to requiring auth to download or update hytale
server.

Egg feature to use: `hytale_oauth`

Preview:


https://github.com/user-attachments/assets/77bd4f16-ba5b-4652-88b1-7abfd4ab45b8
2026-01-12 12:22:49 -06:00
Dane Everitt 1fdaf008b4 don't endlessly poll websocket when disconnected due to suspension (#5464) 2025-12-26 09:51:54 -08:00
Dane Everitt bbb1294267 Support zero-byte file uploads (#5459) 2025-12-24 17:32:53 -08:00
Dane Everitt ab093344e7 Don't delete the initial content when using "Ctrl+Z" to undo (#5448)
Resolves https://github.com/pterodactyl/panel/issues/5263
2025-12-20 16:38:10 -08:00