Skip to content

v0.22.1-alpha.2

Pre-release
Pre-release
Compare
Choose a tag to compare
@github-actions github-actions released this 19 Aug 13:21
· 745 commits to main since this release
b6b2da5

v0.22.1-alpha.2 - 2023-08-19

Features

  • (list) Add option to always allocate the "selection" column width (#394)
    (4d70169)

    * feat(list): add option to always allocate the "selection" column width
    
    Before this option was available, selecting a item in a list when nothing was selected
    previously made the row layout change (the same applies to unselecting) by adding the width
    of the "highlight symbol" in the front of the list, this option allows to configure this
    behavior.
    
    * style: change "highlight_spacing" doc comment to use inline code-block for reference
    
  • (table) Add support for line alignment in the table widget (#392)
    (7748720)

    * feat(table): enforce line alignment in table render
    
    * test(table): add table alignment render test
    
  • (uncategorized) Simplify split function ✨ (#411)
    (b090101)

Bug Fixes

  • (layout) Don't leave gaps between chunks (#408)
    (56455e0)

    Previously the layout used the floor of the calculated start and width
    as the value to use for the split Rects. This resulted in gaps between
    the split rects.
    
    This change modifies the layout to round to the nearest column instead
    of taking the floor of the start and width. This results in the start
    and end of each rect being rounded the same way and being strictly
    adjacent without gaps.
    
    Because there is a required constraint that ensures that the last end is
    equal to the area end, there is no longer the need to fixup the last
    item width when the fill (as e.g. width = x.99 now rounds to x+1 not x).
    
    The colors example has been updated to use Ratio(1, 8) instead of
    Percentage(13), as this now renders without gaps for all possible sizes,
    whereas previously it would have left odd gaps between columns.
    
  • (layout) Ensure left <= right (#410)
    (f4ed3b7)

    The recent refactor missed the positive width constraint
    
  • (release) Fix the last tag retrieval for alpha releases (#416)
    (b6b2da5)

Refactor

  • (layout) Simplify and doc split() (#405)
    (de25de0)

    * test(layout): add tests for split()
    
    * refactor(layout): simplify and doc split()
    
    This is mainly a reduction in density of the code with a goal of
    improving mainatainability so that the algorithm is clear.
    
  • (layout) Simplify split() function (#396)
    (5195099)

    Removes some unnecessary code and makes the function more readable.
    Instead of creating a temporary result and mutating it, we just create
    the result directly from the list of changes.
    

Documentation

  • (examples) Show layout constraints (#393)
    (10dbd6f)

    Shows the way that layout constraints interact visually
    
    ![example](https://vhs.charm.sh/vhs-1ZNoNLNlLtkJXpgg9nCV5e.gif)
    
  • (layout) Add doc comments (#403)
    (418ed20)

Testing

  • (table) Add test for consistent table-column-width (#404)
    (4cd843e)

Miscellaneous Tasks

  • (ci) Update the name of the CI workflow (#417)
    (89ef0e2)

  • (codecov) Fix yaml syntax (#407)
    (ea48af1)

    a yaml file cannot contain tabs outside of strings
    
  • (uncategorized) Create rust-toolchain.toml (#415)
    (d2429bc)

  • (uncategorized) Use vhs to create demo.gif (#390)
    (8c55158)

    The bug that prevented braille rendering is fixed, so switch to VHS for
    rendering the demo gif
    
    ![Demo of Ratatui](https://vhs.charm.sh/vhs-tF0QbuPbtHgUeG0sTVgFr.gif)