Skip to content
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: peek overlay #20053

Merged
merged 70 commits into from
Feb 17, 2023
Merged

feat: peek overlay #20053

merged 70 commits into from
Feb 17, 2023

Conversation

eco-monk
Copy link
Contributor

@eco-monk eco-monk commented Jan 25, 2023

Description

Hover over appsmith properties in code to peek data.
image

This right now covers:

  • Queries/JsObjects/Apis/Widgets/appsmith and their properties.
  • Note: For query or Api, this'll work only upto Api.data. (Not Api.data.users[0].id)
  • Note: For appsmith.store, this'll work only upto appsmith.store. (Not appsmith.store.myData[0].id)
  • This is because of the way codemirror renders code and we'll need more time to see how this is best handled.

Misc:

  • added react-append-to-body to work with variable height for peek overlay
    • we needed a container that doesn't apply position: absolute to itself
    • Because, when a container's height is zero with position: absolute (like in bp3-portal), child elements cannot be positioned using just the bottom property
    • with react-append-to-body, the container won't have position: absolute, instead it is applied to the child element <div> directly, hence we can position using bottom property.

Fixes #17507

Media
https://www.loom.com/share/0f17918fcd604805b023c215d57fce43

Type of change

  • New feature (non-breaking change which adds functionality)

How Has This Been Tested?

  • Manual

Test Plan

https://github.com/appsmithorg/TestSmith/issues/2173
https://github.com/appsmithorg/TestSmith/issues/2178

Issues raised during DP testing

#20053 (comment)
#20053 (comment)

Checklist:

Dev activity

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • PR is being merged under a feature flag

QA activity:

  • Test plan has been approved by relevant developers
  • Test plan has been peer reviewed by QA
  • Cypress test cases have been added and approved by either SDET or manual QA
  • Organized project review call with relevant stakeholders after Round 1/2 of QA
  • Added Test Plan Approved label after reveiwing all Cypress test

@vercel
Copy link

vercel bot commented Jan 25, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated
appsmith ✅ Ready (Inspect) Visit Preview Feb 17, 2023 at 11:15AM (UTC)

@what-the-diff
Copy link

what-the-diff bot commented Jan 25, 2023

  • Added a new feature to show the peek data for an action.
  • Fixed some bugs in existing code and added tests for them as well.

@eco-monk eco-monk changed the title feat: peek overlay new feat: peek overlay Jan 25, 2023
@github-actions github-actions bot added the Enhancement New feature or request label Jan 25, 2023
@eco-monk
Copy link
Contributor Author

/ok-to-test sha=c01aba1

@github-actions
Copy link

Tests running at: https://github.com/appsmithorg/appsmith/actions/runs/4022449104.
Workflow: Appsmith External Integration Test Workflow.
Commit: c01aba1.
PR: 20053.
Perf tests will be available at https://app.appsmith.com/app/performance-infra-dashboard/pr-details-638dd7cd2913ba43778b915e?pr=20053&runId=4022449104_1

@github-actions
Copy link

The following are new failures, please fix them before merging the PR

@github-actions
Copy link

The following are new failures, please fix them before merging the PR cypress/integration/Regression_TestSuite/ClientSideTests/Git/GitImport/GitImport_spec.js
cypress/integration/Regression_TestSuite/ClientSideTests/OtherUIFeatures/Logs_spec.ts
cypress/integration/Regression_TestSuite/ClientSideTests/VisualTests/JSEditorComment_spec.js
cypress/integration/Regression_TestSuite/ClientSideTests/VisualTests/WidgetsLayout_spec.js
cypress/integration/Regression_TestSuite/ClientSideTests/Widgets/ListV2/Listv2_BasicServerSideData_spec.js
cypress/integration/Regression_TestSuite/ServerSideTests/GenerateCRUD/S3_Spec.js
cypress/integration/Regression_TestSuite/ServerSideTests/QueryPane/S3_1_spec.js
cypress/integration/Regression_TestSuite/ServerSideTests/QueryPane/S3_2_spec.js
cypress/integration/Regression_TestSuite/UpgradeAppsmith/UpgradeAppsimth_spec.js

@eco-monk
Copy link
Contributor Author

/ok-to-test sha=250e737

@github-actions
Copy link

Tests running at: https://github.com/appsmithorg/appsmith/actions/runs/4200844903.
Workflow: Appsmith External Integration Test Workflow.
Commit: 250e737.
PR: 20053.
Perf tests will be available at https://app.appsmith.com/app/performance-infra-dashboard/pr-details-638dd7cd2913ba43778b915e?pr=20053&runId=4200844903_1

@eco-monk
Copy link
Contributor Author

/ok-to-test sha=de4c987

@github-actions
Copy link

Tests running at: https://github.com/appsmithorg/appsmith/actions/runs/4201145819.
Workflow: Appsmith External Integration Test Workflow.
Commit: de4c987.
PR: 20053.
Perf tests will be available at https://app.appsmith.com/app/performance-infra-dashboard/pr-details-638dd7cd2913ba43778b915e?pr=20053&runId=4201145819_1

@github-actions
Copy link

The following are new failures, please fix them before merging the PR

@github-actions
Copy link

The following are new failures, please fix them before merging the PR cypress/integration/Regression_TestSuite/ClientSideTests/OtherUIFeatures/Logs_spec.ts
cypress/integration/Regression_TestSuite/ClientSideTests/Widgets/ListV2/Listv2_BasicChildWidgetInteraction_spec.js

@github-actions
Copy link

The following are new failures, please fix them before merging the PR

@github-actions
Copy link

The following are new failures, please fix them before merging the PR cypress/integration/Regression_TestSuite/ClientSideTests/Binding/Bind_TableV2TextPagination_spec.js
cypress/integration/Regression_TestSuite/ClientSideTests/VisualTests/AppPageLayout_spec.js
cypress/integration/Regression_TestSuite/ClientSideTests/VisualTests/WidgetsLayout_spec.js
cypress/integration/Regression_TestSuite/ClientSideTests/Widgets/ListV2/Listv2_BasicChildWidgetInteraction_spec.js
cypress/integration/Regression_TestSuite/ServerSideTests/QueryPane/Mongo_Spec.js
cypress/integration/Regression_TestSuite/ServerSideTests/QueryPane/S3_1_spec.js

@eco-monk
Copy link
Contributor Author

/ok-to-test sha=f5cdf44

@github-actions
Copy link

Tests running at: https://github.com/appsmithorg/appsmith/actions/runs/4202995103.
Workflow: Appsmith External Integration Test Workflow.
Commit: f5cdf44.
PR: 20053.
Perf tests will be available at https://app.appsmith.com/app/performance-infra-dashboard/pr-details-638dd7cd2913ba43778b915e?pr=20053&runId=4202995103_1

@github-actions
Copy link

The following are new failures, please fix them before merging the PR

@github-actions
Copy link

The following are new failures, please fix them before merging the PR cypress/integration/Regression_TestSuite/ClientSideTests/ThemingTests/Basic_spec.js
cypress/integration/Regression_TestSuite/ClientSideTests/VisualTests/JSEditorIndent_spec.js
cypress/integration/Regression_TestSuite/ClientSideTests/Widgets/Modal/Modal_focus_spec.js

@eco-monk eco-monk enabled auto-merge (squash) February 17, 2023 13:03
@eco-monk eco-monk merged commit 73ba3a3 into release Feb 17, 2023
@eco-monk eco-monk deleted the feat/peek-overlay-new branch February 17, 2023 16:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement New feature or request IDE Navigation Issues/feature requests related to IDE navigation, and context switching IDE Pod Issues that new developers face while exploring the IDE Test Plan Approved Manual/Cypress tests covers changes made on the PR. Else, add skip-testPlan label if not applicable
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature]: Peek overlay of entity and bindings
5 participants