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

Feature/SOF-7287 feature: add JL drawer to MD #202

Merged
merged 40 commits into from
Apr 3, 2024
Merged

Conversation

VsevolodX
Copy link
Contributor

No description provided.

Copy link

netlify bot commented Mar 26, 2024

Deploy Preview for mat3ra-materials-designer ready!

Name Link
🔨 Latest commit b9733ca
🔍 Latest deploy log https://app.netlify.com/sites/mat3ra-materials-designer/deploys/660cdd216f2eb80008985c06
😎 Deploy Preview https://deploy-preview-202--mat3ra-materials-designer.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.


componentDidMount() {
this.messageHandler.addHandlers("set-data", [this.handleSetMaterials]);
this.messageHandler.addHandlers("get-data", [this.returnSelectedMaterials]);
Copy link
Member

Choose a reason for hiding this comment

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

Seems like code duplicate Let's reuse this through a parent

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added base and inheritance

});
}
}
exports.SAlertWidget = SAlertWidget;
Copy link
Member

Choose a reason for hiding this comment

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

Wtf are all these extra files???

Copy link
Contributor Author

Choose a reason for hiding this comment

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

They came from commiting dist

<div style={{ display: show ? "block" : "none" }}>
<ResizableDrawer open={show} onClose={onHide} containerRef={containerRef}>
<JupyterLiteSession
originURL="https://jupyterlite.mat3ra.com"
Copy link
Member

Choose a reason for hiding this comment

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

Remove originURL

defaultNotebook should be set in Base

messageHandler should be created inside Base

@@ -162,7 +83,7 @@ class JupyterLiteTransformation extends React.Component<
}}
>
<JupyterLiteSession
defaultNotebookPath={DEFAULT_NOTEBOOK_PATH}
defaultNotebookPath={this.DEFAULT_NOTEBOOK_PATH}
Copy link
Member

Choose a reason for hiding this comment

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

Should be set in Base

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Finally moved!

@VsevolodX VsevolodX merged commit 25c3229 into dev Apr 3, 2024
6 checks passed
@VsevolodX VsevolodX deleted the feature/SOF-7287 branch April 3, 2024 05:10
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.

None yet

2 participants