The example ProgressBar divides 0 by numberOfPages-1, so the supported one-page state renders width NaN%. The LogsPanel also console.logs its full retained history during every render, duplicating the visible log list and adding per-scroll console work. Direct source-component diagnostics reproduce both. Proposed small example-only fix: use zero progress when there is no page-to-page span and remove the redundant render-time console dump. Existing multipage progress and the visible log list stay intact. This source audit is AI-assisted.
The example ProgressBar divides 0 by numberOfPages-1, so the supported one-page state renders width NaN%. The LogsPanel also console.logs its full retained history during every render, duplicating the visible log list and adding per-scroll console work. Direct source-component diagnostics reproduce both. Proposed small example-only fix: use zero progress when there is no page-to-page span and remove the redundant render-time console dump. Existing multipage progress and the visible log list stay intact. This source audit is AI-assisted.