Commit Graph
976 Commits
Author SHA1 Message Date
robert dennis 6640531ca3 search on input 2026-11-11 12:34:50 -05:00
Michał Fox 5c57b63d00 Validate upload size against the node limit before uploading (#7305)
the file manager only found out a file was over the node's upload limit
after sending the whole thing. the client server resource now exposes
the node's `upload_size` and `useFileUploader` rejects bigger files
before any bytes go out. added `useFileUploader.spec.tsx`, the api
fixtures have the new field.
2026-11-11 12:34:47 -05:00
Sky Mulley e7993cb2ef import indent with tab into file editor 2026-11-10 16:28:05 +00:00
robert dennis e6f1b328f6 review cleanup 2026-11-05 15:40:41 -05:00
robert dennis e467b4b5ff review fixes 2026-11-05 15:10:39 -05:00
robert dennis 7ac0f6c285 brand refactor 2026-11-05 14:23:59 -05:00
ItzLinaton c900fc0ccc Feat: Random password generator (V2) (#7272)
Added a secure password generator to admin customer user manager and
user account manager as shown below:

## Extra Details:
- Added a reusable password field component with:
  - 17-character random password generation
  - Uppercase and lowercase letters
  - Numbers
  - Symbols
  - Password visibility toggle button
  - Clipboard copy button after the new password is generated
- Integrated the feature into:
  - Admin customer user creation area
  - Admin customer user editing area
  - Customer User account settings

<img width="430" height="466"
alt="{2DD29137-22E3-4446-8DB5-4F37AD322DF2}"
src="https://github.com/user-attachments/assets/03ef614a-3f4e-4ba6-bdbc-1a99e07959c6"
/>

<img width="427" height="120"
alt="{A3073146-78CD-459C-A837-EBAB72E8ABA4}"
src="https://github.com/user-attachments/assets/5c9cf583-4941-4c0d-893a-fe85c4e46f3c"
/>

<img width="413" height="142"
alt="{2DB05B11-7781-403D-ABC1-CEF11D31E1E8}"
src="https://github.com/user-attachments/assets/0131b770-9120-4f14-8bbd-8dfc374e6263"
/>

<img width="457" height="249"
alt="{8AA4DACE-CBA4-41F1-A5FA-F1EEB3B72632}"
src="https://github.com/user-attachments/assets/2f3004fe-74b2-4060-82eb-ac3f12d5f00f"
/>
2026-11-01 19:50:22 -05:00
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
robert dennis a0a0bb99ab avatar actions 2026-10-20 15:55:48 -04:00
robert dennis f7aa208cab fix ci 2026-10-20 15:46:16 -04:00
robert dennis 3c1b3ca73f theme fixes 2026-10-20 15:30:15 -04:00
robert dennis e71c2c1e22 upload drop check 2026-10-20 15:30:15 -04:00
ItzLinaton 070c37dbe4 Improve subuser permissions card visibility (V2) (#7268)
Before:
<img width="580" height="802" alt="image"
src="https://github.com/user-attachments/assets/778b65d9-1577-41c0-8793-9c272d55c35c"
/>

After:
<img width="556" height="812" alt="image"
src="https://github.com/user-attachments/assets/47242c2e-7d2c-4f5f-a0c3-83f38b104fec"
/>
2026-10-20 15:09:46 -04:00
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
BHASKAR MELKANI 67c36e6088 feat: Refactor CodemirrorEditor for improved syntax highlighting (#7298)
This PR improves YAML syntax highlighting, selection rendering, and
search decorations across nested structures, multiline content, and
differently styled tokens.

Issues and fixes:

- YAML tokens in nested structures were not always classified correctly,
causing inconsistent syntax highlighting. The token classification logic
was refined to handle nested structures more reliably.
- Selection highlighting could render incorrectly across multiline
content and differently styled tokens. Selection rendering was updated
to preserve consistent highlighting in these cases.
- Search decorations could become misaligned with highlighted text.
Search marker alignment was corrected so decorations match the
corresponding content.
- Scrollbar markers did not always accurately reflect search results.
Scrollbar marker handling was improved to keep markers synchronized with
search decorations.
- Decoration layers could overlap or render in the wrong order.
Decoration layering was adjusted to ensure selection and search
decorations are displayed correctly.
2026-10-20 15:08:38 -04:00
Haseeb d9c303f951 Fix file upload detection (#7299)
Files with an empty MIME type were incorrectly rejected as folders when
their size was 0 or exactly 4096 bytes. One matching file also blocked
the entire upload batch.
This removes the MIME type and size heuristic from `useFileUploader` and
checks dropped items using `webkitGetAsEntry()` instead. Actual
directories remain rejected when the browser provides directory entry
information.
2026-10-19 15:06:19 -04:00
Sandip Ghimire eb1611f9e2 fix(console): improve terminal layout, resize reliability, and rendering performance (#7300)
## Description

This PR resolves several visual artifacts, resize desync issues, and
edge-case rendering glitches with the Ghostty-web terminal integration
in the server console:

### 1. Reliable Terminal Resizing & Layout Transitions
- **Bypass `FitAddon` throttle lock (`unlockFitResize`)**: Ghostty's
`FitAddon` sets a 50ms `_isResizing` lock via `setTimeout`, which
silently dropped subsequent `fit()` calls triggered immediately after
layout/route transitions. Unlocking this ensures post-layout re-fits are
never lost.
- **WASM Line Bounds & Viewport Clamping (`patchWasmTerminal`)**:
- Guards against potential null/undefined line reads from the WASM
terminal (`getLine` and `getScrollbackLine` fallback to empty arrays).
- Synchronizes and clamps viewport coordinates during `term.resize` to
prevent scroll desync and jumps when resizing windows or toggling
devtools.

### 2. Precise Font Metrics & Clean Canvas Redraws
- **Canvas-based Font Measurement (`measureTerminalFont`)**: Accurately
computes font cell width, baseline, ascent, and descent using a 2D
canvas context instead of relying on rough estimates.
- **Artifact Prevention in `adjustRendering`**: Automatically flushes
and repaints the canvas background with the theme background color when
viewport offsets change or full redraws occur, eliminating ghosting/text
smearing.

### 3. Clear & Output Lifecycle Improvements
- **Terminal Clear Handling**: Extends `preserveScrollPositionOnWrite`
to intercept `term.clear()`, issuing ANSI reset escapes
(`\x1b[2J\x1b[3J\x1b[H`) and resetting viewport positions.
- **Prefix Newlines**: Normalizes `term.writeln` to ensure initial logs
and scrollback buffer transitions don't overwrite the first line.

### 4. Layout & Styling Polish
- Replaced negative margin gutter compensation hacks (`-ml-4
w-[calc(100%+2rem)]`) in `Terminal.tsx` with clean `w-full` and
`overflow-hidden`.
- Ensured consistent container and input rounding across mobile and
desktop breakpoints.

---

## Changes Overview

- `resources/scripts/components/server/console/useTerminal.ts`: Added
`unlockFitResize`, `measureTerminalFont`, `patchWasmTerminal`, viewport
clamping, canvas clear on redraw, and clear handling.
- `resources/scripts/themes/classic/views/server/console/Terminal.tsx`:
Cleaned container classes and removed mobile negative-margin overrides.
2026-10-19 15:06:01 -04:00
Sky Mulley bf761ec11a fix console addon changes breaking lint tests 2026-10-19 09:15:48 +01:00
Sky Mulley d9cdc18cbf fix issue where modals on low width resolutions could break page container 2026-10-19 07:58:49 +01:00
Sky Mulley 33c5dd6f31 migrate terminal improvements to addons 2026-10-18 21:33:16 +01:00
ItzLinaton f573796549 Feat: Added startup command copy button (V2) (#7297)
Added a startup command copy button to the server startup page.

---

<img width="807" height="161"
alt="{8878188F-11F7-4EF5-B020-2D5C6AB12B94}"
src="https://github.com/user-attachments/assets/affe9c30-b74d-49a9-b5cb-e4adc121fe98"
/>
2026-10-16 14:12:23 -04:00
Sky Mulley 266544edfc Interactable Terminal Improvements (#7296)
Fixes some internal Discord discussions.

Most of this works around gaps in ghostty-web 0.4.0's selection and link
handling. Several fixes reach into its private internals, so the
dependency is pinned to `0.4.0` now instead of free spinning.

Ghostty seems to be an overall regression as a library over XTerm, below
are some internal hook ins to provide vital functionality back to the
console that v1 originally had.

### Selection
- Double-click selects the word on the line you clicked. Ghostty's
`getWordAtCell` reads the live screen row whatever the scroll position,
so once you'd scrolled up it picked a word from a different line.
- Triple-click now selects and copies the whole line, including every
row it wraps onto.
- Copying no longer puts a line break where a line only wrapped.
Ghostty's `getSelection` puts `\n` between every row, which broke copied
URLs and commands. The fix covers Ctrl/Cmd+C, drag-copy, right-click
copy and triple-click. If a row wrapped at a space, the space is kept.

### Links
- URLs that wrap across rows are detected as one link, and hovering any
part of them underlines the whole URL.
- Only `http:` and `https:` links can be opened. Console output comes
from the game server, so a `javascript:`, `file:` or `ssh:` link in the
output is ignored rather than passed to `window.open`.

### Focus
- The page no longer scrolls when the console takes focus. Ghostty
focuses the console on open and its hidden textarea on every press; both
now focus with `preventScroll`.
2026-10-16 14:11:59 -04:00
Sky Mulley e7f6f13c61 properly handle user being sent back to login page on password change 2026-10-16 14:20:45 +01:00
robert dennis ea742d332f test fixes 2026-10-14 04:01:26 -04:00
Mohamed Beydoun 977552ef30 fix egg export downloading as a json string (#7289) 2026-10-14 03:53:34 -04:00
robert dennis a9eccc5477 theme setup 2026-10-13 15:06:23 -04:00
robert dennis 836d4773ac theme setting tabs 2026-10-13 15:01:03 -04:00
robert dennis 344de12a8e slot check timing 2026-10-13 15:01:03 -04:00
robert dennis f48fdb7d01 slot checks 2026-10-13 02:37:22 -04:00
robert dennis 457b9db021 theme cleanup 2026-10-12 23:40:08 -04:00
robert dennis a9d9cd0121 theme build fixes 2026-10-12 22:34:14 -04:00
robert dennis 2459d82c9e merge runtime 2026-10-12 22:05:22 -04:00
robert dennis c4290460f2 nested views 2026-10-12 21:57:49 -04:00
robert dennis 35aa7f1562 model exports 2026-10-12 21:46:32 -04:00
robert dennis b2a31fe8ea nav cleanup 2026-10-12 21:44:55 -04:00
robert dennis a106396179 test helpers 2026-10-12 21:41:35 -04:00
robert dennis c44f16b23b merge models 2026-10-12 21:40:29 -04:00
robert dennis 4a329b8605 spec cleanup 2026-10-12 21:35:32 -04:00
robert dennis d1275abd67 console features 2026-10-12 21:34:34 -04:00
robert dennis 28683c7531 auth pages 2026-10-12 21:32:37 -04:00
robert dennis ece89e6cae merge tooling 2026-10-12 21:30:37 -04:00
robert dennis e769bbea66 fixture checks 2026-10-12 21:30:14 -04:00
robert dennis ddbda560fb page status 2026-10-12 21:27:13 -04:00
robert dennis ec22a2d808 admin routes 2026-10-12 21:26:31 -04:00
robert dennis 72cd9dd5cc simplify theme backend 2026-10-12 21:24:43 -04:00
robert dennis 88be3161db theme sheet order 2026-10-12 21:20:14 -04:00
robert dennis 18e6c81b32 drop class snapshot 2026-10-12 21:17:13 -04:00
robert dennis 0cb7cd4a8d dashboard owner actions 2026-10-12 20:23:24 -04:00
robert dennis 5006604b02 theme leftovers 2026-10-12 20:14:47 -04:00
robert dennis 6557f7c588 theme guide 2026-10-12 19:29:07 -04:00