Skip to content

Split the event log into pure line-assembly and React presentation modules - #286

Merged
TheGreatAxios merged 1 commit into
cl-4364-split-the-tui-root-component-into-focused-modulesfrom
cl-4365-split-the-event-log-into-assembly-and-component-modules
Aug 2, 2026
Merged

Split the event log into pure line-assembly and React presentation modules#286
TheGreatAxios merged 1 commit into
cl-4364-split-the-tui-root-component-into-focused-modulesfrom
cl-4365-split-the-event-log-into-assembly-and-component-modules

Conversation

@TheGreatAxios

@TheGreatAxios TheGreatAxios commented Aug 1, 2026

Copy link
Copy Markdown
Collaborator

Summary

Extracts the pure line-assembly, caching, wrapping, and viewport-windowing logic out of src/tui/components/event-log.tsx into a new src/tui/components/event-log-assembly.ts module with zero React/Ink imports. event-log.tsx now imports from the assembly module and keeps only the React components (EventLog, RenderedLine, RunningToolRow) and re-exports the assembly module's public API for existing callers. Pure code motion — no logic changes.

New file:

  • src/tui/components/event-log-assembly.ts

src/tui/components/event-log.tsx drops from 1486 to 169 lines; event-log-assembly.ts holds the extracted 1351 lines.

Closes CL-4365

Verification

  • bun run typecheck — passes
  • bun run build — passes
  • bun test — 3565 pass, 0 fail, across 274 files (full suite)
  • rg -n "from ['\"](react|ink)" src/tui/components/event-log-assembly.ts — no matches, confirming zero React/Ink imports

@linear-code

linear-code Bot commented Aug 1, 2026

Copy link
Copy Markdown

CL-4365

@TheGreatAxios
TheGreatAxios force-pushed the cl-4365-split-the-event-log-into-assembly-and-component-modules branch from 64d3ff9 to 08efc0d Compare August 1, 2026 04:56
@TheGreatAxios
TheGreatAxios force-pushed the cl-4365-split-the-event-log-into-assembly-and-component-modules branch from 08efc0d to f69e034 Compare August 1, 2026 22:15
@TheGreatAxios
TheGreatAxios force-pushed the cl-4365-split-the-event-log-into-assembly-and-component-modules branch from f69e034 to f38ea5f Compare August 1, 2026 22:15
@TheGreatAxios
TheGreatAxios marked this pull request as ready for review August 2, 2026 03:49
@TheGreatAxios
TheGreatAxios merged commit b8bfe1d into main Aug 2, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant