fix(webui): unify skill and session link highlighting (#6454)

* fix(webui): refine skill reference highlighting

* fix(webui): highlight composer skills and align session links
This commit is contained in:
chengyongru authored and GitHub committed 2026-10-25 21:42:53 +08:00
1 parent d14c54c31c
commit 424d2debc2
12 files changed
+305 -91

No files matched your search

+3 -2
View File
@@ -509,13 +509,14 @@ describe("MessageBubble", () => {
const skill = screen.getByTestId("message-skill-reference-github");
expect(skill).toHaveTextContent(/^\$github$/);
expect(skill).toHaveClass(
"font-[550]",
"font-normal",
"transition-colors",
"duration-150",
);
expect(skill.getAttribute("style")).not.toContain("text-shadow");
expect(skill.getAttribute("style")).toContain("var(--inline-token-highlight)");
expect(skill.getAttribute("style")).toContain("var(--inline-reference-highlight)");
expect(skill.className).not.toMatch(/(?:^|\s)(?:bg-|border|ring|rounded)/);
expect(skill).not.toHaveAttribute("title");
expect(screen.getByTestId("message-cli-mention-zoom")).toHaveTextContent("@Zoom");
expect(skill.parentElement).toHaveTextContent("Ask $github to review this with @Zoom");
});