惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

WordPress大学
WordPress大学
Microsoft Azure Blog
Microsoft Azure Blog
aimingoo的专栏
aimingoo的专栏
Vercel News
Vercel News
U
Unit 42
L
LangChain Blog
J
Java Code Geeks
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
The Cloudflare Blog
F
Fortinet All Blogs
小众软件
小众软件
I
InfoQ
P
Proofpoint News Feed
D
DataBreaches.Net
Martin Fowler
Martin Fowler
H
Help Net Security
T
Tailwind CSS Blog
N
Netflix TechBlog - Medium
有赞技术团队
有赞技术团队
Y
Y Combinator Blog
Recent Announcements
Recent Announcements
B
Blog RSS Feed
酷 壳 – CoolShell
酷 壳 – CoolShell
B
Blog

Recent Commits to openclaw:main

test: merge chat side-result checks · openclaw/openclaw@ddd2c2a test: merge cron history checks · openclaw/openclaw@f7eb746 test: merge responsive navigation shell checks · openclaw/openclaw@c2e4b47 docs(changelog): add codex oauth fixes · openclaw/openclaw@628e6cd test: merge navigation routing cases · openclaw/openclaw@5d8cecb Tests: mock channel registry bundled fallback · openclaw/openclaw@2b08233 Secrets: avoid broad web search discovery for single plugin config · openclaw/openclaw@a464f59 test: merge config view browser checks · openclaw/openclaw@20cf511 fix(status): align oauth health with runtime · openclaw/openclaw@eed7116 feat: add macOS screen snapshots for monitor preview (#67954) thanks … · openclaw/openclaw@f377db1 fix: report shared auth scopes in hello-ok (#67810) thanks @BunsDev · openclaw/openclaw@0b6c39b Auto-reply: avoid eager bundled route fallback · openclaw/openclaw@3ea1bf4 Tests: narrow session binding contract setup · openclaw/openclaw@54e4e16 fix(macOS): enable undo/redo in webchat composer text input (#34962) · openclaw/openclaw@00951dc Tests: speed up channel setup promotion · openclaw/openclaw@82b529a Docs: refresh agent instructions · openclaw/openclaw@5775fe2 fix(auth): serialize OAuth refresh across agents to fix #26322 (#67876) · openclaw/openclaw@8e79080 test: allow ollama public surface boundary test · openclaw/openclaw@7d4f1a6 Docs: add test performance guardrails · openclaw/openclaw@89706d3 Tests: restore context-engine usage proof · openclaw/openclaw@e4c4f95 Tests: slim context engine runtime coverage · openclaw/openclaw@74c198f ci: retry failed custom checkouts · openclaw/openclaw@0ee5baf test: trim duplicate provider auth onboarding cases · openclaw/openclaw@1ffc02e matrix: fix sessions_spawn --thread subagent session spawning (#67643) · openclaw/openclaw@1ce2596 test: reduce auth choice fixture churn · openclaw/openclaw@857b9cd test: mock health status config boundaries · openclaw/openclaw@9d5ab4a test: mock onboard config io boundary · openclaw/openclaw@299694d test: mock legacy state plugin boundaries · openclaw/openclaw@2713089 test: mock channel install boundaries · openclaw/openclaw@b945248 test: mock doctor preview channel boundaries · openclaw/openclaw@b1a3ad4
feat(ui): add workboard keyboard movement controls · open...
BunsDev · 2026-06-03 · via Recent Commits to openclaw:main

@@ -509,10 +509,161 @@ describe("renderWorkboard", () => {

509509

expect(

510510

container.querySelector<HTMLButtonElement>(".workboard-toolbar__actions .btn.primary"),

511511

).toBeNull();

512+

expect(container.querySelector<HTMLSelectElement>(".workboard-card__move-select")).toBeNull();

512513

expect(container.querySelector(".workboard-card")?.getAttribute("draggable")).toBe("false");

513514

expect(container.querySelector(".workboard-card")?.getAttribute("role")).toBe("button");

514515

});

515516517+

it("moves a card from the compact status control", async () => {

518+

const host = {};

519+

const state = getWorkboardState(host);

520+

state.loaded = true;

521+

state.cards = [

522+

{

523+

id: "card-1",

524+

title: "Keyboard move",

525+

status: "todo",

526+

priority: "normal",

527+

labels: [],

528+

position: 1000,

529+

createdAt: 1,

530+

updatedAt: 1,

531+

},

532+

];

533+

const request = vi.fn(async () => ({

534+

card: { ...state.cards[0], status: "blocked", position: 1000, updatedAt: 2 },

535+

}));

536+

const props = {

537+

host,

538+

client: { request } as unknown as GatewayBrowserClient,

539+

connected: true,

540+

pluginEnabled: true,

541+

agentsList: null,

542+

sessions: [],

543+

onOpenSession: () => undefined,

544+

onRequestUpdate: () => undefined,

545+

};

546+

const container = document.createElement("div");

547+548+

render(renderWorkboard(props), container);

549+

const moveSelect = container.querySelector<HTMLSelectElement>(".workboard-card__move-select");

550+

expect(moveSelect?.value).toBe("todo");

551+

expect(moveSelect?.tagName).toBe("SELECT");

552+

expect(moveSelect?.getAttribute("aria-keyshortcuts")).toBe("ArrowLeft ArrowRight");

553+

expect(moveSelect?.getAttribute("aria-label")).toBe("Status: Keyboard move");

554+555+

moveSelect!.value = "blocked";

556+

moveSelect!.dispatchEvent(new Event("change", { bubbles: true }));

557+

await Promise.resolve();

558+

await Promise.resolve();

559+

render(renderWorkboard(props), container);

560+561+

expect(request).toHaveBeenCalledWith("workboard.cards.move", {

562+

id: "card-1",

563+

status: "blocked",

564+

position: 1000,

565+

});

566+

const blockedColumn = [...container.querySelectorAll<HTMLElement>(".workboard-column")].find(

567+

(column) => column.querySelector("h2")?.textContent === "Blocked",

568+

);

569+

expect(blockedColumn?.textContent).toContain("Keyboard move");

570+

expect(state.cards[0]).toMatchObject({ status: "blocked", updatedAt: 2 });

571+

});

572+573+

it("moves a focused status control with keyboard arrows", async () => {

574+

const host = {};

575+

const state = getWorkboardState(host);

576+

state.loaded = true;

577+

state.cards = [

578+

{

579+

id: "card-1",

580+

title: "Keyboard arrow move",

581+

status: "todo",

582+

priority: "normal",

583+

labels: [],

584+

position: 1000,

585+

createdAt: 1,

586+

updatedAt: 1,

587+

},

588+

];

589+

const request = vi.fn(async () => ({

590+

card: { ...state.cards[0], status: "scheduled", position: 1000, updatedAt: 2 },

591+

}));

592+

const props = {

593+

host,

594+

client: { request } as unknown as GatewayBrowserClient,

595+

connected: true,

596+

pluginEnabled: true,

597+

agentsList: null,

598+

sessions: [],

599+

onOpenSession: () => undefined,

600+

onRequestUpdate: () => undefined,

601+

};

602+

const container = document.createElement("div");

603+604+

render(renderWorkboard(props), container);

605+

const moveSelect = container.querySelector<HTMLSelectElement>(".workboard-card__move-select");

606+

const dispatched = moveSelect!.dispatchEvent(

607+

new KeyboardEvent("keydown", { key: "ArrowRight", bubbles: true, cancelable: true }),

608+

);

609+

await Promise.resolve();

610+

await Promise.resolve();

611+612+

expect(dispatched).toBe(false);

613+

expect(request).toHaveBeenCalledWith("workboard.cards.move", {

614+

id: "card-1",

615+

status: "scheduled",

616+

position: 1000,

617+

});

618+

expect(state.cards[0]).toMatchObject({ status: "scheduled", updatedAt: 2 });

619+

});

620+621+

it("does not queue status-control moves while a card is busy", async () => {

622+

const host = {};

623+

const state = getWorkboardState(host);

624+

state.loaded = true;

625+

state.busyCardId = "card-1";

626+

state.cards = [

627+

{

628+

id: "card-1",

629+

title: "Busy move",

630+

status: "todo",

631+

priority: "normal",

632+

labels: [],

633+

position: 1000,

634+

createdAt: 1,

635+

updatedAt: 1,

636+

},

637+

];

638+

const request = vi.fn();

639+

const props = {

640+

host,

641+

client: { request } as unknown as GatewayBrowserClient,

642+

connected: true,

643+

pluginEnabled: true,

644+

agentsList: null,

645+

sessions: [],

646+

onOpenSession: () => undefined,

647+

onRequestUpdate: () => undefined,

648+

};

649+

const container = document.createElement("div");

650+651+

render(renderWorkboard(props), container);

652+

const moveSelect = container.querySelector<HTMLSelectElement>(".workboard-card__move-select");

653+

expect(moveSelect?.disabled).toBe(true);

654+655+

moveSelect!.value = "blocked";

656+

moveSelect!.dispatchEvent(new Event("change", { bubbles: true }));

657+

const dispatched = moveSelect!.dispatchEvent(

658+

new KeyboardEvent("keydown", { key: "ArrowRight", bubbles: true, cancelable: true }),

659+

);

660+

await Promise.resolve();

661+662+

expect(dispatched).toBe(false);

663+

expect(request).not.toHaveBeenCalled();

664+

expect(state.cards[0]).toMatchObject({ status: "todo", updatedAt: 1 });

665+

});

666+516667

it("offers start controls when a linked session no longer exists", () => {

517668

const host = {};

518669

const state = getWorkboardState(host);