-
Notifications
You must be signed in to change notification settings - Fork 3
add resizable panels #137
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
add resizable panels #137
Conversation
closes(136)
8602413 to
cf7d8eb
Compare
jolevesq
left a comment
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.
@jolevesq reviewed 8 of 8 files at r1, all commit messages.
Reviewable status: all files reviewed, 17 unresolved discussions (waiting on @Pewillia)
src/components/DrawerTabs.tsx line 59 at r1 (raw file):
</TabPanel> </TabContext>
Remove trailing white spaces
src/components/GeoViewMap.tsx line 30 at r1 (raw file):
} let mapWidth2=0;
space before and after =
src/components/GeoViewMap.tsx line 47 at r1 (raw file):
setAnchorEl(null); };
Remove trailing white spaces
src/components/GeoViewMap.tsx line 55 at r1 (raw file):
const { handleApplyStateToConfigFile } = cgpvContext;
Put on same line as the one above
src/components/GeoViewMap.tsx line 63 at r1 (raw file):
const [isClosing, ] = React.useState(false); const {setMapWidth} = cgpvContext;
Can you regroup const by group and add a comment to day they are use for what
src/components/GeoViewMap.tsx line 121 at r1 (raw file):
return (
Remove trailing white spaces
src/components/GeoViewMap.tsx line 129 at r1 (raw file):
defaultSize={DEFAULT_LEFT_PANEL_WIDTH} // panel size ref={leftPanelRef} onResize={ (number)=> { console.log("left panel resized to:", number) ;
No console log in JSX. Instead of an code inside JSX create a function and call it from JSX
src/components/GeoViewMap.tsx line 135 at r1 (raw file):
forceUpdate(); } }
Remove trailing white spaces
src/components/GeoViewMap.tsx line 173 at r1 (raw file):
justifyContent: 'left', alignItems: 'left',}}>
Remove trailing white spaces
src/components/GeoViewMap.tsx line 184 at r1 (raw file):
color: "rgba(0, 0, 0,0.0)" }, "&.Mui-disabled": {
Why do you have empty item?
src/components/GeoViewMap.tsx line 193 at r1 (raw file):
'& .MuiFormControlLabel-root': { color: itemColor },
Remove trailing white spaces
src/components/GeoViewMap.tsx line 217 at r1 (raw file):
<img src={`${GEOVIEW_CORE_URL}/img/Logo.png`} alt="GeoView" style={{ height: 0, marginRight: 16 }} />{/* Adjust height and margin as needed */} <Typography variant="h6" component="div" sx={{ flexGrow: 1,color: 'white'}}>
Space before }}
src/components/MapBuilder.tsx line 29 at r1 (raw file):
import { ConfigSaveUploadButtons } from './ConfigSaveUploadButtons'; import { useSnackbar } from '@/providers/snackbarProvider'; import React from 'react';
I see you import react but do not see where it is use. Best is to import only what is needed from REact
src/components/MapBuilder.tsx line 470 at r1 (raw file):
} }/>
Remove trailing white spaces
src/components/MapBuilder.tsx line 490 at r1 (raw file):
} />
Remove trailing white spaces
src/components/MapBuilder.tsx line 505 at r1 (raw file):
style={{ maxWidth: '30px', maxHeight: '40px', minWidth: '40px', minHeight: '40px' }} onClick={(event) => {
Remove trailing white spaces
src/components/MapBuilder.tsx line 506 at r1 (raw file):
onClick={(event) => { if ( mapWidth1.current) { // update width text field,mapWidth is a hook and is a update delay
Create a function outside the JSX element
jolevesq
left a comment
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.
@jolevesq reviewed 2 of 3 files at r2, all commit messages.
Reviewable status: 7 of 8 files reviewed, 6 unresolved discussions (waiting on @Pewillia)
abfd7fa to
b3a1859
Compare
b3a1859 to
b086813
Compare
Pewillia
left a comment
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.
Reviewable status: 5 of 8 files reviewed, 6 unresolved discussions (waiting on @jolevesq)
src/components/DrawerTabs.tsx line 59 at r1 (raw file):
Previously, jolevesq (Johann Levesque) wrote…
Remove trailing white spaces
Done.
src/components/GeoViewMap.tsx line 30 at r1 (raw file):
Previously, jolevesq (Johann Levesque) wrote…
space before and after =
Done.
src/components/GeoViewMap.tsx line 47 at r1 (raw file):
Previously, jolevesq (Johann Levesque) wrote…
Remove trailing white spaces
Done.
src/components/GeoViewMap.tsx line 55 at r1 (raw file):
Previously, jolevesq (Johann Levesque) wrote…
Put on same line as the one above
Done.
src/components/GeoViewMap.tsx line 63 at r1 (raw file):
Previously, jolevesq (Johann Levesque) wrote…
Can you regroup const by group and add a comment to day they are use for what
Done.
src/components/GeoViewMap.tsx line 121 at r1 (raw file):
Previously, jolevesq (Johann Levesque) wrote…
Remove trailing white spaces
Done.
src/components/GeoViewMap.tsx line 129 at r1 (raw file):
Previously, jolevesq (Johann Levesque) wrote…
No console log in JSX. Instead of an code inside JSX create a function and call it from JSX
Done.
src/components/GeoViewMap.tsx line 135 at r1 (raw file):
Previously, jolevesq (Johann Levesque) wrote…
Remove trailing white spaces
Done.
src/components/GeoViewMap.tsx line 173 at r1 (raw file):
Previously, jolevesq (Johann Levesque) wrote…
Remove trailing white spaces
Done.
src/components/GeoViewMap.tsx line 193 at r1 (raw file):
Previously, jolevesq (Johann Levesque) wrote…
Remove trailing white spaces
Done.
src/components/GeoViewMap.tsx line 217 at r1 (raw file):
Previously, jolevesq (Johann Levesque) wrote…
Space before }}
Done.
src/components/MapBuilder.tsx line 29 at r1 (raw file):
Previously, jolevesq (Johann Levesque) wrote…
I see you import react but do not see where it is use. Best is to import only what is needed from REact
Done.
src/components/MapBuilder.tsx line 470 at r1 (raw file):
Previously, jolevesq (Johann Levesque) wrote…
Remove trailing white spaces
Done.
src/components/MapBuilder.tsx line 490 at r1 (raw file):
Previously, jolevesq (Johann Levesque) wrote…
Remove trailing white spaces
Done.
src/components/MapBuilder.tsx line 505 at r1 (raw file):
Previously, jolevesq (Johann Levesque) wrote…
Remove trailing white spaces
Done.
src/components/MapBuilder.tsx line 506 at r1 (raw file):
Previously, jolevesq (Johann Levesque) wrote…
Create a function outside the JSX element
Done.
jolevesq
left a comment
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.
@jolevesq reviewed 3 of 3 files at r3, all commit messages.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on @Pewillia)
199a543
into
Canadian-Geospatial-Platform:develop
…ig-map-windows add resizable panels
…ig-map-windows add resizable panels
…ig-map-windows add resizable panels
closes(136)
Description
Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.
Fixes # (issue)
Type of change
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce.
https://pewillia.github.io/geoview-demo/?config=00-basic-footer-appbar-combo.json_
Checklist:
I have made corresponding changes to the documentationI have added tests that prove my fix is effective or that my feature worksNew and existing unit tests pass locally with my changesThis change is