Skip to content

Scarily good release with FR units

Compare
Choose a tag to compare
@willmcgugan willmcgugan released this 31 Oct 16:01
· 8273 commits to main since this release

A number of fixes, and internal enhancements.

We have a new API for running textual apps asynchronously, and a much better way of running integration tests. Testing is important and we will be documenting this in a future release.

Also in this release, we've made fr units more useful. These CSS units can be used to easily create flexible layouts. See the video below:

Screen.Recording.2022-10-31.at.15.29.57.mov

Here's the full changelog

[0.3.0] - 2022-10-31

Fixed

  • Fixed issue where scrollbars weren't being unmounted
  • Fixed fr units for horizontal and vertical layouts #1067
  • Fixed textual run breaking sys.argv #1064
  • Fixed footer not updating styles when toggling dark mode
  • Fixed how the app title in a Header is centred #1060
  • Fixed the swapping of button variants #1048
  • Fixed reserved characters in screenshots #993
  • Fixed issue with TextLog max_lines #1058

Changed

  • DOMQuery now raises InvalidQueryFormat in response to invalid query strings, rather than cryptic CSS error
  • Dropped quit_after, screenshot, and screenshot_title from App.run, which can all be done via auto_pilot
  • Widgets are now closed in reversed DOM order
  • Input widget justify hardcoded to left to prevent text-align interference
  • Changed textual run so that it patches argv in more situations
  • DOM classes and IDs are now always treated fully case-sensitive #1047

Added

  • Added Unmount event
  • Added App.run_async method
  • Added App.run_test context manager
  • Added auto_pilot to App.run and App.run_async
  • Added Widget._get_virtual_dom to get scrollbars
  • Added size parameter to run and run_async
  • Added always_update to reactive
  • Returned an awaitable from push_screen, switch_screen, and install_screen #1061