diff --git a/changelog.md b/changelog.md index e72e088..b8b5910 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,12 @@ # Changelog +## 2026-02-21 - 3.43.1 - fix(dees-chart-log) +replay buffered log entries when terminal becomes ready and sync logEntries updates to re-render filtered logs + +- Replay entries stored in logBuffer after terminal initialization to avoid losing entries that arrived early +- Add updated() lifecycle hook to copy logEntries into logBuffer and call reRenderFilteredLogs when terminalReady +- Call super.updated(changedProperties) to preserve base class behavior + ## 2026-02-17 - 3.43.0 - feat(dees-form) add layout styles to dees-form and standardize demo input grouping diff --git a/ts_web/00_commitinfo_data.ts b/ts_web/00_commitinfo_data.ts index 0cb28f9..84aef9a 100644 --- a/ts_web/00_commitinfo_data.ts +++ b/ts_web/00_commitinfo_data.ts @@ -3,6 +3,6 @@ */ export const commitinfo = { name: '@design.estate/dees-catalog', - version: '3.43.0', + version: '3.43.1', description: 'A comprehensive library that provides dynamic web components for building sophisticated and modern web applications using JavaScript and TypeScript.' } diff --git a/ts_web/elements/00group-chart/dees-chart-log/dees-chart-log.ts b/ts_web/elements/00group-chart/dees-chart-log/dees-chart-log.ts index 0786a37..32d2f1a 100644 --- a/ts_web/elements/00group-chart/dees-chart-log/dees-chart-log.ts +++ b/ts_web/elements/00group-chart/dees-chart-log/dees-chart-log.ts @@ -445,6 +445,19 @@ export class DeesChartLog extends DeesElement { this.rateInterval = setInterval(() => this.calculateRate(), 1000); this.terminalReady = true; + + // Replay any entries that arrived via updateLog()/addLog() before terminal was ready + for (const entry of this.logBuffer) { + this.writeLogEntry(entry); + } + } + + public updated(changedProperties: Map) { + super.updated(changedProperties); + if (changedProperties.has('logEntries') && this.terminalReady && this.logEntries.length > 0) { + this.logBuffer = [...this.logEntries]; + this.reRenderFilteredLogs(); + } } private getTerminalTheme() {