-
Notifications
You must be signed in to change notification settings - Fork 22
XRD insitu block #1287
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
base: main
Are you sure you want to change the base?
XRD insitu block #1287
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1287 +/- ##
=======================================
Coverage 79.87% 79.87%
=======================================
Files 70 70
Lines 4701 4701
=======================================
Hits 3755 3755
Misses 946 946 🚀 New features to boost your workflow:
|
c562212
to
91f3404
Compare
datalab
|
Project |
datalab
|
Branch Review |
bes/xrd_insitu_block_pre_rebase
|
Run status |
|
Run duration | 07m 25s |
Commit |
|
Committer | Ben Smith |
View all properties for this run ↗︎ |
Test results | |
---|---|
|
0
|
|
0
|
|
0
|
|
0
|
|
336
|
View all changes introduced in this branch ↗︎ |
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.
Pull Request Overview
This PR adds support for XRD insitu data visualization by implementing a new XRDInsituBlock
component and registering it as a custom block type. The changes enable users to visualize in-situ X-ray diffraction data alongside temperature or electrochemical data.
- Add
XRDInsituBlock
component for XRD insitu data visualization - Register the new component in the custom block types registry
- Enhance UV-Vis insitu block with scan time input functionality
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 5 comments.
File | Description |
---|---|
webapp/src/resources.js |
Imports and registers the new XRDInsituBlock component in the custom block types |
webapp/src/components/datablocks/XRDInsituBlock.vue |
Implements the complete XRD insitu visualization component with folder selection and data granularity controls |
webapp/src/components/datablocks/UVVisInsituBlock.vue |
Adds scan time input field to the existing UV-Vis insitu block |
} | ||
}, | ||
updateBlock() { | ||
this.isLoading = true; |
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.
The property 'isLoading' is being set but is not defined in the component's data properties. This will cause the property to be created on the Vue instance without reactivity, which could lead to unexpected behavior.
Copilot uses AI. Check for mistakes.
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.
Re these suggestions. They are common across NMRInsituBlock, UVVis and XRD. I assume this.isLoading should be defined in data instead of this.isUpdating and set to false.
5e04cde
to
c7aff64
Compare
fea1280
to
2e86260
Compare
…ur of scan time box for when it triggers a recalculation of the data
Co-authored-by: Copilot <[email protected]>
2e86260
to
913fa95
Compare
Add XRD insitu block for PR datalab-org/datalab-app-plugin-insitu#52