From ef43e55bcc4ec171a09812705038e50cc2aa557f Mon Sep 17 00:00:00 2001 From: "GPT 5.4" Date: Thu, 19 Mar 2026 06:30:51 +0800 Subject: [PATCH 1/4] Hide featured nightly from other builds list Co-authored-by: Sebastian Thiel --- apps/desktop/src/lib/files/filetreeV3.ts | 4 ++-- apps/desktop/src/lib/hunks/hunk.ts | 2 +- apps/web/src/routes/nightly/+page.svelte | 8 ++++---- apps/web/src/routes/nightly/+page.ts | 5 ++++- 4 files changed, 11 insertions(+), 8 deletions(-) diff --git a/apps/desktop/src/lib/files/filetreeV3.ts b/apps/desktop/src/lib/files/filetreeV3.ts index b6ab2b8f432..55ac9678e87 100644 --- a/apps/desktop/src/lib/files/filetreeV3.ts +++ b/apps/desktop/src/lib/files/filetreeV3.ts @@ -96,7 +96,7 @@ export function sortLikeFileTree(changes: TreeChange[]): TreeChange[] { const minLength = Math.min(partsA.length, partsB.length); for (let i = 0; i < minLength - 1; i++) { - const comparison = partsA[i]!.localeCompare(partsB[i]!, FILE_SORT_LOCALE, FILE_SORT_CONFIG); + const comparison = partsA[i]!.localeCompare(partsB[i], FILE_SORT_LOCALE, FILE_SORT_CONFIG); if (comparison !== 0) { return comparison; } @@ -109,7 +109,7 @@ export function sortLikeFileTree(changes: TreeChange[]): TreeChange[] { // Same depth, compare final component return partsA[partsA.length - 1]!.localeCompare( - partsB[partsB.length - 1]!, + partsB[partsB.length - 1], FILE_SORT_LOCALE, FILE_SORT_CONFIG, ); diff --git a/apps/desktop/src/lib/hunks/hunk.ts b/apps/desktop/src/lib/hunks/hunk.ts index 77ed9b804c3..1a1df623555 100644 --- a/apps/desktop/src/lib/hunks/hunk.ts +++ b/apps/desktop/src/lib/hunks/hunk.ts @@ -347,7 +347,7 @@ export function canBePartiallySelected(patch: Patch): boolean { return false; } - if (patch.hunks.length === 1 && isFileDeletionHunk(patch.hunks[0]!)) { + if (patch.hunks.length === 1 && isFileDeletionHunk(patch.hunks[0])) { // Only one hunk and it's a file deletion return false; } diff --git a/apps/web/src/routes/nightly/+page.svelte b/apps/web/src/routes/nightly/+page.svelte index 1ca92e42b60..c07115bd422 100644 --- a/apps/web/src/routes/nightly/+page.svelte +++ b/apps/web/src/routes/nightly/+page.svelte @@ -8,7 +8,7 @@ interface Props { data: { - nightlies: Release[]; + otherNightlies: Release[]; latestNightly: Release | null; latestNightlyBuilds: LatestReleaseBuilds; }; @@ -16,7 +16,7 @@ const { data }: Props = $props(); - const { latestNightly, latestNightlyBuilds } = data; + const { latestNightly, latestNightlyBuilds, otherNightlies } = data; let linuxArch = $state<"x86-64" | "ARM64">("x86-64"); let expandedRelease: string | null = $state(null); @@ -202,13 +202,13 @@ {/if} -{#if data.nightlies.length > 0} +{#if otherNightlies.length > 0}

Other nightly builds:

- {#each data.nightlies as release, index (`${release.version}-${release.sha}-${index}`)} + {#each otherNightlies as release, index (`${release.version}-${release.sha}-${index}`)}
+

+ Other releases: +

+ {#each data.releases.filter((release) => release.version !== latestRelease.version) as release (release.version)} Date: Thu, 19 Mar 2026 11:48:35 +0100 Subject: [PATCH 4/4] refactor: replace h3 with h2 and simplify nightly list --- apps/web/src/routes/downloads/+page.svelte | 8 ++++---- apps/web/src/routes/nightly/+page.svelte | 6 +++--- apps/web/src/routes/nightly/+page.ts | 4 +--- 3 files changed, 8 insertions(+), 10 deletions(-) diff --git a/apps/web/src/routes/downloads/+page.svelte b/apps/web/src/routes/downloads/+page.svelte index 006c127d599..b4f9e9cd7d9 100644 --- a/apps/web/src/routes/downloads/+page.svelte +++ b/apps/web/src/routes/downloads/+page.svelte @@ -186,9 +186,9 @@
-

+

Other releases: -

+ {#each data.releases.filter((release) => release.version !== latestRelease.version) as release (release.version)} 0}
-

+

Other nightly builds: -

+ {#each otherNightlies as release, index (`${release.version}-${release.sha}-${index}`)}
@@ -474,7 +474,7 @@ border-radius: var(--radius-xl); font-family: var(--font-mono); - & h3 { + & h2 { padding: 16px 24px 12px; font-size: 40px; line-height: 1.2; diff --git a/apps/web/src/routes/nightly/+page.ts b/apps/web/src/routes/nightly/+page.ts index efcd7b0d03b..20cf88c0299 100644 --- a/apps/web/src/routes/nightly/+page.ts +++ b/apps/web/src/routes/nightly/+page.ts @@ -6,9 +6,7 @@ export const load: PageLoad = async () => { const nightlies = await fetchAndProcessReleases(15, "nightly"); const latestNightly = nightlies[0] || null; const latestNightlyBuilds = latestNightly ? createLatestReleaseBuilds(latestNightly) : {}; - const otherNightlies = latestNightly - ? nightlies.filter((release) => release.version !== latestNightly.version) - : nightlies; + const otherNightlies = nightlies.slice(1); return { otherNightlies,