Skip to content

Add a layer to a viewer with drag and drop #115

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

Merged
merged 3 commits into from
Jul 7, 2023

Conversation

brichet
Copy link
Member

@brichet brichet commented Jul 6, 2023

Peek 2023-07-06 22-09

The idea is:

  • to catch the drop event on the viewer widget (if so, the event is cancelled for the sessionWidget)
  • the viewer widget send a change signal to tabLayout, which execute the command in the kernel.

EDIT:
Some ui-tests failed for snapshot error not related to this PR, so I added --retries=3 when running the playwright tests.

@github-actions
Copy link

github-actions bot commented Jul 6, 2023

Binder 👈 Launch a Binder on branch brichet/gluepyter/layers

}

export interface IChange {
action: 'close' | 'lock' | 'edit';
action: 'close' | 'lock' | 'edit' | 'layer';
dataLayer?: string;
Copy link
Member Author

Choose a reason for hiding this comment

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

I'm not really satisfied by this but this was the easiest way to manage the change.
We could find something more generic since other futur changes may require arguments.

@trungleduc
Copy link
Member

Thanks @brichet

@trungleduc trungleduc merged commit b1a98f5 into QuantStack:main Jul 7, 2023
@brichet brichet deleted the layers branch July 7, 2023 11:41
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.

2 participants