Commit Graph
36 Commits
Author SHA1 Message Date
robert dennis e6f1b328f6 review cleanup 2026-11-05 15:40:41 -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 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
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 d9cdc18cbf fix issue where modals on low width resolutions could break page container 2026-10-19 07:58:49 +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
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 c44f16b23b merge models 2026-10-12 21:40:29 -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 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 18e6c81b32 drop class snapshot 2026-10-12 21:17:13 -04:00
robert dennis 5006604b02 theme leftovers 2026-10-12 20:14:47 -04:00
robert dennis 51860b98ba theme polish 2026-10-12 19:29:07 -04:00
robert dennis 5d17261cbd theme cleanup 2026-10-12 17:59:50 -04:00
robert dennis 4c8256c08c theme fixes 2026-10-12 17:59:43 -04:00
robert dennis d92fef284a lazy view models 2026-10-12 16:36:06 -04:00
robert dennis 9ae0337820 theme docs 2026-10-12 16:24:48 -04:00
robert dennis ea66bddf0a workbench polish 2026-10-12 16:24:43 -04:00
robert dennis 38d2aadccc console and file views 2026-10-12 15:31:58 -04:00
robert dennis 20b037a168 server views 2026-10-12 15:19:54 -04:00
robert dennis 69a065ca02 account views 2026-10-12 15:12:49 -04:00
robert dennis ec60d70e4c theme tooling 2026-10-12 14:24:49 -04:00
robert dennis 3bb514cefa layout views 2026-10-12 14:22:58 -04:00
robert dennis 9cf7804d20 skin primitives 2026-10-12 14:22:47 -04:00
robert dennis 305933bfdb classic class capture 2026-10-12 14:22:47 -04:00
robert dennis 7b8b592900 theme views 2026-10-12 08:14:53 -04:00