Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implementing a tui dashboard for paddler as an alternative to using the dashboard web model. #31

Merged
merged 28 commits into from
Dec 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
bdcfeda
making Makefile work for windows.
Propfend Nov 21, 2024
96c4fe4
Merge branch 'main' of github.com:Propfend/paddler
Propfend Nov 22, 2024
ec833a7
setting up errors and proper files structure.
Propfend Nov 28, 2024
d638952
tui works with mocked data
Propfend Nov 29, 2024
1c40952
working with endpoint
Propfend Nov 29, 2024
66dd9a5
working with no agents at all also.
Propfend Nov 29, 2024
753c45f
trying to make it work with request loop by calling it in ratatui mai…
Propfend Nov 30, 2024
bbb20e1
making it work with 3 loops in ratatui_main.
Propfend Dec 2, 2024
77d5e96
implementing ticks.
Propfend Dec 3, 2024
3f922f9
removing run() from the app.rs
Propfend Dec 3, 2024
30a69f9
adjusting error column field size.
Propfend Dec 3, 2024
77f9a2c
fixing date format
Propfend Dec 3, 2024
68d6ef5
creating toggling functions and removing previous ones
Propfend Dec 3, 2024
14e1d3c
changing tokio::time::sleep() by tokio::time::interval
Propfend Dec 3, 2024
07c31f6
removing lock from "needs_rendering".
Propfend Dec 3, 2024
e127031
fixing toggles "needs_rendering"
Propfend Dec 3, 2024
43c4022
fixing interval
Propfend Dec 3, 2024
5bba777
fixing lag while pressing keyboard commands. implementing channels an…
Propfend Dec 4, 2024
a3ce20e
implementing the Error displaying.
Propfend Dec 4, 2024
58a90b2
Revert "implementing the Error displaying."
Propfend Dec 4, 2024
2f3ad1f
fixing error displaying
Propfend Dec 4, 2024
3e41bd5
fixing the empty agents state(no agents running but balancer running).
Propfend Dec 4, 2024
338aa60
Merge branch 'distantmagic:main' into main
Propfend Dec 4, 2024
d2f36cf
calculating the longest_item_len
Propfend Dec 5, 2024
a853767
disabling the ratatui_dashboard features as default.
Propfend Dec 5, 2024
71a746d
setting default items len to 0.
Propfend Dec 5, 2024
fdd27e2
letting the dashboard module disabled by default.
Propfend Dec 5, 2024
52e66a8
fixing the undefined behaviour of tui( displaying table with agents e…
Propfend Dec 5, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
179 changes: 168 additions & 11 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ askama = { version = "0.12.1", optional = true }
askama_actix = { version = "0.14.0", optional = true }
mime_guess = { version = "2.0.5", optional = true }
rust-embed = { version = "8.5.0", optional = true }
itertools = "0.13.0"
color-eyre = "0.6.3"
time = "0.3.36"
chrono = "0.4.38"

[features]
default = ["statsd_reporter"]
Expand Down
1 change: 0 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ esbuild: node_modules
resources/css/reset.css \
resources/css/page-dashboard.css \
resources/ts/controller_dashboard.tsx \
;

.PHONY: run.agent
run.agent: esbuild
Expand Down
2 changes: 1 addition & 1 deletion src/balancer/upstream_peer_pool.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ use crate::{

#[derive(Serialize, Deserialize)]
pub struct UpstreamPeerPool {
agents: RwLock<Vec<UpstreamPeer>>,
pub agents: RwLock<Vec<UpstreamPeer>>,
}

impl UpstreamPeerPool {
Expand Down
Loading