Skip to content

Commit b6abd81

Browse files
leosvelperezjaysoo
authored andcommitted
fix(core): make tasks list columns in the tui more compact (#32074)
## Current Behavior The Tasks List pane in the TUI is not too compact. It has some wide spaces and long texts that do not allow for a better use of the available space. <img width="1079" height="450" alt="image" src="https://github.com/user-attachments/assets/f814df3c-0623-413b-9473-48e16f752e0f" /> <img width="1368" height="455" alt="image" src="https://github.com/user-attachments/assets/2436da03-3812-4cfc-8152-756eb99607d2" /> ## Expected Behavior The Tasks List pane in the TUI should be more compact: - `Kept Existing` value in the Cache column should be renamed to `Match` - The Duration column should not reserve as much space as it does currently <img width="1077" height="455" alt="image" src="https://github.com/user-attachments/assets/bfe6ee33-09c3-4cd7-bd36-15c4b673c9e9" />
1 parent 3781cfe commit b6abd81

File tree

35 files changed

+226
-182
lines changed

35 files changed

+226
-182
lines changed

packages/nx/src/native/tui/components/snapshots/nx__native__tui__components__tasks_list__tests__active_filter.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ source: packages/nx/src/native/tui/components/tasks_list.rs
33
expression: terminal.backend()
44
---
55
" "
6-
" NX Running Test Tasks... Cache Duration"
6+
" NX Running Test Tasks... Cache Duration"
77
""
88
" "
99
" "

packages/nx/src/native/tui/components/snapshots/nx__native__tui__components__tasks_list__tests__all_tasks_in_progress.snap

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ source: packages/nx/src/native/tui/components/tasks_list.rs
33
expression: terminal.backend()
44
---
55
" "
6-
" NX Running Test Tasks... Cache Duration"
6+
" NX Running Test Tasks... Cache Duration"
77
""
8-
" │⠋ task1 ... <1ms"
9-
" │⠋ task2 ... <1ms"
10-
">│⠋ task3 ... <1ms"
8+
" │⠋ task1 ... <1ms"
9+
" │⠋ task2 ... <1ms"
10+
">│⠋ task3 ... <1ms"
1111
""
1212
" "
1313
" "

packages/nx/src/native/tui/components/snapshots/nx__native__tui__components__tasks_list__tests__cache_column_spacing_with_long_truncated_task_name.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ source: packages/nx/src/native/tui/components/tasks_list.rs
33
expression: terminal.backend()
44
---
55
" "
6-
" NX Completed Test Tasks Cache Duration"
6+
" NX Completed Test Tasks Cache Duration"
77
" "
8-
"> ✔ this-is-a-very-long-task-name-that-will-definitely-be Kept Existing ..."
8+
"> ✔ this-is-a-very-long-task-name-that-will-definitely-be-truncated-w Match ..."
99
" "
1010
" "
1111
" "

packages/nx/src/native/tui/components/snapshots/nx__native__tui__components__tasks_list__tests__cloud_message_rendering.snap

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ source: packages/nx/src/native/tui/components/tasks_list.rs
33
expression: terminal.backend()
44
---
55
" "
6-
" NX Completed Test Tasks Cache Duration"
6+
" NX Completed Test Tasks Cache Duration"
77
" "
8-
" ✖ task2 - ..."
9-
"> ✔ task1 - ..."
10-
" ✔ task3 - ..."
8+
" ✖ task2 - ..."
9+
"> ✔ task1 - ..."
10+
" ✔ task3 - ..."
1111
" "
1212
" "
1313
" "

packages/nx/src/native/tui/components/snapshots/nx__native__tui__components__tasks_list__tests__cloud_message_two_line_layout.snap

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ source: packages/nx/src/native/tui/components/tasks_list.rs
33
expression: terminal.backend()
44
---
55
" "
6-
" NX Completed Test Tasks Cache Duration"
6+
" NX Completed Test Tasks Cache Duration"
77
" "
8-
" ✔ task1 - ..."
9-
"> ✔ task2 - ..."
10-
" ✔ task3 - ..."
8+
" ✔ task1 - ..."
9+
"> ✔ task2 - ..."
10+
" ✔ task3 - ..."
1111
" "
1212
" "
1313
" "

packages/nx/src/native/tui/components/snapshots/nx__native__tui__components__tasks_list__tests__cloud_message_without_url.snap

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ source: packages/nx/src/native/tui/components/tasks_list.rs
33
expression: terminal.backend()
44
---
55
" "
6-
" NX Running Test Tasks... Cache Duration"
6+
" NX Running Test Tasks... Cache Duration"
77
" "
88
" "
9-
"> · task1 ... ..."
10-
" · task2 ... ..."
11-
" · task3 ... ..."
9+
"> · task1 ... ..."
10+
" · task2 ... ..."
11+
" · task3 ... ..."
1212
" "
1313
" "
1414
" "

packages/nx/src/native/tui/components/snapshots/nx__native__tui__components__tasks_list__tests__cloud_message_without_url_super_wide.snap

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ source: packages/nx/src/native/tui/components/tasks_list.rs
33
expression: terminal.backend()
44
---
55
" "
6-
" NX Running Test Tasks... Cache Duration"
6+
" NX Running Test Tasks... Cache Duration"
77
" "
88
" "
9-
"> · task1 ... ..."
10-
" · task2 ... ..."
11-
" · task3 ... ..."
9+
"> · task1 ... ..."
10+
" · task2 ... ..."
11+
" · task3 ... ..."
1212
" "
1313
" "
1414
" "

packages/nx/src/native/tui/components/snapshots/nx__native__tui__components__tasks_list__tests__completed_tasks_with_different_durations.snap

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ source: packages/nx/src/native/tui/components/tasks_list.rs
33
expression: terminal.backend()
44
---
55
" "
6-
" NX Completed Test Tasks (60.0s) Cache Duration"
6+
" NX Completed Test Tasks (60.0s) Cache Duration"
77
" "
8-
" ✔ task1 - 2.0s"
9-
" ✔ task2 - 10.0s"
10-
"> ✔ task3 - 60.0s"
8+
" ✔ task1 - 2.0s"
9+
" ✔ task2 - 10.0s"
10+
"> ✔ task3 - 60.0s"
1111
" "
1212
" "
1313
" "

packages/nx/src/native/tui/components/snapshots/nx__native__tui__components__tasks_list__tests__continuous_task.snap

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@ source: packages/nx/src/native/tui/components/tasks_list.rs
33
expression: terminal.backend()
44
---
55
" "
6-
" NX Running Test Tasks... Cache Duration"
6+
" NX Running Test Tasks... Cache Duration"
77
""
8-
" │⠋ continuous-task - Continuous"
8+
" │⠋ continuous-task - Continuous"
99
" │· Waiting for task... "
1010
""
11-
"> · task1 ... ..."
12-
" · task2 ... ..."
13-
" · task3 ... ..."
11+
"> · task1 ... ..."
12+
" · task2 ... ..."
13+
" · task3 ... ..."
1414
" "
1515
" "
1616
" "

packages/nx/src/native/tui/components/snapshots/nx__native__tui__components__tasks_list__tests__initial_rendering.snap

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ source: packages/nx/src/native/tui/components/tasks_list.rs
33
expression: terminal.backend()
44
---
55
" "
6-
" NX Running Test Tasks... Cache Duration"
6+
" NX Running Test Tasks... Cache Duration"
77
" "
88
" "
9-
"> · task1 ... ..."
10-
" · task2 ... ..."
11-
" · task3 ... ..."
9+
"> · task1 ... ..."
10+
" · task2 ... ..."
11+
" · task3 ... ..."
1212
" "
1313
" "
1414
" "

0 commit comments

Comments
 (0)