-
Notifications
You must be signed in to change notification settings - Fork 78
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
interactive: app, add "clear passes" button (7/7) #1775
Conversation
…played in the output)
Co-authored-by: Sasha Lopoukhine <[email protected]>
…ld tests merged into one larger one due to shared global variable + asynch tests.
…unction description + editing comment line length in code to fit column size.
….e make a new slate). test added as well to test this.
This reverts commit cdbff9c.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
great job Dalia
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A wee post-merge review.
LGTM with a few comments.
I guess my recurring comment would be to tone down the very verbose docstrings a bit.
p.name for p in self.passes_selection_list.selected | ||
) | ||
new_label = f"xdsl-opt -p {new_passes}" | ||
self.query_one(Label).update(new_label) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree here, that the documentation is confusing; and I think I've commented this on a previous PR.
If it is to use Textual's update model, I'd suggest avoiding documenting it as this is how the framework works and saves you from having to update 2 places in the source (functionality and documentation) if things change.
Add "clear passes" query - removes the effect of passes from the input IR (i.e. input and output textarea are the same), deselects all passes from the selection list and removes the pass names from the query label. Displays the selected queries in the label. ![image](https://github.com/xdslproject/xdsl/assets/144673861/cf6fb8b1-fc28-4d9a-bc47-139a2fcaadb6) --------- Co-authored-by: Sasha Lopoukhine <[email protected]>
add "clear passes" query - removes the effect of passes from the input IR (i.e. input and output textarea are the same), deselects all passes from the selection list and removes the pass names from the query label.