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

interactive: app, add "clear passes" button (7/7) #1775

Merged
merged 74 commits into from
Nov 14, 2023
Merged

Conversation

dshaaban01
Copy link
Collaborator

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.

image

dshaaban01 and others added 29 commits November 9, 2023 15:15
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.
Base automatically changed from dalia/mvp2.4 to main November 14, 2023 14:44
Copy link
Member

@superlopuh superlopuh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

great job Dalia

@dshaaban01 dshaaban01 merged commit c58d31e into main Nov 14, 2023
9 checks passed
@dshaaban01 dshaaban01 deleted the dalia/mvp2.5 branch November 14, 2023 15:08
Copy link
Collaborator

@compor compor left a 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)
Copy link
Collaborator

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.

superlopuh added a commit that referenced this pull request Nov 16, 2023
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
interactive xdsl-gui things tool
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants