Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Constraint Explorer example #893

Merged
merged 17 commits into from
Jan 31, 2024
Merged

feat: Constraint Explorer example #893

merged 17 commits into from
Jan 31, 2024

Conversation

kdheepak
Copy link
Collaborator

@kdheepak kdheepak commented Jan 31, 2024

Here's a constraint explorer demo put together with @joshka

constraint-explorer-demo.mov

It allows users to interactive explore how the constraints behave with respect to each other and compare that across flex modes. It allows users to swap constraints out for other constraints, increment or decrement the values, add and remove constraints, and add spacing

It is also a good example for how to structure a simple TUI with several Ratatui code patterns that are useful for refactoring.

Fixes: #792

Copy link

codecov bot commented Jan 31, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (5254795) 91.9% compared to head (9ffd795) 91.9%.
Report is 1 commits behind head on main.

Additional details and impacted files
@@          Coverage Diff          @@
##            main    #893   +/-   ##
=====================================
  Coverage   91.9%   91.9%           
=====================================
  Files         60      60           
  Lines      15383   15386    +3     
=====================================
+ Hits       14148   14151    +3     
  Misses      1235    1235           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@kdheepak kdheepak merged commit 9ec43ef into main Jan 31, 2024
34 checks passed
@kdheepak kdheepak deleted the kd/constraint-explorer branch January 31, 2024 05:12
@Valentin271
Copy link
Member

Didn't had time to review this but I just wanted to say this looks awesome! Well done guys!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create an interactive example that helps show how layout constraints interact
3 participants