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

Better developer expereience for missing views #395

Merged

Conversation

jonah-iden
Copy link
Contributor

@jonah-iden jonah-iden commented Nov 2, 2023

Fixes #368
stopped missing view messages from overlapping;
messages now containing more relevant information;
added warning to console

How to test:
using the class diagram example,
comment out:

 configureModelElement(context, 'routing-point', SRoutingHandleImpl, SRoutingHandleView);
 configureModelElement(context, 'volatile-routing-point', SRoutingHandleImpl, SRoutingHandleView);
 configureModelElement(context, 'bezier-create-routing-point', SRoutingHandleImpl, SBezierCreateHandleView);
 configureModelElement(context, 'bezier-remove-routing-point', SRoutingHandleImpl, SBezierCreateHandleView);
 configureModelElement(context, 'bezier-routing-point', SRoutingHandleImpl, SBezierControlHandleView);

after starting selecting an edge you should see the missing view messages not overlapping.
In the console there should be warnings about missing views

messages now containing more relevant information;
added warning to console

Signed-off-by: Jonah Iden <[email protected]>
using logger, moved sprotty-missing css class

Signed-off-by: Jonah Iden <[email protected]>
Copy link
Contributor

@spoenemann spoenemann left a comment

Choose a reason for hiding this comment

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

Thanks!

@spoenemann spoenemann merged commit 5c4476b into eclipse-sprotty:master Nov 6, 2023
1 check passed
@spoenemann spoenemann added this to the v1.1.0 milestone Jan 3, 2024
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.

Bad dev experience with edge selection and routing
2 participants