GeezerVison is showing github.com — chore(upstream): sync marcode through cd096b9ad5a4 by maarco · Pull Request #37 · maarco/marcode
chore(upstream): sync marcode through cd096b9ad5a4
#37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and
privacy statement . We’ll occasionally send you account related emails.
Already on GitHub?
Sign in
to your account
Uh oh!
There was an error while loading. Please reload this page.
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
165 commits
Select commit
Hold shift + click to select a range
8601797
fix(web): align update toast release notes link (#6322)
t3-code-bot[bot] Aug 12, 2026
770946d
fix(web): render tooltips above dropdowns (#6241)
extoci Aug 12, 2026
8d24b51
fix(web): open modified PR clicks in browser (#6278)
t3-code-bot[bot] Aug 12, 2026
18918d1
Fix mobile command popover glass rendering (#6370)
juliusmarminge Aug 12, 2026
e3a9c25
test(mobile): seed snoozed showcase threads (#5155)
PixPMusic Aug 12, 2026
9666b87
fix(web): preserve appearance mode when changing themes (#6343)
extoci Aug 12, 2026
d0b8d63
feat(connect): deregister account environments from any client (#4844)
StiensWout Aug 12, 2026
b28f9bf
feat(web): pull request surfaces — filters & qualifiers, all-server l…
Bil0000 Aug 12, 2026
2eb099f
fix(web): cmd+click sidebar PR numbers open in the browser (#6378)
t3dotgg Aug 12, 2026
ac1264e
feat(web): project favicon and workspace icons in command subtitles (…
gsimone Aug 12, 2026
da6253b
web/settings: fix source control scan on relay environments (#6230)
dominic-r Aug 12, 2026
33f9705
fix(web): make reset zoom hover visible (#6385)
t3-code-bot[bot] Aug 12, 2026
1e59b4c
fix(web): keep the typed prompt when a draft changes repo (#6393)
t3dotgg Aug 12, 2026
6bc6cb6
fix(web): keep diff file lists scrollable past expanded files (#6423)
dominic-r Aug 13, 2026
df19f6c
fix(server): align Codex collaboration prompts (#6432)
none23 Aug 13, 2026
5015d7c
fix(web): keep turn minimap stable as composer grows (#6414)
extoci Aug 13, 2026
97db94c
fix(web): keep pull request panel within viewport (#6451)
Bil0000 Aug 13, 2026
9513e62
Add bil0000 to VOUCHED contributors list (#6462)
maria-rcks Aug 13, 2026
2ab188f
fix: ignore pull request actions in latency tracker (#6476)
t3-code-bot[bot] Aug 13, 2026
9e20194
Remove rebase requirement before opening PR (#6479)
juliusmarminge Aug 13, 2026
fd51561
fix(mobile): extend blockquotes across wrapped lines (#6482)
chrisdeeming Aug 13, 2026
83ad26c
fix(mobile): prevent invalid HTML entities from crashing markdown (#6…
Lucenx9 Aug 13, 2026
1b16ed6
fix(web): avoid Clerk close button overlap (#6442)
t3-code-bot[bot] Aug 13, 2026
2fab18e
fix(web): show unlinked icon when viewport aspect ratio is unlocked (…
UtkarshUsername Aug 13, 2026
92d4a2e
fix(web): scope pull request errors to their environment (#6490)
Adamulek123 Aug 13, 2026
bad1143
fix(mobile): show a real settings cog in the Android sidebar header (…
paul-vd Aug 13, 2026
23d45d9
fix(web): restore default stage artwork colors (#6535)
t3-code-bot[bot] Aug 13, 2026
5ff3a03
fix(web): align sidebar wordmark label (#6086)
WarheadTaylor Aug 13, 2026
96bfa67
fix(web): align the snoozed thread wake icon (#6215)
RakshithBhat03 Aug 13, 2026
db1507e
feat: allow disabling auto-settle on merge (#5880)
t3dotgg Aug 13, 2026
85389b9
Nest mobile task settings in bottom sheets (#6224)
juliusmarminge Aug 13, 2026
5304f3e
chore(mobile): bump app version to 1.0.4
t3-code-bot[bot] Aug 14, 2026
59be6f7
fix(web): simplify the desktop-managed server update banner copy (#6549)
t3dotgg Aug 14, 2026
e15f655
fix(web): show background policy tooltips sooner (#6506)
davidhu2000 Aug 14, 2026
710fd0e
feat(desktop): add favicons to the Browser panel (#5644)
chrisdeeming Aug 14, 2026
9fd788b
fix(preview): only show browser-ready local servers (#6021)
chrisdeeming Aug 14, 2026
7e01d33
perf(build): stop unpacking node_modules wholesale from the Windows a…
btsouth Aug 14, 2026
baaeda3
fix: avoid stale Live Activities when publishing is disabled (#6325)
juliusmarminge Aug 14, 2026
8f9ab08
fix(mobile): add breathing room between the git progress overlay and …
PollyGlot Aug 14, 2026
4a2f8b0
fix(web): keep thread rename open during IME composition (#6281)
MichaelCharles Aug 14, 2026
6ae44b4
refactor(mobile): name the iOS nav bar height fallback (#6589)
PollyGlot Aug 14, 2026
b3b4b57
fix(mobile): preserve keyboard suggestions while typing (#6323)
juliusmarminge Aug 14, 2026
21a3669
fix(mobile): prevent OTA update restart crashes (#6324)
juliusmarminge Aug 14, 2026
038560e
fix(web): align every titlebar control cluster on one shared inset (#…
juliusmarminge Aug 14, 2026
184d8ef
fix(mobile): steer active turns by default (#6543)
chrisdeeming Aug 14, 2026
1a65994
fix(web): clarify desktop update status (#6504)
StiensWout Aug 14, 2026
8099140
fix(server): terminal subprocess polling no longer floods the PID spa…
SunkenInTime Aug 14, 2026
1add47b
fix(web): add copying terminal selection with ctrl+c in the web app (…
UtkarshUsername Aug 14, 2026
c9063f0
perf(desktop): speed up Windows update installation (#6169)
StiensWout Aug 14, 2026
196c8ea
fix(web): style sidebar action tooltips (#6371)
t3-code-bot[bot] Aug 14, 2026
9885a84
refactor(web): simplify global styling (#6381)
t3-code-bot[bot] Aug 14, 2026
f071907
fix(server): handle files named HEAD in git status (#6397)
Lucenx9 Aug 14, 2026
e25021a
feat(packaging): maintain AUR packages in-repo (#4128)
maria-rcks Aug 14, 2026
74f7b43
fix(web): bound OKLCH gamut mapping (#6485)
Lucenx9 Aug 14, 2026
57a299a
feat(web): open remote environments in your local editor over SSH (#6…
t3dotgg Aug 15, 2026
d7abd7f
feat(web): refresh workspace layouts and tool activity
maria-rcks Aug 15, 2026
804cba4
revert: refresh workspace layouts and tool activity (#6657)
maria-rcks Aug 15, 2026
48ddb3d
feat(web): older chat timestamps show the date, not just the time (#6…
t3dotgg Aug 15, 2026
8c628f1
fix(web): align pull request action menu rows (#6534)
Bil0000 Aug 15, 2026
6ae9662
fix(web): restore selected themes in dark mode (#6665)
StiensWout Aug 15, 2026
f0ebc62
fix(web): improve Codex usage graph contrast (#6669)
StiensWout Aug 15, 2026
e9ae134
docs: route feature requests to Discussions
juliusmarminge Aug 15, 2026
d8a6dfd
fix(desktop): app zoom no longer zooms the preview browser (#6649)
juliusmarminge Aug 15, 2026
afca73d
fix(server): keep provider notification consumers alive past startSes…
btsouth Aug 15, 2026
7547280
fix(server): treat removed Bitbucket permissions endpoint as unknown,…
lnieuwenhuis Aug 15, 2026
672216d
fix(ssh): let cold remote servers finish starting (#6168)
gb1095 Aug 15, 2026
1e87029
fix(web): preserve Claude insight line breaks (#4344)
nateEc Aug 15, 2026
a6ac27e
feat(web): accept file drops across the chat workspace (#6636)
dbalders Aug 15, 2026
eaa6c47
fix(web): widen ordered-list marker gutter for 3+ digit item numbers …
lnieuwenhuis Aug 15, 2026
71c6f82
fix(server): bound thread activity hydration (#6153)
t3-code-bot[bot] Aug 15, 2026
48cba7d
fix(web): restore the Archive action in the default sidebar thread me…
lnieuwenhuis Aug 15, 2026
9f26656
fix(web): open diff files from nested projects (#6174)
gb1095 Aug 15, 2026
b277cc6
fix(mobile): use tryOpenExternalUrl for markdown links in ThreadFeed …
mohamedmastouri-hue Aug 15, 2026
2cb1a26
fix(web): open the file a bare filename reference names (#6297)
Brechard Aug 15, 2026
ddee418
fix(server): stop the provider title mirror from overwriting real thr…
repparw Aug 15, 2026
178da6b
fix(shared): match source-control providers by DNS label (#6175)
gb1095 Aug 15, 2026
b7dbbba
feat(desktop): Chrome-style hold-to-quit (#5508)
Bil0000 Aug 15, 2026
d94fbda
fix(gitlab): submit review comments on context lines (#6348)
tarik02 Aug 15, 2026
db3278f
fix(marketing): keep Grok mark clear of mobile hero copy (#4542)
NicL9923 Aug 15, 2026
3bc4fdf
fix(mobile): recover the QR pairing scanner when camera access is den…
hey-jj Aug 15, 2026
a38cac8
fix(web): keep a long path from running under the folder picker butto…
Sy-D Aug 15, 2026
270489b
fix(terminal): right-click paste works in the terminal (#5240)
StiensWout Aug 15, 2026
4db5075
fix(mobile): explain iOS-only settings on Android (#4981)
danvernon Aug 15, 2026
9bdd912
fix(web): stop counting a workflow coordinator as a working agent (#6…
Rishet11 Aug 15, 2026
6e6d1b4
fix(web): keep floating preview anchored after panel closes (#6547)
AksharP5 Aug 15, 2026
a7c5ad5
fix(web): unstick /connect after in-modal sign-in by redirecting to t…
TorbenWetter Aug 15, 2026
7afa184
fix(web): keep send reachable while a turn is running on mobile (#4781)
AMohamedAakhil Aug 15, 2026
34a12bc
fix(web): reject unsupported composer image types at attach time (#6574)
mdshzb04 Aug 15, 2026
5ffbf3c
Make ClaudeTextGeneration tests hermetic on Windows (#4508)
mihneaptu Aug 15, 2026
143f713
fix(web): show command output in work log (#4083)
LikoKiko Aug 15, 2026
06dd999
fix(web): reserve sibling column width when resizing the right panel …
Lasdw6 Aug 15, 2026
9e61d0f
fix(web): replace whitespace in new ref names with dashes (#6270)
jorj-pineda Aug 15, 2026
c7b14a8
fix(client-runtime): branch list no longer resets while paging throug…
a20hek Aug 15, 2026
b0de385
fix(web): support Shift+Insert terminal paste (#5982)
aoright Aug 15, 2026
d79f975
fix(web): keep the composer glass aligned with the context strip at a…
Williawar Aug 15, 2026
135dc15
fix(codex): keep background memory out of chats (#5468)
AksharP5 Aug 15, 2026
51c6daa
fix(server): treat a missing Codex rollout as a recoverable resume er…
Rishet11 Aug 15, 2026
3cde99b
fix(web): hide provider Update toast action while an update is runnin…
mrmg Aug 15, 2026
e204f5a
fix(desktop): agent shells inherit a UTF-8 locale on macOS (#6236)
Linus-Boehm Aug 15, 2026
474cc5f
fix(server): ignore Claude command lifecycle messages (#6606)
naveed949 Aug 15, 2026
402c9e0
docs: mention Bitbucket user read scope needed by auth probe (#6291)
thamrx Aug 15, 2026
551f4c9
fix(server): return valid preview action results (#5966)
duncan-vc Aug 15, 2026
e9e4697
fix(claude): make "Always allow for session" stick, and only for the …
kakismash Aug 15, 2026
9d0f2fc
fix(ssh): surface a failed remote t3 install instead of a silent 0-by…
TorbenWetter Aug 15, 2026
f075a58
perf(server): persist the wire projection for streaming tool.updated …
mInrOz Aug 15, 2026
c4556ab
fix(web): stop wrapping partial code block selections in markdown fen…
JoeJoeflyn Aug 15, 2026
efe1773
fix(web): hide T3 Connect toggle in web app settings (#5068)
JoeJoeflyn Aug 15, 2026
a5d3532
fix(web): show provider account accent badge in sidebar rows and hove…
vitalyiegorov Aug 15, 2026
c0f9d91
fix(server): wait for concurrent SQLite writers instead of failing wi…
ostapondo Aug 15, 2026
7c55e86
fix(web): reject oversized prompts before provider turn start (#6602)
naveed949 Aug 15, 2026
40ab7bf
feat(web): collapse the question prompt from its header (#6773)
Jardo-51 Aug 15, 2026
684d703
fix(shared): degrade an unknown system time zone to UTC in usage wind…
Rishet11 Aug 15, 2026
ad47d23
fix(claude): discover repo-local .agents/skills in skill discovery (#…
RoshanMhatre Aug 15, 2026
d715c2e
fix(server): let slow provider CLIs raise their discovery probe budge…
CDVolvik Aug 15, 2026
d5465ae
fix(web): retain terminal PR badges after checkout switch (#4755)
sebbonit Aug 15, 2026
ca37b19
fix(web): show selected model in context window tooltip (#4772)
nqrwhal Aug 15, 2026
5e14737
fix(web): scale command details with code font (#6510)
Serendeep Aug 15, 2026
cf7bfd1
fix(web): preserve XML-like tags in user messages (#4133)
0utsights Aug 15, 2026
7c8848e
fix(desktop): route mouse thumb buttons to the in-app browser (#4459)
akosbalogh Aug 15, 2026
f915320
fix(web): keep the final segment of directory paths with a trailing s…
jorvarea Aug 15, 2026
7083bce
Keep block code plain when copying from rendered markdown (#4468)
yashranaway Aug 15, 2026
21b6fb5
fix(web): add web app manifest so installed app keeps its scope (#4306)
Albro3459 Aug 15, 2026
db02c6b
Skip user hooks during Claude capability probes (#4466)
yashranaway Aug 15, 2026
31d0fb6
fix(mobile): use Android monospace font family (#4609)
tastelessjolt Aug 15, 2026
b72d5d7
fix(desktop): timestamps follow the OS locale instead of en-US (#6190)
brzzdev Aug 15, 2026
1a5ff42
fix(web): keep multi-select questions open after the first click (#6646)
RaitP1 Aug 15, 2026
d550b82
fix(web): stop clipping the changed-files expand hover on Windows (#6…
mrmg Aug 15, 2026
86fb47a
fix(server): allow long-running git pushes (#6499)
devchaudhary24k Aug 15, 2026
160c76c
fix(desktop): keep probing backend readiness while the process is ali…
Aug 15, 2026
dc0ff8f
fix(server): allow install scripts in npm-global provider updates (#5…
hey-jj Aug 15, 2026
7ce4194
fix: detect SSH remotes with non-git user prefixes (e.g. gitlab@) (#3…
JackatDJL Aug 15, 2026
39167eb
fix(web): describe what Ultracode does in the Reasoning picker (#6092)
delltrak Aug 15, 2026
3b54a2a
fix(server): settle pending user-input requests when a Claude session…
AaronAbuUsama Aug 15, 2026
4fc80fc
fix(server): stop replaying a command receipt for a different aggrega…
ostapondo Aug 15, 2026
07e668d
fix(server): settle snoozed threads immediately (#5379)
0bkevin Aug 15, 2026
277a7cb
fix(mobile): prevent crash on sign out in settings (#4899)
shubhu121 Aug 15, 2026
f8bb92b
fix(mobile): local-checkout threads record their branch so PR badges …
Zeus-Deus Aug 15, 2026
62bb974
fix(web): contain long approval commands (#6503)
Serendeep Aug 15, 2026
e17f244
feat(web): make right panel maximize bindable (#5091)
husseinraoouf Aug 15, 2026
61b2e74
fix(server): respect inherited OPENCODE_CONFIG_CONTENT (#4242)
jonocodes Aug 15, 2026
04f2309
fix(marketing): detect Mac chip on homepage download button (#4197)
mahdibm-dev Aug 15, 2026
931e915
Keep the server alive when a response write hits a dead socket (#4470)
yashranaway Aug 15, 2026
664499c
Limit physical key fallback to non-Latin layout output (#4469)
yashranaway Aug 15, 2026
2fc6762
fix: restore CLAUDE.md symlink target (#3929)
NgoQuocViet2001 Aug 15, 2026
ec141c1
fix(clients): default clone destination to folder plus repo name (#5989)
inayayousfi Aug 15, 2026
20a7042
fix(web): keep timestamp date and time in the same locale (#7081)
juliusmarminge Aug 15, 2026
ad11723
feat(desktop): add signal macOS DMG installer background (#6201)
Brechard Aug 15, 2026
a5e29ed
feat(web): send PR line requests to agent (#6597)
Bil0000 Aug 15, 2026
e58cbb9
fix(web): restore dark theme palette (#6663)
eddy-naboulet Aug 15, 2026
2f486ab
refactor(web): simplify advanced theme controls (#7107)
StiensWout Aug 15, 2026
d484735
fix(web): keep highlighted command menu items clear of the scroll fad…
PollyGlot Aug 15, 2026
2773229
test: remove redundant and stale tests (#6267)
t3-code-bot[bot] Aug 16, 2026
3583cd2
test: favor behavior over implementation details (#7157)
t3-code-bot[bot] Aug 16, 2026
d23b181
feat(mobile): add built-in themes (#6619)
chrisdeeming Aug 16, 2026
4cb676c
docs: point CLAUDE.md at AGENTS.md with an @import instead of a symli…
UtkarshUsername Aug 16, 2026
4c1d99d
fix(web): show filenames when commit dialog paths overflow (#6392)
frarredondo Aug 16, 2026
89c52a3
fix(mobile): keep sheet actions below status bar (#6635)
NitayRabi Aug 16, 2026
bab4b6f
fix(web): align Windows update confirmation copy (#7208)
StiensWout Aug 16, 2026
fee10de
feat(lint): ban native title tooltips and migrate to styled Tooltip (…
UtkarshUsername Aug 16, 2026
ba46f92
fix(pull-requests): protect provider API budgets (#6466)
Bil0000 Aug 16, 2026
949feb6
feat(web): configurable browser defaults in Settings → Integrations (…
juliusmarminge Aug 16, 2026
13458e6
fix(web): center the context usage meter (#7296)
StiensWout Aug 17, 2026
cd096b9
feat(server): let users withhold browser access from agents (#7083)
juliusmarminge Aug 17, 2026
3e68c61
chore(upstream): merge pingdotgg/t3code@cd096b9ad5a4
claude Aug 17, 2026
af104c0
fix(web): keep private hosts out of URL shortcut favicon lookups
claude Aug 17, 2026
File filter
Filter by extension
.ts
(4)
.tsx
(23)
All 2 file types selected
Viewed files
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Hide whitespace
Diff view
Hide whitespace
feat(lint): ban native title tooltips and migrate to styled Tooltip (
p…
Loading branch information
Uh oh!
There was an error while loading. Please reload this page.
commit fee10def1afb63cecd9a626aeba2bb063828cf22
There are no files selected for viewing
Original file line number
Diff line number
Diff line change
Expand Up
@@ -12,6 +12,7 @@ import { useState } from "react";
import { Button } from "~/components/ui/button";
import { Input } from "~/components/ui/input";
import { Tooltip, TooltipPopup, TooltipTrigger } from "~/components/ui/tooltip";
import {
Select,
SelectGroup,
Expand Down
Expand Up
@@ -296,26 +297,34 @@ export function BrowserDeviceToolbar({
/>
</form>
<Button
variant="ghost"
size="icon-xs"
type="button"
aria-label={
aspectRatio === null ? "Lock viewport aspect ratio" : "Unlock viewport aspect ratio"
}
aria-pressed={aspectRatio !== null}
title={aspectRatio === null ? "Lock aspect ratio" : "Unlock aspect ratio"}
className={cn(aspectRatio !== null && "bg-accent text-foreground")}
disabled={pending || !customValid}
onPointerDown={(event) => event.preventDefault()}
onClick={toggleAspectRatio}
>
{aspectRatio === null ? (
<Unlink2 className={cn(aspectRatio !== null && "text-foreground")} />
) : (
<Link2 className={cn(aspectRatio !== null && "text-foreground")} />
)}
</Button>
<Tooltip>
<TooltipTrigger
render={
<Button
variant="ghost"
size="icon-xs"
type="button"
aria-label={
aspectRatio === null ? "Lock viewport aspect ratio" : "Unlock viewport aspect ratio"
}
aria-pressed={aspectRatio !== null}
className={cn(aspectRatio !== null && "bg-accent text-foreground")}
disabled={pending || !customValid}
onPointerDown={(event) => event.preventDefault()}
onClick={toggleAspectRatio}
/>
}
>
{aspectRatio === null ? (
<Unlink2 className={cn(aspectRatio !== null && "text-foreground")} />
) : (
<Link2 className={cn(aspectRatio !== null && "text-foreground")} />
)}
</TooltipTrigger>
<TooltipPopup side="top">
{aspectRatio === null ? "Lock aspect ratio" : "Unlock aspect ratio"}
</TooltipPopup>
</Tooltip>
<Button
variant="ghost"
size="icon-xs"
Expand Down
Original file line number
Diff line number
Diff line change
Expand Up
@@ -6348,7 +6348,6 @@ function ChatViewContent(props: ChatViewProps) {
>
<Button
aria-label="Scroll to end"
title="Scroll to end"
onClick={() => scrollToEnd(true)}
className="pointer-events-auto gap-1.5 rounded-full px-3 text-muted-foreground hover:text-foreground"
size="xs"
Expand Down
Original file line number
Diff line number
Diff line change
Expand Up
@@ -59,7 +59,6 @@ export function ConnectionStatusDot({
const dot = (
<button
type="button"
title={tooltipText}
aria-label={tooltipText}
className="relative flex size-3 shrink-0 cursor-help items-center justify-center rounded-full outline-hidden"
>
Expand Down
Original file line number
Diff line number
Diff line change
Expand Up
@@ -583,11 +583,19 @@ export default function DiffPanel({
{selectedTurnId === null && selectedGitScope === "branch" && selectedGitSource?.baseRef && (
<div
className="flex min-w-0 max-w-full items-center gap-2 overflow-hidden text-xs text-muted-foreground"
title={`${selectedGitSource.headRef ?? "HEAD"} → ${selectedGitSource.baseRef}`}
aria-label={`Comparing ${selectedGitSource.headRef ?? "HEAD"} against ${selectedGitSource.baseRef}`}
>
<span className="min-w-0 max-w-48 truncate">{selectedGitSource.headRef ?? "HEAD"}</span>
<ArrowRightIcon className="size-3.5 shrink-0 opacity-70" />
<Tooltip>
<TooltipTrigger render={<span className="flex min-w-0 items-center gap-2" />}>
<span className="min-w-0 max-w-48 truncate">
{selectedGitSource.headRef ?? "HEAD"}
</span>
<ArrowRightIcon className="size-3.5 shrink-0 opacity-70" />
</TooltipTrigger>
<TooltipPopup side="top">
{`${selectedGitSource.headRef ?? "HEAD"} → ${selectedGitSource.baseRef}`}
</TooltipPopup>
</Tooltip>
<Combobox
items={baseRefItems}
filteredItems={filteredBaseRefItems}
Expand Down
Expand Up
@@ -677,12 +685,20 @@ export default function DiffPanel({
/>
</div>
) : choice.remote ? (
<span
className="flex justify-end text-muted-foreground"
title="Remote only"
>
<CheckIcon aria-hidden="true" className="size-3" />
</span>
<Tooltip>
<TooltipTrigger
render={
<span className="flex justify-end text-muted-foreground">
<CheckIcon
role="img"
aria-label="Remote only"
className="size-3"
/>
</span>
}
/>
<TooltipPopup side="top">Remote only</TooltipPopup>
</Tooltip>
) : null}
</div>
</ComboboxItem>
Expand Down
Original file line number
Diff line number
Diff line change
Expand Up
@@ -11,6 +11,7 @@ import { useAtomCommand } from "~/state/use-atom-command";
import { manualServerUpdateCommand } from "~/versionSkew";
import { Button } from "./ui/button";
import { toastManager } from "./ui/toast";
import { Tooltip, TooltipPopup, TooltipTrigger } from "./ui/tooltip";
// The wire "installing" stage is a sub-second launcher handoff, so the UI
// folds it into the download phase; everything after the handoff is the
Expand Down
Expand Up
@@ -45,9 +46,12 @@ export function ServerUpdateProgress({
return (
<div className="mt-1 flex min-w-0 items-center gap-2 text-xs text-destructive" role="alert">
<span className="size-1.5 shrink-0 rounded-full bg-destructive" aria-hidden="true" />
<span className="min-w-0 truncate" title={state.message}>
{state.message}
</span>
<Tooltip>
<TooltipTrigger render={<span className="min-w-0 truncate">{state.message}</span>} />
<TooltipPopup side="top" className="max-w-80">
{state.message}
</TooltipPopup>
</Tooltip>
</div>
);
}
Expand Down
Original file line number
Diff line number
Diff line change
Expand Up
@@ -537,15 +537,21 @@ const SidebarDraftRow = memo(function SidebarDraftRow(props: {
{props.projectTitle}
</span>
<span className="ml-auto flex h-5 min-w-5 shrink-0 items-center justify-end">
<button
type="button"
aria-label="Discard draft"
title="Discard draft"
onClick={handleDiscard}
className="pointer-events-none inline-flex cursor-pointer items-center rounded-md bg-transparent px-1 text-muted-foreground opacity-0 transition-opacity hover:text-foreground focus-visible:pointer-events-auto focus-visible:opacity-100 group-hover/sidebar-row:pointer-events-auto group-hover/sidebar-row:opacity-100"
>
<XIcon className="size-3" />
</button>
<Tooltip>
<TooltipTrigger
render={
<button
type="button"
aria-label="Discard draft"
onClick={handleDiscard}
className="pointer-events-none inline-flex cursor-pointer items-center rounded-md bg-transparent px-1 text-muted-foreground opacity-0 transition-opacity hover:text-foreground focus-visible:pointer-events-auto focus-visible:opacity-100 group-hover/sidebar-row:pointer-events-auto group-hover/sidebar-row:opacity-100"
>
<XIcon className="size-3" />
</button>
}
/>
<TooltipPopup side="top">Discard draft</TooltipPopup>
</Tooltip>
</span>
</div>
<div className="mt-0.5 truncate text-sm font-medium text-foreground/90">{preview}</div>
Expand Down
Expand Up
@@ -1247,16 +1253,22 @@ const SidebarThreadRow = memo(function SidebarThreadRow(props: {
) : isWoke ? (
// A wake can land straight in the settled tail (e.g. PR
// merged while snoozed); the signal must survive the trip.
<button
type="button"
aria-label="Dismiss Woke notification"
title="Dismiss Woke notification"
onClick={handleAcknowledgeWokeClick}
className="inline-flex cursor-pointer items-center gap-1 rounded-sm text-xs font-medium text-amber-700 outline-none hover:underline focus-visible:ring-2 focus-visible:ring-ring dark:text-amber-300"
>
<AlarmClockIcon aria-hidden className="size-3" />
<span role="status">Woke</span>
</button>
<Tooltip>
<TooltipTrigger
render={
<button
type="button"
aria-label="Dismiss Woke notification"
onClick={handleAcknowledgeWokeClick}
className="inline-flex cursor-pointer items-center gap-1 rounded-sm text-xs font-medium text-amber-700 outline-none hover:underline focus-visible:ring-2 focus-visible:ring-ring dark:text-amber-300"
>
<AlarmClockIcon aria-hidden className="size-3" />
<span role="status">Woke</span>
</button>
}
/>
<TooltipPopup side="top">Dismiss Woke notification</TooltipPopup>
</Tooltip>
) : (
<span className="text-xs">
{variantAction === "unsettle"
Expand Down
Expand Up
@@ -1414,19 +1426,25 @@ const SidebarThreadRow = memo(function SidebarThreadRow(props: {
>
{topStatus ? (
isWokeStatus ? (
<button
type="button"
aria-label="Dismiss Woke notification"
title="Dismiss Woke notification"
onClick={handleAcknowledgeWokeClick}
className={cn(
"inline-flex cursor-pointer items-center gap-1 rounded-sm font-medium outline-none hover:underline focus-visible:ring-2 focus-visible:ring-ring",
topStatus.className,
)}
>
<AlarmClockIcon aria-hidden className="size-4 shrink-0" />
<span role="status">{topStatus.label}</span>
</button>
<Tooltip>
<TooltipTrigger
render={
<button
type="button"
aria-label="Dismiss Woke notification"
onClick={handleAcknowledgeWokeClick}
className={cn(
"inline-flex cursor-pointer items-center gap-1 rounded-sm font-medium outline-none hover:underline focus-visible:ring-2 focus-visible:ring-ring",
topStatus.className,
)}
>
<AlarmClockIcon aria-hidden className="size-4 shrink-0" />
<span role="status">{topStatus.label}</span>
</button>
}
/>
<TooltipPopup side="top">Dismiss Woke notification</TooltipPopup>
</Tooltip>
) : (
<span
className={cn(
Expand Down
Original file line number
Diff line number
Diff line change
Expand Up
@@ -174,21 +174,26 @@ export const ChangedFilesCard = memo(function ChangedFilesCard(props: {
</p>
<div className="mt-2 flex flex-wrap items-center gap-1.5">
{previewFiles.map((file) => (
<button
key={file.path}
type="button"
title={file.path}
className="inline-flex max-w-48 items-center gap-1 rounded-md border border-border/70 bg-background/45 px-1.5 py-1 font-mono text-[10px] text-muted-foreground transition-colors hover:bg-accent/60 hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
onClick={() => onOpenTurnDiff(turnId, file.path)}
>
<PierreEntryIcon
pathValue={file.path}
kind="file"
theme={resolvedTheme}
className="size-3 shrink-0 text-muted-foreground/70"
/>
<span className="truncate">{changedFileName(file.path)}</span>
</button>
<Tooltip key={file.path}>
<TooltipTrigger
render={
<button
type="button"
className="inline-flex max-w-48 items-center gap-1 rounded-md border border-border/70 bg-background/45 px-1.5 py-1 font-mono text-[10px] text-muted-foreground transition-colors hover:bg-accent/60 hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
onClick={() => onOpenTurnDiff(turnId, file.path)}
/>
}
>
<PierreEntryIcon
pathValue={file.path}
kind="file"
theme={resolvedTheme}
className="size-3 shrink-0 text-muted-foreground/70"
/>
<span className="truncate">{changedFileName(file.path)}</span>
</TooltipTrigger>
<TooltipPopup side="top">{file.path}</TooltipPopup>
</Tooltip>
))}
<button
type="button"
Expand Down
Original file line number
Diff line number
Diff line change
Expand Up
@@ -37,8 +37,9 @@ describe("ComposerPreviewAnnotationCards", () => {
);
expect(markup).toContain("Make this headline feel intentional.");
expect(markup).toContain('title="1 region"');
expect(markup).toContain('title="1 style change"');
expect(markup.match(/data-slot="tooltip-trigger"/g)).toHaveLength(2);
expect(markup).not.toContain('title="1 region"');
expect(markup).not.toContain('title="1 style change"');
expect(markup).not.toContain("Welcome");
expect(markup).not.toContain("localhost:3000");
expect(markup).not.toContain("Preview annotation");
Expand Down
Original file line number
Diff line number
Diff line change
Expand Up
@@ -6,6 +6,7 @@ import type { ComposerImageAttachment } from "~/composerDraftStore";
import { formatElementContextLabel, normalizeElementContextSelection } from "~/lib/elementContext";
import { cn } from "~/lib/utils";
import { Button } from "../ui/button";
import { Tooltip, TooltipPopup, TooltipTrigger } from "../ui/tooltip";
interface ComposerPreviewAnnotationCardsProps {
annotations: ReadonlyArray<PreviewAnnotationPayload>;
Expand All
@@ -16,14 +17,19 @@ interface ComposerPreviewAnnotationCardsProps {
}
function TargetStat(props: { icon: ReactNode; count: number; label: string }) {
const tooltipText = `${props.count} ${props.label}${props.count === 1 ? "" : "s"}`;
return (
<span
className="inline-flex items-center gap-1 text-[10px] font-medium text-muted-foreground"
title={`${props.count} ${props.label}${props.count === 1 ? "" : "s"}`}
>
{props.icon}
{props.count}
</span>
<Tooltip>
<TooltipTrigger
render={
<span className="inline-flex items-center gap-1 text-[10px] font-medium text-muted-foreground">
{props.icon}
{props.count}
</span>
}
/>
<TooltipPopup side="top">{tooltipText}</TooltipPopup>
</Tooltip>
);
}
Expand Down
Loading
Oops, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.