Skip to content

feat: show an extension's progress as an underline under its cell - #75

Merged
CarsonBurke merged 3 commits into
mainfrom
feat/extension-progress
Dec 2, 2026
Merged

CarsonBurke merged 3 commits into
mainfrom
feat/extension-progress

Conversation

@CarsonBurke

Copy link
Copy Markdown
Owner

Extension protocol 3 adds a progress field to an extension's cell. The bar draws it as a hairline under the cell, like the player's track line. mlq uses it to show the headline run against its time limit.

Design decisions

  • Underline, not a filled background. An earlier draft filled a pill behind the cell. The underline is what was asked for, and it doesn't blur the text.
  • Accent colour, not the cell's. The run's text is already green, and a green line under green text read as part of the text. The line is now the accent; an optional role tints it, which mlq uses to turn it peach near the limit.
  • The bar advances the span itself. A start/end span moves on the bar's clock and only redraws when it crosses a device pixel, so the extension sends no frames while the run progresses. Playhead now saturates on extreme timestamps and waits for a span that hasn't started yet.

Testing

  • cargo test and cargo clippy --all-targets are clean.
  • Live check in a nested niri session against the real mlq queue: a 20-minute job 8 minutes in draws a lavender line about 40% across, under its green text.
  • The peach tint near the limit is covered by mlq's unit tests but hasn't been checked live.

An extension can now draw a hairline under its cell, as the player does
under its track: a fixed value, or a start and end the bar advances on its
own clock so a timed run moves without a frame per pixel. The line is the
accent rather than the cell's colour, since a line in the text's own colour
reads as part of the text; a role tints it for a state worth noticing.
Speaks protocol 3 and sends the running job's time limit as the cell's
progress span, tinted peach near the limit, and wakes at the warning
threshold so the tint lands on time.
@CarsonBurke
CarsonBurke merged commit bcf5eea into main Dec 2, 2026
1 check 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