Skip to content

Rename toVueObject -> toReactObject on User model - #5610

Open
camwhi-te wants to merge 36 commits into
pterodactyl:developfrom
Jexactyl:camwhi-te/rename-user-ui-object
Open

Rename toVueObject -> toReactObject on User model#5610
camwhi-te wants to merge 36 commits into
pterodactyl:developfrom
Jexactyl:camwhi-te/rename-user-ui-object

Conversation

@camwhi-te

Copy link
Copy Markdown
Contributor

Simple change renaming Eloquent helper in accordance with actual UI stack.

Also, who decided to use Vue initially? ew.

@robertdrakedennis

Copy link
Copy Markdown
Contributor

@camwhi-te Can you refactor this to toJsObject

@robertdrakedennis
robertdrakedennis changed the base branch from 1.0-develop to develop May 31, 2026 20:29
MagicDevM and others added 26 commits June 5, 2026 11:12
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 pterodactyl#5625
The admin node view renders the daemon-supplied cpu_count without escaping. Coerce it to an integer so untrusted node telemetry cannot inject markup.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
The configuration endpoint returns the node's decrypted daemon token, so gate it behind write access instead of read. The shared single-node view request keeps read access.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Fixes a couple of UI/UX issues on the Admin Application API page
(`new.blade.php`):

- Mobile Layout: Fixed the radio buttons stacking vertically and
breaking the page on small screens. The table now scrolls horizontally
and stays clean.
- Button States: The bulk select buttons ("Read All", etc.) now
dynamically change color to indicate which option is currently active.

Screenshots:
- Before:
![Screenshot_20260402_172507](https://github.com/user-attachments/assets/2eea7798-5b18-48e4-89a4-aebedb16972e)

- After:
![Screenshot_20260402_172522](https://github.com/user-attachments/assets/7a6b1f8d-89e0-402f-af77-9edd83d5fb97)

Co-authored-by: Robert Dennis <31261583+robertdrakedennis@users.noreply.github.com>
Replace references to the Laravel 5.7 validation docs with links to the
11.x documentation in resources/views/admin/eggs/variables.blade.php


<img width="374" height="25" alt="image"
src="https://github.com/user-attachments/assets/38090fe3-6ed8-4a73-b700-f8ce8d3060ab"
/>
Currently, when a node is under maintenance, the server row keeps
loading indefinitely. This means that there will be no requests to the
resource API, and the user will be able to know this without directly
accessing the server.

old:
<img width="1347" height="603" alt="tempsnip"
src="https://github.com/user-attachments/assets/523b6321-6ecc-45d2-8cb4-b6e14a473a44"
/>
new:
<img width="1258" height="618" alt="tempsnip2"
src="https://github.com/user-attachments/assets/5f4b77d5-1c49-4f30-a068-a96f8bc83177"
/>

(I reopened it because I decided to delete my fork to clean things up.
And use better techniques)
fixes pterodactyl#5576

---------

Co-authored-by: MrSoulPenguin <28676680+MrSoulPenguin@users.noreply.github.com>
This simply adds a link to [this
page](https://pterodactyl.io/panel/1.0/updating.html) when the panel
isn't up to date.
…#5644)

### Description

User creation was not properly logged within the action log, neither
from sub-user invite or manual user creation. This PR adds the relevant
log and includes testing.

### Manual testing scenarios

1. Invite a user within any created server
2. Create a user in the admin
3. Verify both users appear as an action in the action log

### Questions or comments

AI was used for secondary testing, QA and code review. No code was
written by AI.

### Resolved issues:
1. [x] resolves pterodactyl#5631
…ilename (pterodactyl#5637)

Fix for pterodactyl#5630 

The compress_one string in resources/lang/en/activity.php referenced
:file as the placeholder, but the backend passes the filename under a
files array. This caused the activity log to render {file}} instead of
the actual filename

Changed :file to :files.0 to correctly resolve the first filename from
the array.

Solution was identified by the issue reporter (@marioenache).
…DB connection type. (pterodactyl#5688)

### Summary
Quick one line fix that fixes the migration failure reported in pterodactyl#5683

Most installs load the database/schema/mysql-schema.sql and never have
to replay these migrations, since the environment variable
db_connection=mariadb was set it doesn't use the squashed schema and has
to replay all migrations from 2016. This connection variable is
supported though it seems as per

https://github.com/pterodactyl/panel/blob/1.0-develop/config/database.php#L63
but it also defaulted above to mysql

This field was updated to include the backticks as part of
pterodactyl@8ca0989

but I'm unable to confirm why, if I've missed something I apologize but
other references in this file seem to also use the barename only this
one was quoted.

### Testing

Built from the current v1.14.1 release branch Dockerfile. With the
schema dump removed to force a full replay for testing with the mysql
database connection aswell.

- MariaDB 11.8.8 - All migrations passed
- MySQL - All Migrations Passed

Installs with the dump present are also unaffected by this modification.

[Apologies for bad formatting, i'm terrible with markdown]
robertdrakedennis and others added 8 commits July 28, 2026 04:44
…tall scripts" setting is enabled (pterodactyl#5696)

### Description

You're able to enable a "skip egg install scripts" per server, while
still being able to reinstall a server. With this setting enabled,
reinstalling a server has no functional use, the server is locked and
shutdown, then simply unlocked immediately afterwards after a success
signal from wings. This PR disables the reinstall button when skip
install scripts is enabled for both the user and admin, with a little
component telling you why you cannot reinstall. The reinstall button is
not disabled if the server is in a status that reinstall could resolve
(eg. failed install).

### Resolved issues:
1. [x] resolves pterodactyl#5306
pterodactyl/pterodactyl-cdn publishes
https://cdn.pterodactyl.io/releases/latest.json, which every install
polls to decide whether to show the update banner. It cannot read the
new version from the API itself, because the release created above is
still a draft and /releases/latest excludes drafts, so the tag is passed
in the dispatch payload.

Prerelease tags are skipped: version_compare on the panel side would
tell every stable install to "upgrade" to a release candidate.

GITHUB_TOKEN cannot be used here as it has no access to another
repository, hence CDN_DISPATCH_TOKEN.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.