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

推荐订阅源

IT之家
IT之家
Y
Y Combinator Blog
月光博客
月光博客
Blog — PlanetScale
Blog — PlanetScale
GbyAI
GbyAI
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
博客园 - 三生石上(FineUI控件)
S
SegmentFault 最新的问题
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
美团技术团队
雷峰网
雷峰网
酷 壳 – CoolShell
酷 壳 – CoolShell
Last Week in AI
Last Week in AI
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
有赞技术团队
有赞技术团队
博客园 - 司徒正美
V
Visual Studio Blog
小众软件
小众软件
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
T
Tailwind CSS Blog
Apple Machine Learning Research
Apple Machine Learning Research
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
A
About on SuperTechFans
The Cloudflare 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
fix(ui): remove duplicate config section headers · opencl...
d1rshan · 2026-04-25 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -438,20 +438,25 @@ export function renderConfigForm(props: ConfigFormProps) {

438438

sectionKey: string;

439439

label: string;

440440

description: string;

441+

showHeader: boolean;

441442

node: JsonSchema;

442443

nodeValue: unknown;

443444

path: Array<string | number>;

444445

}) => html`

445446

<section class="config-section-card" id=${params.id}>

446-

<div class="config-section-card__header">

447-

<span class="config-section-card__icon">${getSectionIcon(params.sectionKey)}</span>

448-

<div class="config-section-card__titles">

449-

<h3 class="config-section-card__title">${params.label}</h3>

450-

${params.description

451-

? html`<p class="config-section-card__desc">${params.description}</p>`

452-

: nothing}

453-

</div>

454-

</div>

447+

${params.showHeader

448+

? html`

449+

<div class="config-section-card__header">

450+

<span class="config-section-card__icon">${getSectionIcon(params.sectionKey)}</span>

451+

<div class="config-section-card__titles">

452+

<h3 class="config-section-card__title">${params.label}</h3>

453+

${params.description

454+

? html`<p class="config-section-card__desc">${params.description}</p>`

455+

: nothing}

456+

</div>

457+

</div>

458+

`

459+

: nothing}

455460

<div class="config-section-card__content">

456461

${renderNode({

457462

schema: params.node,

@@ -490,6 +495,7 @@ export function renderConfigForm(props: ConfigFormProps) {

490495

sectionKey,

491496

label,

492497

description,

498+

showHeader: false,

493499

node,

494500

nodeValue: scopedValue,

495501

path: [sectionKey, subsectionKey],

@@ -506,6 +512,7 @@ export function renderConfigForm(props: ConfigFormProps) {

506512

sectionKey: key,

507513

label: meta.label,

508514

description: meta.description,

515+

showHeader: activeSection == null,

509516

node,

510517

nodeValue: value[key],

511518

path: [key],

Original file line numberDiff line numberDiff line change

@@ -349,7 +349,80 @@ describe("config view", () => {

349349

(input as HTMLInputElement).value = "gateway";

350350

input.dispatchEvent(new Event("input", { bubbles: true }));

351351

expect(onSearchChange).toHaveBeenCalledWith("gateway");

352+

});

353+
354+

it("shows section hero and hides nested card header in single-section form view", () => {

355+

const { container } = renderConfigView({

356+

activeSection: "auth",

357+

schema: {

358+

type: "object",

359+

properties: {

360+

auth: {

361+

type: "object",

362+

properties: {

363+

authPermanentBackoffMinutes: {

364+

type: "number",

365+

},

366+

},

367+

},

368+

},

369+

},

370+

formValue: {

371+

auth: {

372+

authPermanentBackoffMinutes: 10,

373+

},

374+

},

375+

originalValue: {

376+

auth: {

377+

authPermanentBackoffMinutes: 10,

378+

},

379+

},

380+

});

352381
382+

const heroTitle = container.querySelector(".config-section-hero__title");

383+

expect(heroTitle?.textContent?.trim()).toBe("Authentication");

384+

expect(container.querySelector(".config-section-card__header")).toBeNull();

385+

});

386+
387+

it("keeps card headers in multi-section root view", () => {

388+

const { container } = renderConfigView({

389+

schema: {

390+

type: "object",

391+

properties: {

392+

auth: {

393+

type: "object",

394+

properties: {},

395+

},

396+

gateway: {

397+

type: "object",

398+

properties: {},

399+

},

400+

},

401+

},

402+

formValue: {

403+

auth: {},

404+

gateway: {},

405+

},

406+

originalValue: {

407+

auth: {},

408+

gateway: {},

409+

},

410+

});

411+
412+

expect(container.querySelectorAll(".config-section-card__header").length).toBeGreaterThan(0);

413+

});

414+
415+

it("clears the active search query", () => {

416+

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

417+

const onSearchChange = vi.fn();

418+

render(

419+

renderConfig({

420+

...baseProps(),

421+

searchQuery: "gateway",

422+

onSearchChange,

423+

}),

424+

container,

425+

);

353426

const clearButton = container.querySelector<HTMLButtonElement>(".config-search__clear");

354427

expect(clearButton).toBeTruthy();

355428

clearButton?.click();