Skip to content

Commit 62c564d

Browse files
[tuify][giti] Redesign giti branch delete user experience
Co-authored-by: Harshil Jani <[email protected]> Signed-off-by: Nazmul Idris <[email protected]>
1 parent 615124c commit 62c564d

File tree

16 files changed

+424
-243
lines changed

16 files changed

+424
-243
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -509,4 +509,4 @@
509509
<a id="markdown-more-info-on-changelogs" name="more-info-on-changelogs"></a>
510510

511511
- https://keepachangelog.com/en/1.0.0/
512-
- https://co-pilot.dev/changelog
512+
- https://co-pilot.dev/changelog

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ Below are some guides to help you get started:
6868

6969
<a id="markdown-working-on-issues" name="working-on-issues"></a>
7070

71-
If you want to work on an issue, please comment on the issue asing to be assigned to it, so that we
71+
If you want to work on an issue, please comment on the issue asking to be assigned to it, so that we
7272
can assign the issue to you. If you have any questions about the issue, we can discuss them in the
7373
comments or on [R3BL Discord server](https://discord.gg/8M2ePAevaM).
7474

core/src/common/common_result_and_error.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ pub enum CommonErrorType {
8383
InvalidRgbColor,
8484
InvalidHexColorFormat,
8585
NotFound,
86+
CommandExecutionError,
8687
}
8788

8889
/// Implement [`Error`] trait.

tuify/Cargo.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ r3bl_rs_utils_core = { path = "../core", version = "0.9.9" }
3636
# serde for JSON serialization.
3737
serde = { version = "1.0.190", features = ["derive"] }
3838
serde_json = "1.0.107"
39+
r3bl_tui = { path = "../tui", version = "0.3.10" }
40+
3941

4042
# Terminal output.
4143
crossterm = "0.27.0"
@@ -51,4 +53,4 @@ reedline = "0.25.0"
5153

5254
[dev-dependencies]
5355
pretty_assertions = "1.4.0"
54-
serial_test = "2.0.0"
56+
serial_test = "2.0.0"

tuify/examples/main_interactive.rs

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ use std::io::Result;
1919

2020
use r3bl_ansi_color::{AnsiStyledText, Color, Style as RStyle};
2121
use r3bl_rs_utils_core::*;
22-
use r3bl_tuify::{components::style::StyleSheet, get_size, select_from_list, SelectionMode, TRACE};
22+
use r3bl_tuify::{
23+
components::style::StyleSheet, get_size, select_from_list, SelectionMode, DEVELOPMENT_MODE,
24+
};
2325
mod single_select_quiz_game;
2426
use single_select_quiz_game::main as single_select_quiz_game;
2527

@@ -39,7 +41,7 @@ fn print_header(msg: &str) {
3941

4042
fn main() -> Result<()> {
4143
throws!({
42-
call_if_true!(TRACE, {
44+
call_if_true!(DEVELOPMENT_MODE, {
4345
try_to_set_log_level(log::LevelFilter::Trace).ok();
4446
log_debug("Start logging...".to_string());
4547
log_debug(format!("og_size: {:?}", get_size()?).to_string());
@@ -164,7 +166,7 @@ fn main() -> Result<()> {
164166
None => println!("User did not select anything"),
165167
}
166168

167-
call_if_true!(TRACE, {
169+
call_if_true!(DEVELOPMENT_MODE, {
168170
log_debug("Stop logging...".to_string());
169171
});
170172
});
@@ -234,7 +236,7 @@ fn multiple_select_13_items_vph_5(
234236
}
235237
None => println!("User did not select anything"),
236238
}
237-
call_if_true!(TRACE, {
239+
call_if_true!(DEVELOPMENT_MODE, {
238240
log_debug(format!("user_input: {:?}", user_input).to_string());
239241
});
240242
}
@@ -265,7 +267,7 @@ fn multiple_select_2_items_vph_5(
265267
}
266268
None => println!("User did not select anything"),
267269
}
268-
call_if_true!(TRACE, {
270+
call_if_true!(DEVELOPMENT_MODE, {
269271
log_debug(format!("user_input: {:?}", user_input).to_string());
270272
});
271273
}
@@ -309,7 +311,7 @@ fn single_select_13_items_vph_5(
309311
}
310312
None => println!("User did not select anything"),
311313
}
312-
call_if_true!(TRACE, {
314+
call_if_true!(DEVELOPMENT_MODE, {
313315
log_debug(format!("user_input: {:?}", user_input).to_string());
314316
});
315317
}
@@ -339,7 +341,7 @@ fn single_select_2_items_vph_5(
339341
}
340342
None => println!("User did not select anything"),
341343
}
342-
call_if_true!(TRACE, {
344+
call_if_true!(DEVELOPMENT_MODE, {
343345
log_debug(format!("user_input: {:?}", user_input).to_string());
344346
});
345347
}

0 commit comments

Comments
 (0)