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

推荐订阅源

N
Netflix TechBlog - Medium
IT之家
IT之家
博客园_首页
Hugging Face - Blog
Hugging Face - Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
美团技术团队
小众软件
小众软件
博客园 - 叶小钗
WordPress大学
WordPress大学
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
博客园 - 三生石上(FineUI控件)
罗磊的独立博客
博客园 - Franky
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Last Week in AI
Last Week in AI
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
有赞技术团队
有赞技术团队
T
Tailwind CSS Blog
宝玉的分享
宝玉的分享
博客园 - 【当耐特】
月光博客
月光博客
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
酷 壳 – CoolShell
酷 壳 – CoolShell
人人都是产品经理
人人都是产品经理

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(control-ui): collapse cron new job panel · openclaw/...
BunsDev · 2026-05-04 · via Recent Commits to openclaw:main

@@ -45,6 +45,7 @@ export type CronProps = {

4545

fieldErrors: CronFieldErrors;

4646

canSubmit: boolean;

4747

editingJobId: string | null;

48+

cronFormCollapsed?: boolean;

4849

channels: string[];

4950

channelLabels?: Record<string, string>;

5051

channelMeta?: ChannelUiMetaEntry[];

@@ -71,6 +72,7 @@ export type CronProps = {

7172

onEdit: (job: CronJob) => void;

7273

onClone: (job: CronJob) => void;

7374

onCancelEdit: () => void;

75+

onToggleFormCollapsed?: (collapsed: boolean) => void;

7476

onToggle: (job: CronJob, enabled: boolean) => void;

7577

onRun: (job: CronJob, mode?: "force" | "due") => void;

7678

onRemove: (job: CronJob) => void;

@@ -383,6 +385,9 @@ export function renderCron(props: CronProps) {

383385

props.form.sessionTarget !== "main" && props.form.payloadKind === "agentTurn";

384386

const selectedDeliveryMode =

385387

props.form.deliveryMode === "announce" && !supportsAnnounce ? "none" : props.form.deliveryMode;

388+

const formCollapsed = props.cronFormCollapsed === true;

389+

const formTitle = isEditing ? t("cron.form.editJob") : t("cron.form.newJob");

390+

const toggleFormCollapsed = props.onToggleFormCollapsed;

386391

const blockingFields = collectBlockingFields(props.fieldErrors, props.form, selectedDeliveryMode);

387392

const blockedByValidation = !props.busy && blockingFields.length > 0;

388393

const hasActiveJobsFilters =

@@ -437,7 +442,7 @@ export function renderCron(props: CronProps) {

437442

</div>

438443

</section>

439444440-

<section class="cron-workspace">

445+

<section class=${`cron-workspace ${formCollapsed ? "cron-workspace--form-collapsed" : ""}`}>

441446

<div class="cron-workspace-main">

442447

<section class="card">

443448

<div

@@ -707,12 +712,37 @@ export function renderCron(props: CronProps) {

707712

</section>

708713

</div>

709714710-

<section class="card cron-workspace-form">

711-

<div class="card-title">${isEditing ? t("cron.form.editJob") : t("cron.form.newJob")}</div>

712-

<div class="card-sub">

713-

${isEditing ? t("cron.form.updateSubtitle") : t("cron.form.createSubtitle")}

715+

<section

716+

class=${`card cron-workspace-form ${formCollapsed ? "cron-workspace-form--collapsed" : ""}`}

717+

>

718+

<div class="cron-form-header">

719+

<div class="cron-form-header__copy">

720+

<div class="card-title">${formTitle}</div>

721+

${formCollapsed

722+

? nothing

723+

: html`

724+

<div class="card-sub">

725+

${isEditing ? t("cron.form.updateSubtitle") : t("cron.form.createSubtitle")}

726+

</div>

727+

`}

728+

</div>

729+

${toggleFormCollapsed

730+

? html`

731+

<button

732+

type="button"

733+

class="btn cron-form-collapse-toggle"

734+

data-test-id="cron-form-collapse-toggle"

735+

title=${formCollapsed ? t("nav.expand") : t("nav.collapse")}

736+

aria-label=${formCollapsed ? t("nav.expand") : t("nav.collapse")}

737+

aria-expanded=${formCollapsed ? "false" : "true"}

738+

@click=${() => toggleFormCollapsed(!formCollapsed)}

739+

>

740+

<span aria-hidden="true">${formCollapsed ? "<" : ">"}</span>

741+

</button>

742+

`

743+

: nothing}

714744

</div>

715-

<div class="cron-form">

745+

<div class="cron-form" ?hidden=${formCollapsed}>

716746

<div class="cron-required-legend">

717747

<span class="cron-required-marker" aria-hidden="true">*</span> ${t(

718748

"cron.form.required",

@@ -1317,7 +1347,12 @@ export function renderCron(props: CronProps) {

13171347

</div>

13181348

${blockedByValidation

13191349

? html`

1320-

<div class="cron-form-status" role="status" aria-live="polite">

1350+

<div

1351+

class="cron-form-status"

1352+

role="status"

1353+

aria-live="polite"

1354+

?hidden=${formCollapsed}

1355+

>

13211356

<div class="cron-form-status__title">${t("cron.form.cantAddYet")}</div>

13221357

<div class="cron-help">${t("cron.form.fillRequired")}</div>

13231358

<ul class="cron-form-status__list">

@@ -1338,7 +1373,7 @@ export function renderCron(props: CronProps) {

13381373

</div>

13391374

`

13401375

: nothing}

1341-

<div class="row cron-form-actions">

1376+

<div class="row cron-form-actions" ?hidden=${formCollapsed}>

13421377

<button

13431378

class="btn primary"

13441379

?disabled=${props.busy || !props.canSubmit}

@@ -1351,7 +1386,9 @@ export function renderCron(props: CronProps) {

13511386

: t("cron.form.addJob")}

13521387

</button>

13531388

${submitDisabledReason

1354-

? html`<div class="cron-submit-reason" aria-live="polite">${submitDisabledReason}</div>`

1389+

? html`

1390+

<div class="cron-submit-reason" aria-live="polite">${submitDisabledReason}</div>

1391+

`

13551392

: nothing}

13561393

${isEditing

13571394

? html`