Skip to content

Commit 3b6e7e3

Browse files
t3dotggclaude
andcommitted
feat(desktop): update popover shows each release as a short note
Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent 5fd6102 commit 3b6e7e3

4 files changed

Lines changed: 24 additions & 44 deletions

File tree

‎apps/web/src/components/sidebar/SidebarUpdatePill.browser.test.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ function publish(update: DesktopUpdateState | null) {
8181
});
8282
}
8383

84-
const releaseNotes = () => document.querySelector('[aria-label="Nightly update release notes"]');
84+
const releaseNotes = () => document.querySelector('[aria-label="Update release notes"]');
8585

8686
describe("SidebarUpdatePill release notes", () => {
8787
it("closes when the release notes stop applying", async () => {

‎apps/web/src/components/sidebar/SidebarUpdatePill.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,7 @@ function SidebarUpdateControl() {
542542
{showReleaseNotesPopover && state ? (
543543
<PopoverPopup
544544
align="center"
545-
aria-label="Nightly update release notes"
545+
aria-label="Update release notes"
546546
initialFocus={false}
547547
onKeyDownCapture={(event) => {
548548
if (

‎apps/web/src/components/sidebar/SidebarUpdateReleaseNotes.tsx‎

Lines changed: 21 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import {
77
} from "../desktopUpdate.logic";
88
import { formatRelativeTimeLabel } from "../../timestampFormat";
99
import { openDesktopUpdateReleaseNotes } from "../desktopUpdate.toast";
10-
import { Separator } from "../ui/separator";
1110

1211
type DesktopUpdateShell = Pick<DesktopBridge, "openExternal">;
1312

@@ -31,15 +30,15 @@ function ReleaseLink({
3130
}) {
3231
return (
3332
<a
34-
className="mt-2 inline-flex items-center gap-1 rounded-sm text-xs leading-5 text-muted-foreground underline decoration-dotted underline-offset-4 outline-none transition-colors hover:text-foreground focus-visible:text-foreground focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring"
33+
className="mt-1 inline-flex items-center gap-1 rounded-sm text-xs leading-5 text-muted-foreground underline-offset-2 outline-none transition-colors hover:text-foreground hover:underline focus-visible:text-foreground focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring"
3534
href={releaseUrl}
3635
onClick={(event) => {
3736
event.preventDefault();
3837
void openDesktopUpdateReleaseNotes(shell, releaseUrl);
3938
}}
4039
>
4140
{children}
42-
<ExternalLinkIcon aria-hidden className="size-3 shrink-0" strokeWidth={2.25} />
41+
<ExternalLinkIcon aria-hidden className="size-3 shrink-0" strokeWidth={2} />
4342
</a>
4443
);
4544
}
@@ -61,7 +60,7 @@ export function SidebarUpdateReleaseNotes({
6160
)?.releasedAt;
6261

6362
return (
64-
<div className="flex max-h-[calc(var(--available-height)-0.5rem)] min-h-0 w-fit max-w-[min(24rem,calc(100vw-2rem))] flex-col text-left">
63+
<div className="flex max-h-[calc(var(--available-height)-0.5rem)] min-h-0 w-fit max-w-[min(24rem,calc(100vw-2rem))] flex-col text-left text-pretty">
6564
<div className="shrink-0 px-1">
6665
{state.status === "available" ? (
6766
<div>
@@ -80,7 +79,7 @@ export function SidebarUpdateReleaseNotes({
8079
<div className="text-sm leading-5 font-medium">{tooltip}</div>
8180
)}
8281
</div>
83-
<div className="min-h-0 max-h-[min(28rem,calc(100vh-6rem))] overflow-y-auto px-1 pt-4 pb-1">
82+
<div className="min-h-0 max-h-[min(28rem,calc(100vh-6rem))] overflow-y-auto px-1 pt-3 pb-1">
8483
{state.releaseNotes.map((releaseNote, index) => {
8584
const releaseUrl = getDesktopUpdateReleaseUrl(releaseNote.version);
8685
const omittedItemCount = Math.max(0, releaseNote.totalItems - releaseNote.items.length);
@@ -91,44 +90,26 @@ export function SidebarUpdateReleaseNotes({
9190

9291
if (releaseNote.intro !== undefined) {
9392
return (
94-
<div key={releaseNote.version}>
95-
{index > 0 && <Separator className="my-3" />}
96-
<section>
97-
{index > 0 ? (
98-
<h3 className="mb-1.5 text-foreground text-xs leading-4 font-semibold">
99-
{releaseNote.version}
100-
</h3>
101-
) : null}
102-
<p className="break-words text-sm leading-6 text-popover-foreground">
103-
{releaseNote.intro}
104-
</p>
105-
{releaseNote.items.length > 0 ? (
106-
<>
107-
<h3 className="mt-3 text-foreground text-xs leading-4 font-semibold">
108-
Fixes
109-
</h3>
110-
<div className="mt-1 space-y-0.5 text-xs leading-5 text-popover-foreground/80">
111-
{keyReleaseNoteItems(releaseNote.items).map(({ item, key }) => (
112-
<p className="break-words" key={key}>
113-
{item}
114-
</p>
115-
))}
116-
</div>
117-
</>
118-
) : null}
119-
{releaseUrl ? (
120-
<ReleaseLink releaseUrl={releaseUrl} shell={shell}>
121-
{releaseNote.stats ?? "View release on GitHub"}
122-
</ReleaseLink>
123-
) : null}
124-
</section>
125-
</div>
93+
<section className={index > 0 ? "mt-4" : undefined} key={releaseNote.version}>
94+
{index > 0 ? (
95+
<h3 className="mb-1 text-xs leading-4 font-medium text-muted-foreground">
96+
{releaseNote.version}
97+
</h3>
98+
) : null}
99+
<p className="break-words text-xs leading-5 text-popover-foreground">
100+
{releaseNote.intro}
101+
</p>
102+
{releaseUrl ? (
103+
<ReleaseLink releaseUrl={releaseUrl} shell={shell}>
104+
{releaseNote.stats ?? "View release on GitHub"}
105+
</ReleaseLink>
106+
) : null}
107+
</section>
126108
);
127109
}
128110

129111
return (
130-
<div key={releaseNote.version}>
131-
{index > 0 && <Separator className="my-3" />}
112+
<div className={index > 0 ? "mt-4" : undefined} key={releaseNote.version}>
132113
<section>
133114
<h3 className="text-foreground text-xs leading-4 font-semibold">
134115
{index === 0 ? "What's changed" : `Changes in ${releaseNote.version}`}
@@ -150,8 +131,7 @@ export function SidebarUpdateReleaseNotes({
150131
);
151132
})}
152133
{state.omittedReleaseCount > 0 ? (
153-
<div>
154-
<Separator className="my-3" />
134+
<div className="mt-3">
155135
<ReleaseLink releaseUrl={getDesktopUpdateReleaseHistoryUrl()} shell={shell}>
156136
{`${state.omittedReleaseCount} older ${state.omittedReleaseCount === 1 ? "release" : "releases"} on GitHub`}
157137
</ReleaseLink>

‎docs/operations/release.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ the version.
4242
- Only plain stable `X.Y.Z` releases are marked as the repository's latest release.
4343
- Nightly runs are always GitHub prereleases and never marked latest.
4444
- Automatically generated release notes are pinned to the previous tag in the same channel, so stable compares to the previous stable tag and nightly compares to the previous nightly tag.
45-
- The release job's **Write release notes** step (`scripts/generate-release-notes.ts`) builds the body: a computed header line, a short summary from `gpt-6.1-terra`, and GitHub's generated list folded under `<details>`. It needs the `OPENAI_API_KEY` secret. The summary leaves out commits whose scopes are all mobile; the header counts every commit. The desktop update popover and the nightly Discord post show only the part above `<details>`. If the step fails or there is nothing to summarize, it writes no file and the release uses GitHub's generated notes as before.
45+
- The release job's **Write release notes** step (`scripts/generate-release-notes.ts`) builds the body: a computed header line, a short summary from `gpt-6.1-terra`, and GitHub's generated list folded under `<details>`. It needs the `OPENAI_API_KEY` secret. The summary leaves out commits whose scopes are all mobile; the header counts every commit. The desktop update popover, on every channel, shows the highlights paragraph and the header counts as a short note per release, with the offered release's age from the update feed's `releaseDate`. The nightly Discord post shows the part above `<details>`. If the step fails or there is nothing to summarize, it writes no file and the release uses GitHub's generated notes as before.
4646
- Includes Electron auto-update metadata (for example `latest*.yml`, `nightly*.yml`, and `*.blockmap`) in release assets.
4747
- Builds a self-contained CLI archive per platform (`t3-<version>-<platform>-<arch>.tar.gz`, `.zip` on Windows) in the same job as that target's desktop artifact and attaches them to the GitHub Release with a `SHA256SUMS` file, on every channel, for five targets: macOS arm64, Linux x64 and arm64, Windows x64 and arm64. Every archive is smoke-tested on hardware of its own architecture, and every one but the Windows archives is also built and signed there. There is no macOS x64 archive: Node single-executables are unsupported on x64 macOS (the SEA docs list macOS as arm64 only) and the binary segfaults on start; the x64 desktop app is Electron and unaffected.
4848
- The archive holds the server as a Node single-executable (`scripts/build-cli-archive.ts`), so unpacking it needs neither Node, npm, nor a compiler. It is the only form in which T3 Code manages a runtime: the desktop's SSH environments, the boot service, `t3 update`, and the install scripts all download and verify this archive against `SHA256SUMS`. The `t3` npm package exists for people who run `npx t3` or `npm install -g t3` themselves, and it downloads this same archive too; nothing in the product installs from npm. The `curl | sh` installers are `scripts/install.sh` and `scripts/install.ps1`; the marketing site copies them into its `public/` at build time (`apps/marketing/scripts/stage-install-scripts.mjs`) and serves them at `t3.codes/install.sh` and `/install.ps1`.

0 commit comments

Comments
 (0)