Commit Graph
18 Commits
Author SHA1 Message Date
robert dennis e6f1b328f6 review cleanup 2026-11-05 15:40:41 -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
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
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 d1275abd67 console features 2026-10-12 21:34:34 -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 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 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