iduartgomez / simag

An experimental, under development, agent-based AI framework
Mozilla Public License 2.0
5 stars 2 forks source link

Update tui requirement from 0.14 to 0.15 #23

Closed dependabot-preview[bot] closed 3 years ago

dependabot-preview[bot] commented 3 years ago

⚠️ Dependabot Preview has been deactivated ⚠️

This pull request was created by Dependabot Preview, and you've upgraded to Dependabot. This means it won't respond to dependabot commands nor will it be automatically closed if a new version is found.

If you close this pull request, Dependabot will re-create it the next time it checks for updates and everything will work as expected.


Updates the requirements on tui to permit the latest version.

Release notes

Sourced from tui's releases.

v0.15.0

Features

  • Update crossterm to 0.19.
  • Update rand to 0.8.
  • Add a read-only view of the terminal state after the draw call (#440).

Fixes

  • Remove compile warning in TestBackend::assert_buffer (#466).
Changelog

Sourced from tui's changelog.

v0.15.0 - 2021-05-02

Features

  • Update crossterm to 0.19.
  • Update rand to 0.8.
  • Add a read-only view of the terminal state after the draw call (#440).

Fixes

  • Remove compile warning in TestBackend::assert_buffer (#466).

v0.14.0 - 2021-01-01

Breaking changes

New API for the Table widget

The Table widget got a lot of improvements that should make it easier to work with:

  • It should not longer panic when rendered on small areas.
  • Rows are now a collection of Cells, themselves wrapping a Text. This means you can style the entire Table, an entire Row, an entire Cell and rely on the styling capabilities of Text to get full control over the look of your Table.
  • Rows can have multiple lines.
  • The header is now optional and is just another Row always visible at the top.
  • Rows can have a bottom margin.
  • The header alignment is no longer off when an item is selected.

Taking the example of the code in examples/demo/ui.rs, this is what you may have to change:

     let failure_style = Style::default()
         .fg(Color::Red)
         .add_modifier(Modifier::RAPID_BLINK | Modifier::CROSSED_OUT);
-    let header = ["Server", "Location", "Status"];
     let rows = app.servers.iter().map(|s| {
         let style = if s.status == "Up" {
             up_style
         } else {
             failure_style
         };
-        Row::StyledData(vec![s.name, s.location, s.status].into_iter(), style)
+        Row::new(vec![s.name, s.location, s.status]).style(style)
     });
-    let table = Table::new(header.iter(), rows)
+    let table = Table::new(rows)
+        .header(
+            Row::new(vec!["Server", "Location", "Status"])
+                .style(Style::default().fg(Color::Yellow))
+                .bottom_margin(1),
+        )
</tr></table> 

... (truncated)

Commits
  • 90a6a8f Release v0.15.0
  • 414386e chore: update rand to 0.8 (#472)
  • 3a843d5 fix(test): remove compile warning in TestBackend::assert_buffer (#466)
  • 4e76bfa chore: add Vector to list of apps using tui (#452)
  • 8832281 Update crossterm to 0.19.
  • 853f3d9 feat(terminal): add a read-only view of the terminal state after the draw call
  • 67e996c feat(examples): add third tab to demo to show colors
  • See full diff in compare view


Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) - `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language - `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language - `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language - `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language - `@dependabot badge me` will comment on this PR with code to add a "Dependabot enabled" badge to your readme Additionally, you can set the following in your Dependabot [dashboard](https://app.dependabot.com): - Update frequency (including time of day and day of week) - Pull request limits (per update run and/or open at any time) - Out-of-range updates (receive only lockfile updates, if desired) - Security updates (receive only security updates, if desired)
codecov[bot] commented 3 years ago

Codecov Report

Merging #23 (5d20cab) into master (252371b) will decrease coverage by 0.30%. The diff coverage is 65.15%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #23      +/-   ##
==========================================
- Coverage   49.12%   48.82%   -0.31%     
==========================================
  Files          81       82       +1     
  Lines        9650     9725      +75     
==========================================
+ Hits         4741     4748       +7     
- Misses       4909     4977      +68     
Impacted Files Coverage Δ
simag_core/src/agent/kb/entity.rs 67.29% <ø> (ø)
simag_core/src/agent/kb/test/persistence.rs 0.00% <0.00%> (ø)
simag_core/src/agent/lang/parser/args.rs 83.94% <0.00%> (ø)
simag_core/src/agent/lang/parser/mod.rs 80.18% <0.00%> (-1.48%) :arrow_down:
simag_core/src/agent/lang/parser/test/test.rs 98.50% <ø> (ø)
simag_core/src/agent/lang/skolem.rs 0.00% <0.00%> (ø)
simag_core/src/agent/mod.rs 0.00% <0.00%> (ø)
simag_core/src/storage/index.rs 0.00% <0.00%> (ø)
simag_core/src/storage/manager.rs 0.00% <0.00%> (ø)
simag_core/src/storage/mod.rs 0.00% <0.00%> (ø)
... and 14 more

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update ac9b46d...5d20cab. Read the comment docs.