-
Notifications
You must be signed in to change notification settings - Fork 5
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
manchette with spacetimechart, hook integration #504
Conversation
ui-manchette-with-spacetimechart/src/hooks/useManchetteWithSpaceTimeChart.ts
Outdated
Show resolved
Hide resolved
ui-manchette-with-spacetimechart/src/hooks/useManchetteWithSpaceTimeChart.ts
Outdated
Show resolved
Hide resolved
bab4831
to
3d2dcd3
Compare
3d2dcd3
to
3cc52dd
Compare
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.
ui-manchette-with-spacetimechart/src/hooks/useManchetteWithSpaceTimeChart.ts
Outdated
Show resolved
Hide resolved
ui-manchette-with-spacetimechart/src/hooks/useManchetteWithSpaceTimeChart.ts
Outdated
Show resolved
Hide resolved
ui-manchette-with-spacetimechart/src/hooks/useManchetteWithSpaceTimeChart.ts
Outdated
Show resolved
Hide resolved
ui-manchette-with-spacetimechart/src/hooks/useManchetteWithSpaceTimeChart.ts
Outdated
Show resolved
Hide resolved
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.
I added some comments.
- You have some warnings in the console
- Don't forget to clean the ui-manchette folder
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.
Thank you for this PR! I have a few suggestions, but the component works well, and I didn't find any bugs in the new component. However, the stories for OperationalPoint
, OperationalPointList
, and Manchette
are empty. Should we consider deleting them?
Also, there are some warnings from the linter.
38aebec
to
ae6d2c7
Compare
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.
In ui-manchette:
- you can also remove the files ./consts.ts
- you need to update the sampleData too (clean
SAMPLE_PATH_PROPERTIES_DATA
and removeSAMPLE_PATHS_DATA
) - in the story, remove the const
PathData
and directly give theSAMPLE_PATH_PROPERTIES_DATA.operational_points
line 34 in the args - maybe remove the css of the manchette
- can you check that the utils are still necessary ?
ui-manchette-with-spacetimechart/src/hooks/useManchetteWithSpaceTimeChart.ts
Outdated
Show resolved
Hide resolved
ui-manchette-with-spacetimechart/src/hooks/useManchetteWithSpaceTimeChart.ts
Outdated
Show resolved
Hide resolved
$
not entirely
I think the stories need a rework if we would like to keep it
Can't remove the css because it is useful here, manchette-with-spacetimechart just provide a hook and an example of integration but the Manchette the OperationalPointList and operationalPoint still need their css
I clean the file but there is still one util used |
ui-manchette-with-spacetimechart/src/hooks/useManchetteWithSpaceTimeChart.ts
Outdated
Show resolved
Hide resolved
ui-manchette-with-spacetimechart/src/hooks/useManchetteWithSpaceTimeChart.ts
Outdated
Show resolved
Hide resolved
ui-manchette-with-spacetimechart/src/hooks/useManchetteWithSpaceTimeChart.ts
Outdated
Show resolved
Hide resolved
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.
Good job ! LGTM
LGTM 👍 |
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.
d4c618b
to
d17207a
Compare
bf42842
to
74914bb
Compare
… spacetimechart, add some unit tests - remove spacetimechart dependency from manchette - Move styles from manchette to manchette-with-spacetimechart, and change the html layout - implement a custom hook usemanchettewithspacetimechart to hydrate manchette and spacetimechart props Signed-off-by: Mathieu Richard <[email protected]>
74914bb
to
e1d3bd8
Compare
Signed-off-by: Mathieu Richard <[email protected]>
e1d3bd8
to
9b38541
Compare
No description provided.