Skip to content

Commit

Permalink
Unified all text input fields to have consistent behaviour + reduced …
Browse files Browse the repository at this point in the history
…default toast duration + fixed visual bugs where theme background colors did not match inactive state color + fixed not getting an error when trying to go down when already at the last card in a board + added shortcuts to change card priority + removed unnecessary manual string implementations (used strum) + fixed reset password not working + appropriate error for invalid credentials while logging in + added future goals for the project in README + bump deps + fixes #16 and #17
  • Loading branch information
yashs662 committed Jun 4, 2024
1 parent 071c456 commit 185fef8
Show file tree
Hide file tree
Showing 13 changed files with 2,184 additions and 3,971 deletions.
69 changes: 30 additions & 39 deletions Cargo.lock

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

13 changes: 6 additions & 7 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "rust-kanban"
version = "0.9.6"
version = "0.9.7"
authors = ["Yash Sharma <yashs662@gmail.com>"]
edition = "2021"
license = "MIT"
Expand All @@ -11,27 +11,26 @@ categories = ["command-line-utilities", "text-editors"]

[dependencies]
log = "0.4.21"
ratatui = { version = "0.26.2", features = ["serde"] }
ratatui = { version = "0.26.3", features = ["serde"] }
crossterm = "0.27.0"
tokio = { version = "1.37.0", features = ["full"] }
tokio = { version = "1.38.0", features = ["full"] }
chrono = "0.4.38"
textwrap = "0.16.1"
eyre = "0.6.12"
home = "0.5.9"
serde = { version = "1.0.201", features = ["derive"] }
serde = { version = "1.0.203", features = ["derive"] }
serde_json = "1.0.117"
clap = { version = "4.5.4", features = ["derive"] }
uuid = { version = "1.8.0", features = ["v4"] }
regex = "1.10.4"
linked-hash-map = "0.5.6"
ngrammatic = "0.4.0"
lazy_static = "1.4.0"
fxhash = "0.2.1"
parking_lot = "0.12.2"
parking_lot = "0.12.3"
reqwest = { version = "0.12.4", features = ["json"] }
aes-gcm = "0.10.3"
base64 = "0.22.1"
bunt = "0.2.8"
strum = "0.26.2"
strum_macros = "0.26.2"
strum_macros = "0.26.3"
portable-atomic = "1.6.0"
18 changes: 15 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,11 @@ Feel free to make a pull request or make a new issue, I am open to suggestions

## TODO

- [ ] Unify all text input fields and improve the way they are handled (currently there are multiple ways to handle text input)
- [ ] Create a vs code extension, for adding quick notes and tasks, with / commands for specific boards cards or types etc (think more about this in future)
- [ ] Create a parallel web ui for the app that can be hosted from the app itself with a startup flag (e.g. --web-ui --port 8080)
- [ ] Implement selection in text input mode for editing text (e.g. select text with the mouse and delete it)
- [ ] Add ability to move boards (e.g. move a board to the left or right)
- [ ] While adding a new tag show a list of existing tags to choose from (like a context menu) (require multiple popups to be implemented)
- [ ] Optimize logger to handle high volumes of logs (app becomes sluggish when there are a lot of logs)
- [ ] Make configuration for integer values more user-friendly (e.g. when changing the number of columns in the kanban board)
- [ ] Add a date picker for the date field
Expand All @@ -35,7 +39,8 @@ Feel free to make a pull request or make a new issue, I am open to suggestions

## Completed Features

- [x] Drag and Drop cards with the mouse
- [X] Unify all text input fields and improve the way they are handled (currently there are multiple ways to handle text input)
- [X] Drag and Drop cards with the mouse
- [X] Allow for vertical movement in text fields (e.g. card description)
- [X] Encryption for Cloud Saves
- [X] Implement Cloud saves
Expand Down Expand Up @@ -64,7 +69,9 @@ Feel free to make a pull request or make a new issue, I am open to suggestions

## Known Issues

None as of now
- [ ] Cursor for Card Tags and Comments is incorrect when tag is longer than available space
- [ ] Custom RGB colors are not working for Create Theme
- [ ] Emoticons and other non-ascii characters which take up more than one space may overlap with other characters or affect cursor position

## PSA (i.e. Public service announcement)

Expand Down Expand Up @@ -97,6 +104,9 @@ None as of now
| '1' | Change Card Status to Completed |
| '2' | Change Card Status to Active |
| '3' | Change Card Status to Stale |
| '4' | Change Card Priority to High |
| '5' | Change Card Priority to Medium |
| '6' | Change Card Priority to Low |
| 'r' | Reset UI to Default |
| 'm' | Go to Main Menu |
| 'Ctrl + p' | Toggle Command Palette |
Expand All @@ -109,6 +119,8 @@ None as of now
| 'Mouse Scroll Down' | Scroll Down Cards (for cards) |
| 'Ctrl + Mouse Scroll Up' | Scroll to the right (for boards) |
| 'Ctrl + Mouse Scroll Down' | Scroll to the left (for boards) |
| 'Ctrl + z' | Undo |
| 'Ctrl + y' | Redo |

## Available Themes

Expand Down
8 changes: 7 additions & 1 deletion src/app/actions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ pub enum Action {
ChangeCardStatusToActive,
ChangeCardStatusToCompleted,
ChangeCardStatusToStale,
ChangeCardPriorityToHigh,
ChangeCardPriorityToMedium,
ChangeCardPriorityToLow,
ClearAllToasts,
Delete,
DeleteBoard,
Expand Down Expand Up @@ -49,6 +52,9 @@ impl Display for Action {
Action::ChangeCardStatusToActive => "Change card status to active",
Action::ChangeCardStatusToCompleted => "Change card status to completed",
Action::ChangeCardStatusToStale => "Change card status to stale",
Action::ChangeCardPriorityToHigh => "Change card priority to high",
Action::ChangeCardPriorityToMedium => "Change card priority to medium",
Action::ChangeCardPriorityToLow => "Change card priority to low",
Action::ClearAllToasts => "Clear all toasts",
Action::Delete => "Delete focused element",
Action::DeleteBoard => "Delete Board",
Expand All @@ -65,7 +71,7 @@ impl Display for Action {
Action::NewBoard => "Create new board",
Action::NewCard => "Create new card in current board",
Action::NextFocus => "Focus next",
Action::OpenConfigMenu => "configure",
Action::OpenConfigMenu => "Configure",
Action::PrvFocus => "Focus previous",
Action::Quit => "Quit",
Action::Redo => "Redo",
Expand Down
Loading

0 comments on commit 185fef8

Please sign in to comment.