Commit Graph

351 Commits

Author SHA1 Message Date
Jack Wills d628e80299 refactor: popup() use saturating_x() rather than checked_x() 2023-03-30 02:28:53 +00:00
Jack Wills b9c125da46 fix: out of bound bug in heading_bar
use a `saturating_sub` to calculate the column_width
2023-03-30 02:22:47 +00:00
Jack Wills 937202fe34 feat: delete container, closes #27
Enable a user to delete a container. A dialog will pop up to ask the user to confirm the deletion. A user can then click on either button, or press N/Y to make a selection
2023-03-30 02:12:03 +00:00
Jack Wills 7c92ffef7d refactor: button_item() include brackets 2023-03-29 18:00:31 +00:00
Jack Wills e0b49be840 fix: "-d" arg error text updated 2023-03-29 17:29:19 +00:00
Jack Wills f906799782 fix: alter the help box link underlining 2023-03-29 17:20:20 +00:00
Jack Wills f23dac9bc8 fix: alter the help box link underlining 2023-03-20 00:06:21 +00:00
Jack Wills d431f85021 feat: use ratatui 2023-03-19 21:08:33 +00:00
Jack Wills cb9686cfe8 chore: release v0.2.5 2023-03-13 22:01:39 +00:00
Jack Wills e3d0d64b4d docs: changelog 2023-03-13 00:56:16 +00:00
Jack Wills 79de92c392 refactor: use unwrap_or_default() 2023-03-11 21:04:44 +00:00
Jack Wills d9f0bd5566 refactor: result return 2023-03-11 21:04:16 +00:00
Jack Wills 8ba37a165b refactor: reaplace unwrap_or(()) with .ok() 2023-03-09 15:18:00 +00:00
Jack Wills 5582c45403 chore: Rust 1.68.0 clippy linting 2023-03-09 15:12:51 +00:00
Jack Wills 924f14e998 feat: increase mpsc channel size (16 to 32 messages) 2023-03-07 03:24:42 +00:00
Jack Wills 598f67c6f6 feat: KeyEvents send modifier, so can quit on ctrl + c 2023-03-02 16:09:57 +00:00
Jack Wills 507660d835 feat: only send relevant mouse events to input handler 2023-03-02 16:01:37 +00:00
Jack Wills 340893a860 fix: correctly set gui error 2023-03-02 05:18:06 +00:00
Jack Wills cb7518afe6 docs: changelog 2023-03-02 04:13:31 +00:00
Jack Wills c74f6c1179 refactor: enable_mouse_capture() moved into Ui struct 2023-03-02 04:10:38 +00:00
Jack Wills 9d2e72086b docs: comment typos 2023-03-02 03:54:55 +00:00
Jack Wills 93f7c07f70 fix: nullify_event_read(), mouse event output fix 2023-03-02 03:48:21 +00:00
Jack Wills 495d5ae789 docs: changelog 2023-03-02 03:20:35 +00:00
Jack Wills 0a1b531116 feat: Acutal fix the the mouse events output
The EnableMouseCapture from Crossterm was too broad, by only enabling a subject of the events, 1) performance is improvedand 2) and intermittent bug where mouse events were output to stdout has been removed
2023-03-02 01:09:17 +00:00
Jack Wills ec962295a8 docs: comments improved 2023-03-01 21:33:58 +00:00
Jack Wills b8f5792d18 refactor: dead code removed 2023-03-01 19:18:36 +00:00
Jack Wills 28de74b866 feat: style help info box
Style each button comman in the help information window, instead of just one giant string.
Now uses a HelpInfo struct, which contains the content, as well as widths + height
2023-03-01 19:18:19 +00:00
Jack Wills 04c26fe8fc refactor: improve the get_width function
Just use x = x.max(y) for the column widths, instead of the previous, laborious, check then update methods
2023-03-01 19:14:39 +00:00
Jack Wills 3437df5988 refactor: ui into a struct 2023-02-28 19:48:49 +00:00
Jack Wills 2626250ace fix: stop_running function
Use stop_running to set the global is_running AtomicBool to false, and to also, on a seperate thread, enable & then disable mouse capture, as was experience strange issue on Linux & WSL with mouse movements being piped to stdout
2023-02-28 18:10:24 +00:00
Jack Wills 31bfaa7a95 wip: fix for mouse capture bug 2023-02-28 04:10:31 +00:00
Jack Wills 846e0641d0 wip: mouse capture errors 2023-02-27 19:52:03 +00:00
Jack Wills 72279e26ae feat: use checked_sub & checked_div for bounds checks 2023-02-27 15:25:18 +00:00
Jack Wills e8f5cf9c6f refactor: get_horizotal/vertical contraints into single method 2023-02-27 14:50:04 +00:00
Jack Wills 074cb957f2 refactor: docker update_everything variables 2023-02-27 14:39:00 +00:00
Jack Wills 23ad9a5fb3 docs: comment typo 2023-02-27 03:15:00 +00:00
Jack Wills cebb975cb8 fix: typos 2023-02-27 02:56:47 +00:00
Jack Wills b6c3ce21ca fix: move final stout flush to main.rs 2023-02-27 02:56:38 +00:00
Jack Wills 8437cca72f docs: changelog 2023-02-03 22:39:09 +00:00
Jack Wills d48e6561f9 chore: clippy todo warn 2023-02-03 21:49:19 +00:00
Jack Wills 17b71b6b41 feat: switch to scratch docker container 2023-02-03 21:40:14 +00:00
Kian-Meng Ang a0e2eb38ae docs: fix typos
Found via `typos --format brief`
2023-02-03 10:21:16 +08:00
Jack Wills c77c60e151 chore: release v0.2.1 2023-01-29 02:46:38 +00:00
Jack Wills d7a8639d8b docs: changelog 2023-01-29 02:12:02 +00:00
Jack Wills c0bb5355d6 refactor: app_data methods re-ordered & renamed 2023-01-29 01:52:38 +00:00
Jack Wills 2ab88eb26e chore: dependencies updated 2023-01-28 21:55:40 +00:00
Jack Wills 68e444bfc3 fix: deadlock on draw logs when no containers found 2023-01-28 21:53:21 +00:00
Jack Wills c4d80061da revert: is_running AtomicBool back to SeqCst 2023-01-28 20:45:02 +00:00
Jack Wills b4488e4bdb refactor: major refactor of internal data handling
What started off as an inquisitive look at how the gui drawing blocks get the data they require in order to draw to the screen, ended up as a realisation  that it could be achieved in a better manner. Basically just use x.get(y), instead of using x[y] all over the place
2023-01-28 20:44:09 +00:00
Jack Wills 1025579138 docs: comment typo 2023-01-28 17:23:27 +00:00