refactor(webui): unify code and diff highlighting (#6412)
* refactor(webui): unify code and diff highlighting Replace Prism with shared Highlights tokens and Pierre read-only diffs, retaining rare grammars through lazy Shiki and preserving source, copy, preview and diff controls. Restore single-session Composer ownership inside the conversation column while retaining the shared multi-pane footer. Keep the measured large-diff scroll regression explicit during review. * fix(webui): contain highlighting errors and retain diff selections Refs NAN-343 * test(webui): align pane fixtures after main rebase * chore(webui): update highlighting dependencies Keep grammar fallback coverage on a language that still requires Shiki, and align reading-size assertions with main.
This commit is contained in:
1 parent
f5c359476b
commit
3a37269f3f
44 files changed
+2261
-1072
No files matched your search
@@ -10,8 +10,8 @@ test("numbered Markdown code keeps mixed text flowing after stream completion",
|
||||
await expect(block.getByTestId("plain-code-fallback")).toBeVisible();
|
||||
await page.getByRole("button", { name: "Complete message" }).click();
|
||||
const pre = block.locator("pre");
|
||||
await expect(pre.locator(".token").first()).toBeVisible();
|
||||
await expect(pre.locator(".linenumber")).toHaveText(source.split("\n").map((_, index) => String(index + 1)));
|
||||
await expect(pre.locator("[data-code-token]").first()).toBeVisible();
|
||||
await expect(pre.locator("code > span > span[aria-hidden]")).toHaveText(source.split("\n").map((_, index) => String(index + 1)));
|
||||
|
||||
for (const width of [1280, 390]) {
|
||||
await page.setViewportSize({ width, height: 900 });
|
||||
|
||||
Reference in new issue
Block a user