-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
feat: Geolocation APIs on appsmith #9295
Conversation
Unable to find test scripts. Please add necessary tests to the PR. |
1 similar comment
Unable to find test scripts. Please add necessary tests to the PR. |
Unable to find test scripts. Please add necessary tests to the PR. |
/ok-to-test sha=d99d133 |
Tests running at: https://github.com/appsmithorg/appsmith/actions/runs/1493827808. |
/ok-to-test sha=2fad65b |
Tests running at: https://github.com/appsmithorg/appsmith/actions/runs/1519808407. |
app/client/src/components/editorComponents/ActionCreator/index.tsx
Outdated
Show resolved
Hide resolved
….tsx Co-authored-by: Anand Srinivasan <[email protected]>
Tests running at: https://github.com/appsmithorg/appsmith/actions/runs/1519808407. |
/ok-to-test sha=d36c9ce |
Tests running at: https://github.com/appsmithorg/appsmith/actions/runs/1548081116. |
## Description **Revert Context -** Reverts #14890 (We had to revert the PR as we got some suggestions on improving the feature - now reverting the revert so we can have this feature out with improvements) **PR Context -** This pull request exposes window.postMessage() as a global function in the Appsmith platform. Post message safely enables cross-origin communication between window objects. Example use-case - Appsmith page embedded within an iframe which communicates with the container website Diagram for all the different levels of communication - ![Untitled-2022-09-12-1205](https://user-images.githubusercontent.com/10229595/189592030-98bc29ac-b94e-4c75-8567-965757cc0d18.png) **More on post message here** - https://developer.mozilla.org/en-US/docs/Web/API/Window/postMessage **References used for this PR:** 1. Geolocation APIs - #9295 2. setInterval and clearInterval support - #8158 **Fixes** #7241 ## Type of change - New feature (non-breaking change which adds functionality) ## How Has This Been Tested? Test plan - **Manual**: Created an app with different buttons holding different types of data and embedded it in a code sandbox within an iframe. Also removed the target origin which throws an error (App link - https://dev.appsmith.com/app/post-msg-app/page1-624c1af4d8e632741017682e, Codesandbox link - https://codesandbox.io/s/compassionate-tdd-6dnzzd?file=/src/index.js) - Added Jest tests - https://github.com/appsmithorg/TestSmith/issues/1892 - https://github.com/appsmithorg/TestSmith/issues/2068 - https://github.com/appsmithorg/TestSmith/issues/2069 - [x] My code follows the style guidelines of this project - [x] I have performed a self-review of my own code - [x] I have commented my code, particularly in hard-to-understand areas - [ ] I have made corresponding changes to the documentation - [x] My changes generate no new warnings - [x] I have added tests that prove my fix is effective or that my feature works - [x] New and existing unit tests pass locally with my changes Co-authored-by: Aishwarya UR <[email protected]>
Description
Expose Geolocation apis to appsmith app developers
Fixes #9207
Type of change
How Has This Been Tested?
Checklist:
Test coverage results 🧪
🔴 Total coverage has decreased