summaryrefslogtreecommitdiffstats
path: root/tests
AgeCommit message (Collapse)Author
2021-11-20refactor: mostly add back tree mode for processClementTsang
Mouse control on collapse is not working yet, need to do some work internally first.
2021-09-26refactor: delete more stuffClementTsang
Mostly previously re-added files during the merge conflict resolution, and a lot of unused code. Still more to delete after I finish rewriting the process kill dialog.
2021-09-05refactor: move basic mode overClementTsang
Because writing your own layout system and management is just *so much fun*. Totally. ------------------------------------------------------------------- Moves the basic mode system over to the new drawing/widget system. In the process, it has forced me to completely redo how we do layouts... again. This is because basic mode has widgets that control their own height - this means the height of the columns and rows that wrap it are also affected by the widget's height. The previous system, using a constraint tree and splitting draw Rects via tui-rs' built-in constraint solver, did not support this concept very well. It was not simple to propagate up the widths/heights towards parents while also using tui-rs' built-in constraint solver. In the end, it was easier to just rewrite it using another algorithm. We now follow a process very similar to Flutter's layout system. Relevant links to the Flutter docs are found in the code or below: - https://flutter.dev/docs/development/ui/layout/constraints - https://flutter.dev/docs/resources/inside-flutter#sublinear-layouts The gist of it, however, is that we now instead a few new options for any element in the layout tree. A node can either: - Grow to fill remaining space - Take up as much room as its children - Be a specific length Technically right now, it's not perfect, in that leaf nodes can be as large as their children (which makes no sense), though in that case it just treats it as an expand.
2021-07-06bug: Tests try to modify user home directory (#535)Chloe Brown
Fixes a bug where running `cargo test` would try to create a configuration file for the user.
2021-02-15feature: add nord and nord-light colours (#406)Clement Tsang
Adds colour schemes for Nord, along with a light variant.
2020-11-22ci: uptick to 0.5.1, fix ciClementTsang
2020-11-15feature: default colour schemes (#296)Clement Tsang
Adds some default colour choices to choose from.
2020-09-02other: aarch64 support (#217)Clement Tsang
Adds theoretical aarch64 support.
2020-09-01bug: fix broken check from last commit, add testsClementTsang
2020-08-31refactor: Update error messages w/ anyhow and thiserror (#216)Clement Tsang
Refactoring and updating of error messages + tests to be more useful.
2020-08-29feature: Add mouse click support for moving between widgets (#208)Clement Tsang
Adds mouse support to the application, to move between widgets and click on elements. List of things to added: - Click to move between widgets - Click to move between widgets in basic mode - Click on widget entries - Ability to disable mouse if you don't like it, I guess
2020-08-19refactor: Refactor code, add new testsClement Tsang
Refactor code so we use a lib, allowing for easier testing. Adds additional tests for layouts.
2020-08-15feature: Allow sorting by any columnClement Tsang
This feature allows any column to be sortable. This also adds: - Inverting sort for current column with `I` - Invoking a sort widget with `s` or `F6`. Close with same key or esc. And: - A bugfix in regards the basic menu and battery widget - A lot of refactoring
2020-05-16change: remove slash, change scroll behaviour on cpuClement Tsang
- Removal of the old slash-space-to-hide behaviour of CPU widget - Scrolling onto a specific entry will only show that entry - Showing average is now default
2020-05-04chore: update travis a bit for msrvClement Tsang
2020-05-04update tests to deal with msrvClementTsang
2020-04-23test: add config tests, update arg testsClementTsang
2020-04-23refactor: update arg tests to use new binary envClementTsang
2020-04-01Add modularity to widget placement and inclusion (#95)Clement Tsang
2020-03-10Updated documentation, made error in args clearerClementTsang
2020-03-09Add hiding time and autohiding time.ClementTsang
2020-03-08Fixes bug with too large inputs causing a panicClementTsang
We would prefer a more graceful error message stating what went wrong. Caught by the Travis test.
2020-03-08Add configurable default time and interval valuesClementTsang
Also added documentation both in app and in the README.
2020-03-03Add two new tests; bit unrelated tbh.ClementTsang
2020-03-02Refactoring.ClementTsang
2020-02-28Optimized imports as per clionClementTsang
2020-02-20Fix issue with default file paths not being respected; updated default file ↵ClementTsang
paths.
2019-12-30Quick error change for processes to be a bit more graceful, fix testsClement Tsang
2019-12-15Update controls.ClementTsang
2019-10-20Fix for broken testsClementTsang
2019-09-16Fixed text issue.ClementTsang
2019-09-16Added vim + keyboard bindings.ClementTsang
2019-09-15Made charting look better, switched back to braille markers (its the only ↵ClementTsang
way I could make it look good), and dealt with some issues regarding the display of networking.
2019-09-14Fixed tests.ClementTsang
2019-09-14Added error util, finished network graph.ClementTsang
2019-09-04Set up more file hierarchy.ClementTsang