refactor(log): extract rendering and summary parsing from log.lua #530

Closed
opened 2026-04-29 02:09:40 +00:00 by barrettruth · 0 comments
barrettruth commented 2026-04-29 02:09:40 +00:00

At roughly 1442 lines, lua/forge/log.lua still owns both CI/log buffer orchestration and the full rendering/parsing pipeline.

Current mixed responsibilities include:

  • ANSI stripping and highlight extraction
  • status / duration formatting
  • GitHub and GitLab log parsing
  • summary parsing and rendering
  • folds, extmarks, and line rendering

This issue is for moving the rendering and parsing layer into dedicated internal modules so log.lua can focus on buffer lifecycle, command execution, and high-level flow control.

The goal is to preserve the current log and summary surfaces while making rendering logic easier to test independently.

At roughly 1442 lines, `lua/forge/log.lua` still owns both CI/log buffer orchestration and the full rendering/parsing pipeline. Current mixed responsibilities include: - ANSI stripping and highlight extraction - status / duration formatting - GitHub and GitLab log parsing - summary parsing and rendering - folds, extmarks, and line rendering This issue is for moving the rendering and parsing layer into dedicated internal modules so `log.lua` can focus on buffer lifecycle, command execution, and high-level flow control. The goal is to preserve the current log and summary surfaces while making rendering logic easier to test independently.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
barrettruth/forge.nvim#530
No description provided.