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: Space redistribution UX upgrade and implicit space distribution #30242

Merged
merged 26 commits into from
Jan 24, 2024

Conversation

marks0351
Copy link
Contributor

@marks0351 marks0351 commented Jan 11, 2024

Pull Request Template

Use this template to quickly create a well written pull request. Delete all quotes before creating the pull request.

Description

In this PR, we are implementing two features

  • When space distribution is happening via the implicit/explicit method, distribution handle is attracted to the nearest node once mouse pointer is near to it.
Screen.Recording.2024-01-22.at.1.03.01.PM.mov
  • Implicit space distribution, space distribution can also be done via section/zone property pane.
Screen.Recording.2024-01-18.at.8.23.31.PM.mov

PR fixes following issue(s)

Fixes # (issue number)

if no issue exists, please create an issue and ask the maintainers about this first

Media

A video or a GIF is preferred. when using Loom, don’t embed because it looks like it’s a GIF. instead, just link to the video

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Chore (housekeeping or task changes that don't impact user perception)
  • This change requires a documentation update

Testing

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Also list any relevant details for your test configuration.
Delete anything that is not relevant

  • Manual
  • JUnit
  • Jest
  • Cypress

Test Plan

Add Testsmith test cases links that relate to this PR

Issues raised during DP testing

Link issues raised during DP testing for better visiblity and tracking (copy link from comments dropped on this PR)

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:

  • Speedbreak features have been covered
  • Test plan covers all impacted features and areas of interest
  • Test plan has been peer reviewed by project stakeholders and other QA members
  • Manually tested functionality on DP
  • We had an implementation alignment call with stakeholders post QA Round 2
  • Cypress test cases have been added and approved by SDET/manual QA
  • Added Test Plan Approved label after Cypress tests were reviewed
  • Added Test Plan Approved label after JUnit tests were reviewed

Summary by CodeRabbit

  • New Features

    • Introduced a new Section Splitter Control for enhanced space distribution within property pane sections.
    • Added a Zone Stepper Control to manage zone counts through a user-friendly interface.
  • Enhancements

    • Improved feature flag logic for more consistent user experience.
    • Refined space distribution with new constants and utility functions for Anvil layout system.
    • Streamlined Anvil editor widget structure for better performance and simplicity.
  • User Interface

    • Implemented new property pane sections for SectionWidget and ZoneWidget to improve user interaction and configuration options.
  • Bug Fixes

    • Fixed feature flag retrieval behavior to ensure correct feature access.
  • Refactor

    • Optimized selectors and hooks for better maintainability and readability.
    • Updated import paths and renamed modules for clearer codebase navigation.

@marks0351
Copy link
Contributor Author

/build-deploy-preview skip-tests=true

Copy link

Deploying Your Preview: https://github.com/appsmithorg/appsmith/actions/runs/7488128175.
Workflow: On demand build Docker image and deploy preview.
skip-tests: true.
env: ``.
PR: 30242.
recreate: .

Copy link

Deploy-Preview-URL: https://ce-30242.dp.appsmith.com

@marks0351
Copy link
Contributor Author

/build-deploy-preview skip-tests=true

1 similar comment
@marks0351
Copy link
Contributor Author

/build-deploy-preview skip-tests=true

Copy link

Deploying Your Preview: https://github.com/appsmithorg/appsmith/actions/runs/7553740012.
Workflow: On demand build Docker image and deploy preview.
skip-tests: true.
env: ``.
PR: 30242.
recreate: .

Copy link

Deploy-Preview-URL: https://ce-30242.dp.appsmith.com

@marks0351
Copy link
Contributor Author

/build-deploy-preview skip-tests=true

Copy link

Deploying Your Preview: https://github.com/appsmithorg/appsmith/actions/runs/7554605624.
Workflow: On demand build Docker image and deploy preview.
skip-tests: true.
env: ``.
PR: 30242.
recreate: .

Copy link

Deploy-Preview-URL: https://ce-30242.dp.appsmith.com

@marks0351
Copy link
Contributor Author

/build-deploy-preview skip-tests=true

Copy link

Deploying Your Preview: https://github.com/appsmithorg/appsmith/actions/runs/7571379507.
Workflow: On demand build Docker image and deploy preview.
skip-tests: true.
env: ``.
PR: 30242.
recreate: .

Copy link

Deploy-Preview-URL: https://ce-30242.dp.appsmith.com

@marks0351
Copy link
Contributor Author

/build-deploy-preview skip-tests=true

Copy link

Deploying Your Preview: https://github.com/appsmithorg/appsmith/actions/runs/7573671098.
Workflow: On demand build Docker image and deploy preview.
skip-tests: true.
env: ``.
PR: 30242.
recreate: .

Copy link

Deploy-Preview-URL: https://ce-30242.dp.appsmith.com

@albinAppsmith
Copy link
Collaborator

@marks0351 ADS part looks good.

border-radius: 3px;
background-color: var(--ads-v2-color-bg);
flex-shrink: 1;
height: 34px;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@marks0351 Could this be a relative size? (100% or something)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

have moved height to section instead of zone. 👍🏽

Copy link
Contributor

@prsidhu prsidhu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

Please remove the hard coding for Anvil.

@marks0351
Copy link
Contributor Author

/ok-to-test tags="tag.PropertyPane"

Copy link

Tests running at: https://github.com/appsmithorg/appsmith/actions/runs/7621432048.
Workflow: Appsmith External Integration Test Workflow.
Tags: tag.PropertyPane.

Copy link

Workflow run: https://github.com/appsmithorg/appsmith/actions/runs/7621432048.
Commit: ``.
Cypress dashboard: Click here!
The following are new failures, please fix them before merging the PR:

  1. cypress/e2e/Regression/ClientSide/Git/GitSync/SwitchBranches_spec.js

  2. cypress/e2e/Regression/ServerSide/GenerateCRUD/MySQL2_Spec.ts
To know the list of identified flaky tests - Refer here

Copy link

Workflow run: https://github.com/appsmithorg/appsmith/actions/runs/7621432048.
Commit: ``.
Cypress dashboard: Click here!
The following are new failures, please fix them before merging the PR:

  1. cypress/e2e/Regression/ClientSide/Git/GitSync/SwitchBranches_spec.js

  2. cypress/e2e/Regression/ServerSide/GenerateCRUD/MySQL2_Spec.ts
To know the list of identified flaky tests - Refer here

Copy link

Workflow run: https://github.com/appsmithorg/appsmith/actions/runs/7621432048.
Commit: ``.
Cypress dashboard: Click here!
The following are new failures, please fix them before merging the PR:

  1. cypress/e2e/Regression/ServerSide/GenerateCRUD/MySQL2_Spec.ts

To know the list of identified flaky tests - Refer here

Copy link

Workflow run: https://github.com/appsmithorg/appsmith/actions/runs/7621432048.
Commit: ``.
Cypress dashboard: Click here!
The following are new failures, please fix them before merging the PR:

  1. cypress/e2e/Regression/ServerSide/GenerateCRUD/MySQL2_Spec.ts

To know the list of identified flaky tests - Refer here

@marks0351
Copy link
Contributor Author

/ok-to-test tags="tag.PropertyPane"

Copy link

Tests running at: https://github.com/appsmithorg/appsmith/actions/runs/7623059187.
Workflow: Appsmith External Integration Test Workflow.
Tags: tag.PropertyPane.

Copy link

Workflow run: https://github.com/appsmithorg/appsmith/actions/runs/7623059187.
Commit: ``.
Cypress dashboard: Click here!
The following are new failures, please fix them before merging the PR:

  1. cypress/e2e/Regression/ClientSide/Git/GitSync/SwitchBranches_spec.js

  2. cypress/e2e/Regression/ServerSide/GenerateCRUD/MySQL2_Spec.ts
To know the list of identified flaky tests - Refer here

Copy link

Workflow run: https://github.com/appsmithorg/appsmith/actions/runs/7623059187.
Commit: ``.
Cypress dashboard: Click here!
The following are new failures, please fix them before merging the PR:

  1. cypress/e2e/Regression/ServerSide/GenerateCRUD/MySQL2_Spec.ts

To know the list of identified flaky tests - Refer here

@marks0351
Copy link
Contributor Author

/ok-to-test tags="@tag.PropertyPane"

Copy link

Tests running at: https://github.com/appsmithorg/appsmith/actions/runs/7624026397.
Workflow: Appsmith External Integration Test Workflow.
Tags: @tag.PropertyPane.

Copy link

Workflow run: https://github.com/appsmithorg/appsmith/actions/runs/7624026397.
Commit: ``.
Cypress dashboard: Click here!
The following are new failures, please fix them before merging the PR:

  1. cypress/e2e/Regression/ServerSide/OnLoadTests/JSOnLoad1_Spec.ts

To know the list of identified flaky tests - Refer here

Copy link

Workflow run: https://github.com/appsmithorg/appsmith/actions/runs/7624026397.
Commit: ``.
Cypress dashboard: Click here!
The following are new failures, please fix them before merging the PR:

  1. cypress/e2e/Regression/ServerSide/OnLoadTests/JSOnLoad1_Spec.ts

To know the list of identified flaky tests - Refer here

Copy link

Workflow run: https://github.com/appsmithorg/appsmith/actions/runs/7624026397.
Commit: ``.
Cypress dashboard: Click here!
The following are new failures, please fix them before merging the PR:

  1. cypress/e2e/Regression/ServerSide/OnLoadTests/JSOnLoad1_Spec.ts

To know the list of identified flaky tests - Refer here

@marks0351
Copy link
Contributor Author

/ok-to-test tags="@tag.PropertyPane"

Copy link

Tests running at: https://github.com/appsmithorg/appsmith/actions/runs/7627834384.
Workflow: Appsmith External Integration Test Workflow.
Tags: @tag.PropertyPane.

Copy link

Workflow run: https://github.com/appsmithorg/appsmith/actions/runs/7627834384.
Commit: ``.
Cypress dashboard url: Click here!
All cypress tests have passed 🎉🎉🎉

@marks0351 marks0351 merged commit 6b2c79f into release Jan 24, 2024
15 checks passed
@marks0351 marks0351 deleted the feat/magnetic-distribution branch January 24, 2024 02:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants