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
Introduce form to edit Relationship data and attributes #54
Conversation
Introduce reference resolution and completion mechanism for elements - Ensure we send the global id as part of each identifiable element - Attach reference data to GLSP elements for property view - Replace specific 'requestDiagramNodeEntityModel' method - Replace specific 'findRootReferenceName' method Create Form for Relationship data - Unify form for property view and editor (also for Entity) - Use MUI components consistently and add theming for them - Remove custom stylesheets - Remove dependency to 'react-tabs' as it is no longer used Refactorings: - Rename 'ExternalId' to 'GlobalId' - Ensure IDs do not contain any invalid characters - Fix issue with attribute serialization for relationships
2302c37
to
1d83151
Compare
@harmen-xb The PR is ready for review, the Mac build keeps failing for some reason, I'll try to re-trigger it a bit later, maybe it is a temporary problem. |
Hi @martin-fleck-at , The mac build reran a couple of times but it keeps getting out of memory: https://github.com/CrossBreezeNL/crossmodel/actions/runs/8644531235/job/23747744720#step:5:253 I re-ran the workflow on the main branch to check whether it is a container issue, but it succeeds there. So there seems to be some changes which causes this. |
@harmen-xb Interesting! Thank you for following up. I'll see if there is anything I can do to find what would be causing this. |
It looks like the issue is a quite common one when running out of memory: https://medium.com/@nirbhaysingh281/fatal-error-ineffective-mark-compacts-near-heap-limit-allocation-failed-javascript-heap-out-of-5637924b466 |
ea5eda8
to
df50f60
Compare
df50f60
to
260b8bd
Compare
@harmen-xb Unfortunately my idea to upgrade to Node 20 caused some issues on the Windows build with |
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.
One remark on the code.
Couple of things:
|
Added example theia settings file to disable autosave in this workspace.
@harmen-xb I pushed a commit that updates the PR and improves UX when it comes to saving properties. I cannot re-produce the error you are seeing when adding attributes to the relationship. Could you please re-test with the latest version of the PR or provide some steps on a concrete example so I can fix that as well. |
- Remove @mui/lab - Introduce dirty state into the Header part for properties - Disable attribute move up/down when appropriate - Warn user before unsaved changes are lost - Further unify editor and property widget for save mechanism - Overwrite Theia property widget to delegate Save command (Ctrl+S)
102341d
to
0227760
Compare
It all works nicely now. I did notice one strange thing:
|
@harmen-xb Very good catch! It seems that MUI doesn't like undefined values but when rendering empty strings everything works as expected. |
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.
All looks ok now
Introduce reference resolution and completion mechanism for elements
Create Form for Relationship data
Refactorings: