feat(client): unify clickable-link language with link alias and category glyphs

Clickable artifact links across the transcript (markdown anchors, prose
file mentions, web source/fetch links, produced-file chips, workflow
member links) now share one language: a dedicated --dsw-alias-link color
(light deepseek-500, dark deepseek-400) decoupled from
state-business-primary, font-weight 500, no underline at rest, and a
dotted 3px-offset underline on hover/focus. A new ui-primitives LinkIcon
leads each link with a currentColor category glyph (url / folder / code /
image / document / other) derived from the path extension by
classifyLinkPath. Produced-file chips drop the grey pill and 96px cap and
render at natural width, shrinking with ellipsis only on row overflow.
ToolRow's grey dotted file links and the grey show-in-folder action stay
as they were. The inline-code chip tint moves to neutral-50 (dark
neutral-800) with its 0.5px border kept.

Coverage: LinkIcon unit spec, refreshed markdown-dom fixtures, and the
clickable-links-gallery web e2e registered in the host compiler face.

Closes #3546
This commit is contained in:
yx.zhang committed 2026-09-04 15:55:49 +08:00
1 parent 267d755bee
commit 8ffdee4fe5
37 files changed
+1124 -50

No files matched your search

@@ -52,14 +52,27 @@
}
.sourceLink {
color: var(--dsw-alias-state-business-primary);
color: var(--dsw-alias-link);
font-size: 14px;
font-weight: 500;
line-height: 20px;
word-break: break-word;
text-decoration: none;
}
.sourceLink:hover {
text-decoration: underline;
/* Leading URL glyph inside source and fetch links; rides the link color.
1.1em follows each link's own font size. */
.linkIcon {
width: 1.1em;
height: 1.1em;
vertical-align: -0.25em;
margin-right: 5px;
}
.sourceLink:hover,
.sourceLink:focus-visible {
text-decoration: underline dotted;
text-underline-offset: 3px;
}
.snippet {
@@ -95,15 +108,19 @@
}
.fetchUrl {
color: var(--dsw-alias-state-business-primary);
color: var(--dsw-alias-link);
font-family: var(--ds-font-family-code);
font-size: 13px;
font-weight: 500;
line-height: 19px;
word-break: break-all;
text-decoration: none;
}
.fetchUrl:hover {
text-decoration: underline;
.fetchUrl:hover,
.fetchUrl:focus-visible {
text-decoration: underline dotted;
text-underline-offset: 3px;
}
.fetchMeta {