release-2.7.1 (#1296)

* Add Helm and GitOps deployment setup

* fix: build better-sqlite3 from source in Docker (#1267)

* fix: preserve runtime SSL settings (#1268)

* fix: support forwarding from the memory SSH agent (#1269)

* fix: support forwarding from the memory agent

* style: format memory agent test

* fix: prompt for encrypted SFTP key passphrases (#1270)

* fix: prompt for SFTP key passphrases

* style: format SSH key utility test

* fix: include host context in automation notifications (#1271)

* fix: include host context in automation notifications

* style: format automation notification changes

* fix: reserve sidebar height for host tags (#1272)

* fix: keep host action rows stable at large font sizes (#1273)

* fix: honor certificate setting during server probe (#1274)

* fix: package standard Linux icon sizes (#1275)

* fix: avoid duplicate Docker HTTPS listener (#1276)

* Fix host status without metrics collection (#1277)

* fix: allow eight-digit secure auth codes (#1263)

Allow TOTP prompts to accept secure auth codes longer than six digits without blocking valid authentication attempts.

Generated with Codebuff 🤖

Co-authored-by: Chetan <chetan.development@gmail.com>
Co-authored-by: Codebuff <noreply@codebuff.com>

* Harden Helm deployment defaults

* Update Helm workflow action

* Exclude Helm templates from Prettier

* Fix browser RDP file drops (#1279)

* Fix Proxmox guest credential usernames (#1280)

* Add WSL local terminal option (#1281)

* refactor: split the transfer engine into focused modules (#1282)

* refactor: extract SFTP promisify helpers into sftp-promisify module

* refactor: extract transfer timing and rate stats into transfer-stats module

* refactor: extract transfer error classes and recovery checks into transfer-errors module

* refactor: extract host/path utility helpers into transfer-host-utils module

* refactor: extract SFTP directory tree helpers into transfer-sftp-dir module

* refactor: extract segment copy job builder into transfer-segment-copy module

* refactor: extract file scan and sample helpers into transfer-scan module

* refactor: move throttled progress helper into transfer-stats module

* style: format transfer modules

* perf: optimize tmux monitor aggregation (#1283)

* fix: reserve credential tag row height (#1284)

* feat: edit AI provider model settings (#1285)

* fix: clarify click-to-expand host setting (#1286)

* fix: allow portable imports on remote databases (#1287)

* fix: allow HTTPS to share the configured port (#1288)

* fix: resolve synced jump hosts on the server (#1289)

* fix: make terminal clipboard shortcuts layout independent (#1290)

* fix: use compatible fetch dispatcher for Tailscale (#1291)

* fix: add OIDC environment recovery override (#1292)

* fix: coalesce rapid mobile terminal input (#1293)

* fix: coalesce rapid mobile terminal input

* fix: support clean xterm patch installs

* fix: resolve synced remote desktop host IDs (#1295)

* feat: make the SFTP file manager path bar editable (#1294)

Co-authored-by: Maxime Bonillo <257463937+dropafterfree@users.noreply.github.com>
Co-authored-by: ZacharyZcR <zacharyzcr1984@gmail.com>

* feat: add passkey sign in to the login screen

* fix: remove rounded corners from the host list search bar

* fix: stop image storage settings text wrapping to one word per line

* fix: prevent malformed websocket messages from crashing the server

* chore: increment version

* fix: remove gaps between host rows in the sidebar list

Keep sub-pixel row measurements and stop wiping the size cache on hover.

* fix: Failed to connect through jump hosts (#1180)

https://github.com/Termix-SSH/Support/issues/1180

* feat: Progress bar for file downloads in the file manager (#1158)

https://github.com/Termix-SSH/Support/issues/1158

* feat: Allow setting Silent OIDC Login via ENV var (#1174)

https://github.com/Termix-SSH/Support/issues/1174

* feat: `IdentityFile` to limit the number of attempts by agents (#1165)

https://github.com/Termix-SSH/Support/issues/1165

* feat: Credentials clone (#1159)

https://github.com/Termix-SSH/Support/issues/1159

* chore: update release notes

* docs: move helm setup guide to the docs site

* fix: type errors in FilteredAgent agent identity handling

* fix: remove stale better-sqlite3 prebuilds so the source build is used

* fix: actually build better-sqlite3 from source so arm64 docker images work

* fix: credential edit pencil in host editor and add clone action to credential list

* fix: clear editingHost so the credential pencil actually opens the editor

* chore: run format and lint

* fix: folder drag and drop upload failing in the file manager

* chore: sync Crowdin translations for 2.7.1

---------

Co-authored-by: alex-ctms <alex-ctms@users.noreply.github.com>
Co-authored-by: ZacharyZcR <zacharyzcr1984@gmail.com>
Co-authored-by: Chetan Kumar <74929596+ckloop@users.noreply.github.com>
Co-authored-by: Chetan <chetan.development@gmail.com>
Co-authored-by: Codebuff <noreply@codebuff.com>
Co-authored-by: ZacharyZcR <payasonorahc@protonmail.com>
Co-authored-by: dropafterfree <maxime.bonillo@gmail.com>
Co-authored-by: Maxime Bonillo <257463937+dropafterfree@users.noreply.github.com>
This commit is contained in:
165 files changed
+6778 -2090

No files matched your search

+19 -13
View File
@@ -183,14 +183,14 @@ export function canCopyHostSudoPassword(host: Host): boolean {
*/
const HOST_ITEM_DENSITY_TOKENS = {
comfortable: {
rowPadding: "pl-2.5 pr-2 py-2",
rowPadding: "pl-[8.75px] pr-[7px] py-[7px]",
nameTextSize: "text-[13px]",
showAddressRow: true,
showTagsRow: true,
showResourceRow: true,
},
compact: {
rowPadding: "pl-2 pr-1.5 py-[5px]",
rowPadding: "pl-[7px] pr-[5.25px] py-[5px]",
nameTextSize: "text-[12px]",
showAddressRow: false,
showTagsRow: false,
@@ -404,7 +404,7 @@ export function HostItem({
depth > 0 ? ({ paddingLeft: depth * 12 } as const) : undefined;
const trayButtonClass =
"flex items-center justify-center size-6.5 text-muted-foreground/60 hover:text-foreground hover:bg-muted transition-colors";
"flex items-center justify-center size-[22.75px] text-muted-foreground/60 hover:text-foreground hover:bg-muted transition-colors";
const sshActions = getSshActions(host);
const availableActions: TabType[] = [
@@ -822,16 +822,22 @@ export function HostItem({
!shouldUseClickTray &&
!selectionMode &&
(isHovered || isMenuOpen);
// A collapsed tray must not earn the text column's gap-[3.5px]. Clipping to
// max-h-0 leaves it a flex item, so every closed row measured ~3.5px taller
// than its slot and the virtualizer spread the rows apart to match. The
// negative margin cancels the gap while keeping the element in flow, so the
// modes that animate open still have something to transition.
const trayCollapsedClass = `max-h-0 opacity-0 ${isCompact ? "" : "-mt-[3.5px]"}`;
const trayVisibilityClass =
alwaysShowTray || actionsOnly
? `overflow-hidden transition-all duration-150 ease-out ${trayOpenState || alwaysShowTray ? "max-h-[130px] opacity-100" : "max-h-0 opacity-0"}`
? `overflow-hidden transition-all duration-150 ease-out ${trayOpenState || alwaysShowTray ? "max-h-[130px] opacity-100" : trayCollapsedClass}`
: shouldUseClickTray
? `overflow-hidden transition-all duration-150 ease-out ${trayOpenState ? "max-h-[130px] opacity-100" : "max-h-0 opacity-0"}`
? `overflow-hidden transition-all duration-150 ease-out ${trayOpenState ? "max-h-[130px] opacity-100" : trayCollapsedClass}`
: // No transition in hover mode: the row's height is set by the
// virtualizer and snaps in a single frame, so animating the tray
// against it leaves the open tray overflowing its shortened row for
// the length of the animation. Both change together instead.
`overflow-hidden ${hoverTrayOpen ? "max-h-[130px] opacity-100" : "max-h-0 opacity-0"}`;
`overflow-hidden ${hoverTrayOpen ? "max-h-[130px] opacity-100" : trayCollapsedClass}`;
return (
<div
@@ -980,7 +986,7 @@ export function HostItem({
)}
<div
className={`flex flex-col flex-1 min-w-0 ${tokens.rowPadding} ${isCompact ? "" : "gap-1"}`}
className={`flex flex-col flex-1 min-w-0 ${tokens.rowPadding} ${isCompact ? "" : "gap-[3.5px]"}`}
>
{/* Name row */}
<div data-drag-label className="flex items-center gap-1.5 min-w-0">
@@ -1073,10 +1079,10 @@ export function HostItem({
e.stopPropagation();
onTrayOpenChange?.(!isTrayOpen);
}}
className="ml-auto flex items-center justify-center size-5 rounded text-muted-foreground/30 hover:text-muted-foreground hover:bg-muted-foreground/10 transition-colors shrink-0"
className="ml-auto flex items-center justify-center size-[17.5px] rounded text-muted-foreground/30 hover:text-muted-foreground hover:bg-muted-foreground/10 transition-colors shrink-0"
>
<ChevronRight
className={`size-3 transition-transform duration-150 ${isTrayOpen ? "rotate-90" : ""}`}
className={`size-[10.5px] transition-transform duration-150 ${isTrayOpen ? "rotate-90" : ""}`}
/>
</button>
)}
@@ -1115,7 +1121,7 @@ export function HostItem({
(alwaysShowTray ||
actionsOnly ||
(shouldUseClickTray && isTrayOpen)) && (
<div className="flex items-center flex-wrap gap-1">
<div className="flex items-center flex-wrap gap-[3.5px]">
{connectionButtons}
</div>
)}
@@ -1126,7 +1132,7 @@ export function HostItem({
isOnline &&
((host.cpu != null && host.cpu > 0) ||
(host.ram != null && host.ram > 0)) && (
<div className="flex items-center gap-3 pt-1.5">
<div className="flex items-center gap-[10.5px] pt-[5.25px]">
{host.cpu != null && host.cpu > 0 && (
<div className="flex items-center gap-1.5">
<Cpu className="size-2.5 shrink-0 text-muted-foreground/40" />
@@ -1163,14 +1169,14 @@ export function HostItem({
>
{/* Connection buttons — only shown here when not already shown above */}
{!alwaysShowTray && !actionsOnly && !shouldUseClickTray && (
<div className="flex items-center flex-wrap gap-0.5">
<div className="flex items-center flex-wrap gap-[1.75px]">
{connectionButtons}
</div>
)}
{/* Management buttons row */}
<div
className={`flex items-center gap-0.5 border-t border-border/30 ${alwaysShowTray || actionsOnly || shouldUseClickTray ? "pt-1.5" : "pt-1 mt-0.5"}`}
className={`flex items-center gap-[1.75px] border-t border-border/30 ${alwaysShowTray || actionsOnly || shouldUseClickTray ? "pt-[5.25px]" : "pt-[3.5px] mt-[1.75px]"}`}
>
{managementButtons}
</div>
+67 -35
View File
@@ -66,6 +66,7 @@ import {
rowKind,
ROOT_PARENT,
} from "./visible-rows";
import { RESOURCE_ROW_EXTRA, rendersResourceRow } from "./row-metrics";
import { ReorderIndicator } from "@/sidebar/ReorderIndicator";
import { useSidebarSelection } from "./hooks/useSidebarSelection";
import { useSidebarDragState } from "./hooks/useSidebarDragState";
@@ -699,34 +700,47 @@ export function SidebarTree({
const CLICK_CHEVRON_EXTRA = clickTrayActive ? 4.5 : 0;
const HOST_ROW_HEIGHT = (isCompactDensity ? 27.5 : 45) + CLICK_CHEVRON_EXTRA;
const FOLDER_ROW_HEIGHT = 31.5;
// "always" mode permanently renders the connection-buttons row (plus the
// management row/resource bars for online hosts) -- measured directly
// rather than derived, since it has its own fixed shape.
// "always" mode permanently renders the connection-buttons row plus the
// management row -- measured directly rather than derived, since it has its
// own fixed shape. The resource bars are NOT included: they only render for
// an online host with CPU/RAM, so rowHeight adds RESOURCE_ROW_EXTRA per row.
// Carries the click-mode chevron so the open row lands at its measured
// 104.75 rather than always mode's 100.25. The term cancels out of
// OPEN_TRAY_EXTRA below, leaving HOST_ROW_HEIGHT to supply it once.
const ALWAYS_ROW_HEIGHT =
(isCompactDensity ? 73.75 : 100.25) + CLICK_CHEVRON_EXTRA;
(isCompactDensity ? 73.75 : 83) + CLICK_CHEVRON_EXTRA;
const OPEN_TRAY_EXTRA = ALWAYS_ROW_HEIGHT - HOST_ROW_HEIGHT;
// "actionsOnly" permanently renders just the connection-buttons row above
// the tray; the management row/resource bars stay collapsed until toggled.
const ACTIONS_ONLY_ROW_HEIGHT = isCompactDensity ? 50.25 : 75.75;
// Opening the management row from actionsOnly's closed state (which
// already includes the connection row).
const ACTIONS_ONLY_OPEN_ROW_HEIGHT = isCompactDensity ? 79.25 : 104.75;
// Hiding the resource bars only ever makes a row shorter than the height
// reserved for it, which the existing shapes already tolerate: the bars are
// conditional on the host being online with CPU/RAM data, so an offline host
// has always rendered short of ALWAYS_ROW_HEIGHT. Simple therefore pairs
// showResourceBars:false with trayTrigger:"actionsOnly", whose measured
// height excludes the resource/management row to begin with.
// already includes the connection row). Excludes the resource bars for the
// same reason as ALWAYS_ROW_HEIGHT -- rowHeight adds them per row.
const ACTIONS_ONLY_OPEN_ROW_HEIGHT = isCompactDensity ? 79.25 : 87.5;
// Tag pills are a separate flex row. Comfortable density adds the row plus
// its gap; compact density pulls it upward by 2px but still needs a slot.
const TAG_ROW_EXTRA = isCompactDensity ? 12.5 : 18.5;
// showResourceBars:false simply drops RESOURCE_ROW_EXTRA from every row.
const rowHeight = useCallback(
(index: number) => {
const row = visibleRows[index];
if (!row) return FOLDER_ROW_HEIGHT;
if (isFolder(row.item)) return FOLDER_ROW_HEIGHT;
if (alwaysShowActions) return ALWAYS_ROW_HEIGHT;
const tagExtra = showTags && row.item.tags?.length ? TAG_ROW_EXTRA : 0;
// The resource bars only render for an online host that reported CPU/RAM.
// Reserving their height unconditionally left a gap under every offline
// row. measureElement corrects any drift from live status this estimate
// can't see.
const resourceExtra = rendersResourceRow(
row.item,
showResourceBars,
isCompactDensity,
)
? RESOURCE_ROW_EXTRA
: 0;
if (alwaysShowActions)
return ALWAYS_ROW_HEIGHT + tagExtra + resourceExtra;
const toggledOpen =
(openTrayHostId === row.item.id || openMenuHostId === row.item.id) &&
(clickTrayActive || actionsOnly);
@@ -738,10 +752,20 @@ export function SidebarTree({
!selectionMode &&
(hoveredHostId === row.item.id || openMenuHostId === row.item.id);
const isOpen = toggledOpen || hoverOpen;
// The bars live inside the tray, so they only take space once it opens.
const openResourceExtra = isOpen ? resourceExtra : 0;
if (actionsOnly) {
return isOpen ? ACTIONS_ONLY_OPEN_ROW_HEIGHT : ACTIONS_ONLY_ROW_HEIGHT;
return (
(isOpen ? ACTIONS_ONLY_OPEN_ROW_HEIGHT : ACTIONS_ONLY_ROW_HEIGHT) +
tagExtra +
openResourceExtra
);
}
return isOpen ? HOST_ROW_HEIGHT + OPEN_TRAY_EXTRA : HOST_ROW_HEIGHT;
return (
(isOpen ? HOST_ROW_HEIGHT + OPEN_TRAY_EXTRA : HOST_ROW_HEIGHT) +
tagExtra +
openResourceExtra
);
},
[
visibleRows,
@@ -752,12 +776,16 @@ export function SidebarTree({
clickTrayActive,
alwaysShowActions,
actionsOnly,
showTags,
HOST_ROW_HEIGHT,
CLICK_CHEVRON_EXTRA,
OPEN_TRAY_EXTRA,
ALWAYS_ROW_HEIGHT,
ACTIONS_ONLY_ROW_HEIGHT,
ACTIONS_ONLY_OPEN_ROW_HEIGHT,
TAG_ROW_EXTRA,
showResourceBars,
isCompactDensity,
],
);
@@ -766,6 +794,15 @@ export function SidebarTree({
getScrollElement: () => parentRef.current,
estimateSize: rowHeight,
overscan: 12,
// The library's default rounds every measurement to a whole pixel. Rows
// here land on fractions (a 63.84px row rounds to 64), and the rounded-up
// size becomes the slot pitch -- leaving a visible sliver under every
// single row, which stacks into the gaps the list is judged by. Keep the
// sub-pixel size so slots sit flush against the row above.
measureElement: (element, entry) => {
const box = entry?.borderBoxSize?.[0];
return box ? box.blockSize : element.getBoundingClientRect().height;
},
getItemKey: (index) => {
const row = visibleRows[index];
if (!row) return index;
@@ -792,28 +829,21 @@ export function SidebarTree({
return reorderHoverEdge === "before" ? slot.start : slot.start + slot.size;
})();
// Fixed heights mean estimateSize already IS the real size. Do not attach
// measureElement here: its index-based ResizeObserver measurements can be
// reused for a different row after a deletion and override the fixed size.
// The virtualizer still needs telling when a row's height classification
// changes (tray opened/closed, tree reshaped, density/trigger changed).
// rowHeight is only an estimate: a row's real height also depends on live
// state the tree can't cheaply know per row (an offline host drops the
// resource bars "always" mode reserves space for). measureElement corrects
// it from the DOM, keyed by getItemKey rather than index so a deleted row's
// size is never reused for whatever shifts into its slot.
//
// measure() wipes the ENTIRE measurement cache, so it may only run when
// every row's shape changes at once -- a density/trigger/tag switch. Hover
// and tray state are deliberately absent: they change one row, which
// re-renders and re-measures itself through the observer anyway, whereas
// calling measure() for them threw all 5000 rows back to their estimates
// and made the list visibly jump apart on every pointer move.
useLayoutEffect(() => {
virtualizer.measure();
}, [
virtualizer,
openFolders,
closedHostParents,
openTrayHostId,
openMenuHostId,
hoveredHostId,
selectionMode,
query,
visibleRows.length,
density,
trayTrigger,
showTags,
showResourceBars,
]);
}, [virtualizer, density, trayTrigger, showTags, showResourceBars]);
if (loading) {
return (
@@ -909,6 +939,8 @@ export function SidebarTree({
return (
<div
key={vItem.key}
data-index={vItem.index}
ref={virtualizer.measureElement}
className="absolute top-0 left-0 w-full"
style={{
transform: `translateY(${vItem.start}px)`,
+21
View File
@@ -0,0 +1,21 @@
import type { Host } from "@/types/ui-types";
/** The CPU/RAM bar row, including its pt-[5.25px]. */
export const RESOURCE_ROW_EXTRA = 17.25;
/**
* Whether a host row will actually render the resource bars.
*
* Mirrors HostItem's own condition. The virtualizer used to reserve their
* height for every row in "always" mode, which left a gap under each offline
* host -- most obvious down a long list where nothing breaks up the rows.
*/
export function rendersResourceRow(
host: Pick<Host, "online" | "cpu" | "ram">,
showResourceBars: boolean,
isCompactDensity: boolean,
): boolean {
if (!showResourceBars || isCompactDensity) return false;
if (!host.online) return false;
return (host.cpu ?? 0) > 0 || (host.ram ?? 0) > 0;
}