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
fix: Upgrade map widget library to support react 17 #19315
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
/ok-to-test sha=218c9f7 |
Tests running at: https://github.com/appsmithorg/appsmith/actions/runs/3807397999. |
The following are new failures, please fix them before merging the PR cypress/integration/Smoke_TestSuite/ClientSideTests/Onboarding/GuidedTour_spec.js |
The following are new failures, please fix them before merging the PR cypress/integration/Smoke_TestSuite/ServerSideTests/JsFunctionExecution/JSFunctionExecution_spec.ts |
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.
Is this issue occuring: Component re-renders on change in zoom level
?
id="map" | ||
ref={mapRef} | ||
/> | ||
<Clusterer map={map} markers={markers} {...rest} /> |
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.
Do we require the clustering feature in this PR?
<Clusterer map={map} markers={markers} {...rest} /> | ||
{React.Children.map(children, (child) => { | ||
if (React.isValidElement(child)) { | ||
return React.cloneElement(child as React.ReactElement<any>, { |
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.
Are we using cloneElement
to pass down map
object to all children?
useEffect(() => { | ||
if (!searchBoxRef.current) return; | ||
|
||
searchBoxObjRef.current = new window.google.maps.places.SearchBox( |
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.
We should check that window
has google
and map
object
@@ -304,7 +304,7 @@ class MapWidget extends BaseWidget<MapWidgetProps, WidgetState> { | |||
}; | |||
} | |||
|
|||
updateCenter = (lat: number, long: number, title?: string) => { | |||
updateCenter = (lat?: number, long?: number, title?: string) => { | |||
this.props.updateWidgetMetaProperty("center", { lat, long, title }); |
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.
Did we save lng
or long
in the DSL?
onSearchBoxMounted = (ref: SearchBox) => { | ||
this.searchBox = ref; | ||
onSearchBoxMounted = (ref: any) => { | ||
if (window) { |
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.
Also check if map
object exists?
case Status.FAILURE: | ||
return <span>Error in the component</span>; | ||
case Status.SUCCESS: | ||
return <span>Component loaded....</span>; |
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.
When there is a FAILURE or LOADING state are we should these span elements or appsmith defaults?
@jsartisan A loading state is seen in place of the text box under Initial location. And the corresponding location isn’t showing up on the map, on searching for a particular city. |
Tests running at: https://github.com/appsmithorg/appsmith/actions/runs/3854745148. |
We still can see this issue in the modal widget, Drag to select multiple widgets is not working. @jsartisan please check this with @rahulramesha, it is related to the |
The following are new failures, please fix them before merging the PR cypress/integration/Smoke_TestSuite/ClientSideTests/BugTests/Autocomplete_JS_spec.ts |
QA - The drag to select multiple widgets inside the Modal widget is fixed by Ashok, and is working as expected. |
…have accurate active element
/ok-to-test sha=f14aa50 |
Tests running at: https://github.com/appsmithorg/appsmith/actions/runs/3911918276. |
The following are new failures, please fix them before merging the PR cypress/integration/Smoke_TestSuite/ClientSideTests/Git/GitSync/RepoLimitExceededErrorModal_spec.js |
This PR:
Description
Fixes #16946
Type of change
How Has This Been Tested?
Test Plan
https://github.com/appsmithorg/TestSmith/issues/2149
Issues raised during DP testing
Checklist:
Dev activity
QA activity: