Skip to content

Commit

Permalink
feat: refactor app.rs (#21)
Browse files Browse the repository at this point in the history
This PR refactors app.rs into several different types, and adds a permanent statusbar.

---------

Co-authored-by: Dheepak Krishnamurthy <me@kdheepak.com>
  • Loading branch information
joshka and kdheepak committed Feb 10, 2024
1 parent aa20475 commit 095c5ca
Show file tree
Hide file tree
Showing 13 changed files with 1,155 additions and 932 deletions.
6 changes: 3 additions & 3 deletions Cargo.lock

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

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ lazy_static = "1.4.0"
libc = "0.2.148"
num-format = "0.4.4"
pretty_assertions = "1.4.0"
ratatui = { version = "0.26.0", features = ["serde", "macros"] }
ratatui = { version = "0.26.1-alpha.0", features = ["serde", "macros"] }
ratatui-macros = "0.2.3"
serde = { version = "1.0.188", features = ["derive"] }
serde_with = "3.5.0"
Expand Down
2 changes: 0 additions & 2 deletions src/action.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ use crate::app::Mode;

#[derive(Debug, Display, Clone, PartialEq, Eq, Hash, Serialize, Deserialize)]
pub enum Action {
Ignore,
Tick,
Render,
KeyRefresh,
Expand All @@ -24,7 +23,6 @@ pub enum Action {
GetCrates,
SwitchMode(Mode),
SwitchToLastMode,
HandleFilterPromptChange,
IncrementPage,
DecrementPage,
NextSummaryMode,
Expand Down
Loading

0 comments on commit 095c5ca

Please sign in to comment.