Why: Repeated progress and coupled scrolling obscured chat, and task choices lacked a reliable independent interaction path. Evidence: 285 frontend unit tests and 23 browser scenarios pass locally before the shared event-loader extraction; final combination checks follow in Dev. Impact: Coalesce cumulative progress, retain execution records, show timestamps and quiet notifications, support versioned work actions and explicit result references without automatic chat backfill. Refs: feature/workbench-flow-completion
11 lines
430 B
TypeScript
11 lines
430 B
TypeScript
// Explicit message/card location feedback. The middle and work panes scroll independently.
|
||
|
||
/** 给已定位的节点加上 mk-flash,1.2s 后摘掉。 */
|
||
export function flashElement(el: Element | null) {
|
||
if (!el || typeof window === 'undefined') return
|
||
el.classList.remove('mk-flash')
|
||
void (el as HTMLElement).offsetWidth
|
||
el.classList.add('mk-flash')
|
||
window.setTimeout(() => el.classList.remove('mk-flash'), 1200)
|
||
}
|