fix(core): improve tui task_list bottom section responsive design (#30993)

This commit is contained in:
James Henry 2025-05-02 17:30:54 +04:00 committed by GitHub
parent 87a00da7e5
commit ed3788fd2b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
33 changed files with 950 additions and 312 deletions

View File

@ -92,7 +92,7 @@ impl HelpText {
];
f.render_widget(
Paragraph::new(Line::from(shortcuts)).alignment(Alignment::Center),
Paragraph::new(Line::from(shortcuts)).alignment(Alignment::Right),
safe_area,
);
}

View File

@ -16,4 +16,4 @@ expression: terminal.backend()
" "
" "
" "
" ← 1/1 → quit: q help: ? View results at https://nx.app/runs/123"
" ← 1/1 → View logs and run details at https://nx.app/runs/KnGk4A47qk quit: q help: ?"

View File

@ -0,0 +1,19 @@
---
source: packages/nx/src/native/tui/components/tasks_list.rs
expression: terminal.backend()
---
" "
" NX Completed Test Tasks Duration"
" "
" ✔ task1 ..."
"> ✔ task2 ..."
" ✔ task3 ..."
" "
" "
" "
" "
" "
" "
" https://nx.app/runs/KnGk4A47qk "
" "
" ← 1/1 → quit: q help: ?"

View File

@ -0,0 +1,19 @@
---
source: packages/nx/src/native/tui/components/tasks_list.rs
expression: terminal.backend()
---
" "
" NX Running Test Tasks... Cache Duration"
" "
" "
"> · task1 ... ..."
" · task2 ... ..."
" · task3 ... ..."
" "
" "
" "
" "
" "
" "
" "
" ← 1/1 → This is some warning from Nx Cloud quit: q help: ?"

View File

@ -0,0 +1,19 @@
---
source: packages/nx/src/native/tui/components/tasks_list.rs
expression: terminal.backend()
---
" "
" NX Running Test Tasks... Cache Duration"
" "
" "
"> · task1 ... ..."
" · task2 ... ..."
" · task3 ... ..."
" "
" "
" "
" "
" "
" "
" "
" ← 1/1 → This is some warning from Nx Cloud quit: q help: ? navigate: ↑ ↓ filter: / pin output: 1 or 2 show output: <enter>"

View File

@ -15,5 +15,5 @@ expression: terminal.backend()
" "
" "
" "
" ← 1/1 → "
" quit: q help: ? "
" "
" ← 1/1 → quit: q help: ?"

View File

@ -15,5 +15,5 @@ expression: terminal.backend()
" "
" "
" "
" ← 1/1 → "
" quit: q help: ? "
" "
" ← 1/1 → quit: q help: ?"

View File

@ -0,0 +1,10 @@
---
source: packages/nx/src/native/tui/components/tasks_list.rs
expression: terminal.backend()
---
" "
" NX Running Many Page Duration"
" "
"> · task52 ..."
" "
" ← 50/101 → quit: q help: ?"

View File

@ -0,0 +1,10 @@
---
source: packages/nx/src/native/tui/components/tasks_list.rs
expression: terminal.backend()
---
" "
" NX Running Many Page Duration"
" "
" The remote cache will not be read f..."
" "
" ← 50/101 → quit: q help: ?"

View File

@ -0,0 +1,10 @@
---
source: packages/nx/src/native/tui/components/tasks_list.rs
expression: terminal.backend()
---
" "
" NX Running Many Pages Test... Cache Duration"
" "
"> · task52 ... ..."
" "
" ← 50/101 → quit: q help: ? navigate: ↑ ↓ filter: / pin output: 1 or 2 show output: <enter>"

View File

@ -0,0 +1,10 @@
---
source: packages/nx/src/native/tui/components/tasks_list.rs
expression: terminal.backend()
---
" "
" NX Running Many Pages Test... Cache Duration"
" "
"> · task52 ... ..."
" "
" ← 50/101 → The remote cache will not be read from or written to during this run. quit: q help: ?"

View File

@ -11,4 +11,4 @@ expression: terminal.backend()
"> · task2 ... ..."
" · task3 ... ..."
" "
" ← 1/1 → quit: q help: ? "
" ← 1/1 → quit: q help: ? navigate: ↑ ↓ filter: / pin output: 1 or 2 show output: <enter>"

View File

@ -0,0 +1,19 @@
---
source: packages/nx/src/native/tui/components/tasks_list.rs
expression: terminal.backend()
---
" "
" NX Ru Duration"
" "
" ⠋ ta ..."
" "
"> · ta ..."
" · ta ..."
" "
" "
" "
" "
" "
" "
" "
" ← 1/1 → "

View File

@ -0,0 +1,19 @@
---
source: packages/nx/src/native/tui/components/tasks_list.rs
expression: terminal.backend()
---
" "
" NX Ru Duration"
" "
" ⠋ ta ..."
" "
"> · ta ..."
" · ta ..."
" "
" "
" "
" "
" "
" The remote cache wil..."
" "
" ← 1/1 → "

View File

@ -15,5 +15,5 @@ expression: terminal.backend()
" "
" "
" "
" "
" ← 1/1 → "
" quit: q help: ? "

View File

@ -0,0 +1,14 @@
---
source: packages/nx/src/native/tui/components/tasks_list.rs
expression: terminal.backend()
---
" "
" NX Running Test Tasks... Cache Duration"
" "
" ⠋ task1 ... ..."
" "
"> · task2 ... ..."
" · task3 ... ..."
" "
" "
" ← 1/1 → quit: q help: ? navigate: ↑ ↓ filter: / pin output: 1 or 2 show output: <enter>"

File diff suppressed because it is too large Load Diff

View File

@ -1,4 +1,3 @@
use hashbrown::HashSet;
use napi::bindgen_prelude::*;
use napi::threadsafe_function::{ErrorStrategy, ThreadsafeFunction};
use napi::JsObject;