Commit Graph

38 Commits

Author SHA1 Message Date
b16a58deae Updated Ratatui, created custom deserialization logic for i64s to make life easier, and used string interpolation where possible to reduce the lines needed to write log messages or create formatted text 2023-09-07 17:20:38 -06:00
ec9d23ede7 Refactored the movie_details_popup data into the MovieDetailsModal so things are neater and to follow the same format I've already established for other modals 2023-08-11 16:37:21 -06:00
f7cb832095 Refactored the filter and search logic to follow the established modal logic and added some refactored functions to the UI module as well to clean up the UI code too 2023-08-10 16:43:57 -06:00
ce12ebd301 Refactored the HorizontallyScrollableText struct to handle Unicode strings more uniformly and to not rely on byte boundaries but instead to rely on Unicode char boundaries 2023-08-08 14:15:23 -06:00
77fd9e621f Did a lot of things in this one: Cleaned up a bit of leftover unused code from yesterday; deprecated the use of drain() on HorizontallyScrollableText; Refactored the uses of search and filter to be wrapped in Options; Fixed a race condition when closing the Add Movie modals in rapid succession; upgraded to ratatui 0.22.0; Fixed a bug in attempting to close an empty root folder; fixed a bug in attempting to close an empty filter; fixed a bug in attempting to close an empty search; fixed a bug in attempting to close an empty filter without resetting the view; fixed a bug in attempting to delete a movie after dynamically added one and updating the main library table 2023-08-08 10:50:07 -06:00
2d624e2648 Refactored the Edit/Add modals into their own structs so that adding similar modals in the future is more consistent, uses less RAM (since it's wrapped in an Option now), and is easier to implement. This comes with an initial example of the IndexerSettings UI that needs its own modal now. The modal has been created but it is still not used just yet so that's the next step. 2023-08-08 10:50:07 -06:00
c8781ae442 Removed unnecessary use of clap since I'm making a TUI and not a CLI application 2023-08-08 10:50:07 -06:00
a8f6a5398b Fixed long-running requests to be cancelled when users try to change tabs or contexts. 2023-08-08 10:50:07 -06:00
718613d59f Added typo checks and upgraded to the latest version of Ratatui 2023-08-08 10:50:07 -06:00
0c7fc88e22 Added the ability to view Radarr updates and remapped the events queue key to 'z' 2023-08-08 10:50:07 -06:00
b2e475200c Implemented full system browsing support with logs, events, and tasks. 2023-08-08 10:50:06 -06:00
4fb83c114a Cleaned up the block selection logic to use the new BlockSelectionState struct 2023-08-08 10:50:06 -06:00
f252fedeed Converted project to use the tui-rs-revival ratatui in favor of the likely soon-to-be-archived tui-rs repo. 2023-08-08 10:50:06 -06:00
435926f6f0 Added two new checkboxes to the delete movie UI that allows users to specify to delete the file and/or add an exclusion for the selected film on deletion. Also fixed the refresh bug in the root folders UI where you have to manually refresh to get the changes to show before 20 seconds. Also cleaned up code a bit and removed some unnecessary clone calls and references-dereferences since the types were copyable and not necessary to be referenced since they were all dereferenced anyway and copied. Made sense to just cut out the middleman on the copies. 2023-08-08 10:50:06 -06:00
c606fe8573 Added full support for managing root folders, and also for changing the root folder when adding a movie 2023-08-08 10:50:06 -06:00
bf5ecbd5a6 Implemented the ability to edit collections and fixed a refresh bug so screens will automatically refresh when users edit movies or collections 2023-08-08 10:50:06 -06:00
7f3dd18478 Full support for editing movies and managing tags 2023-08-08 10:50:06 -06:00
207b8a8c80 Mostly completed tags implementation; still need to add the UI option for the Add Movie popup, and I still need to fix the REALLY FAST horizontal scrolling issue (I'm thinking just %2 everything to slow it down). Oh, and also need to convert the quality profile Hashmap into a BiMap 2023-08-08 10:50:05 -06:00
f92042fb21 Added some better theming to the UI, enabled clippy to warn on 2018 idioms, and added human_panic hook to report bugs 2023-08-08 10:50:05 -06:00
d5117fda39 Added pre-commit and pre-push hooks with the help of cargo-husky. This also means that I need to temporarily allow specific bits of dead code until I implement support for at least one more Servarr 2023-08-08 10:50:05 -06:00
74502f5462 Fixed another bug with properly showing the right colors for downloading files. Accidentally named the download field id instead of movie_id 2023-08-08 10:50:05 -06:00
1b915a7f9a Fixed an accidental overflow bug when determining when to scroll text horizontally or not 2023-08-08 10:50:05 -06:00
3007f76efe Incremented patch version after fixing previous bug 2023-08-08 10:50:05 -06:00
13e9ae08ec Upgraded to the first stable version of Mockito! 2023-08-08 10:50:05 -06:00
316c129b99 Fixed UI bug that didn't alert users when they tried to add a movie that couldn't be found 2023-08-08 10:50:05 -06:00
88f10d13bb Upgraded crossterm and indoc 2023-08-08 10:50:05 -06:00
ef781a415c Initial API tests with Mockito 2023-08-08 10:50:05 -06:00
c15bda5885 Started writing more tests in the handlers 2023-08-08 10:50:05 -06:00
3af3eddf71 Added unit tests to the app module 2023-08-08 10:50:05 -06:00
3b5b92369d Removed unused dependencies now 2023-08-08 10:50:04 -06:00
b748d27a06 Partial implementation for additional add-movie details. Need to implement selection menus now but that's it! 2023-08-08 10:50:04 -06:00
08cde20359 Mostly added Add movie functionality. Removed calendar functions for now. Want to add the ability to modify settings and quality profiles first 2023-08-08 10:50:04 -06:00
25730a3324 Partially working filtering logic 2023-08-08 10:50:04 -06:00
c16f234088 Implemented Library and Download tabs! 2023-08-08 10:50:04 -06:00
ec980ea32c Full popup description functionality 2023-08-08 10:50:04 -06:00
1ebf481326 Initial Radarr ui! 2023-08-08 10:50:04 -06:00
3ae7e15961 Added uptime metrics for radarr 2023-08-08 10:50:04 -06:00
0d4e283c21 Base working commit with a UI thread (Tokio), Network thread (Tokio), and an input events thread (std). 2023-08-08 10:50:03 -06:00