feat(ui): dynamic urgency color and per-cell report styling - #780
Draft
dianila68 wants to merge 1 commit into
Draft
feat(ui): dynamic urgency color and per-cell report styling#780dianila68 wants to merge 1 commit into
dianila68 wants to merge 1 commit into
Conversation
Adds cell-level style overrides on top of row-wide taskwarrior color rules:
- table: new Row::CellStyledData variant carrying optional per-cell styles,
patched over the row style (and highlight style when selected)
- report_style: urgency column colored on a green->yellow->red gradient,
scaled proportionally to the most urgent visible task and saturating at a
configurable cap so a single outlier cannot compress the scale
- columns adjacent to the description can get a distinct tint
- task_report: simplify_table now records visible_columns so display indices
map back to taskwarrior column names
New configuration (all optional):
uda.taskwarrior-tui.urgency.dynamic-color=true
uda.taskwarrior-tui.urgency.color-cap=15
uda.taskwarrior-tui.style.report.near-description=
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds cell-level style overrides on top of the existing row-wide taskwarrior color rules:
table: newRow::CellStyledDatavariant carrying optional per-cell styles, patched over the row style (and over the highlight style when the row is selected), so an override that only sets a foreground keeps the row background.report_style(new module): the urgency column is colored on a green → yellow → red gradient, scaled proportionally to the most urgent visible task and saturating at a configurable cap so a single outlier cannot compress the scale. Columns adjacent to the description can get a distinct tint.task_report:simplify_tablenow recordsvisible_columns, so display indices can be mapped back to taskwarrior column names after empty columns are dropped.Configuration
Notes
cargo fmt,cargo clippy -- -D warningsclean.🤖 Generated with Claude Code