feat: auto select parent of the removed component#36282
feat: auto select parent of the removed component#36282znamenskii-ilia merged 2 commits intoreleasefrom
Conversation
WalkthroughThe changes introduce a new optional property, Changes
Possibly related PRs
Suggested labels
Poem
Tip OpenAI O1 model for chat
Recent review detailsConfiguration used: .coderabbit.yaml Files selected for processing (1)
Files skipped from review as they are similar to previous changes (1)
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
There was a problem hiding this comment.
Actionable comments posted: 1
Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
Files selected for processing (3)
- app/client/src/actions/widgetSelectionActions.ts (2 hunks)
- app/client/src/sagas/WidgetDeletionSagas.ts (1 hunks)
- app/client/src/sagas/WidgetSelectionSagas.ts (6 hunks)
Additional comments not posted (5)
app/client/src/actions/widgetSelectionActions.ts (4)
11-11: Great work on adding theparentIdproperty! 👍The new optional
parentIdproperty in theWidgetSelectionRequestPayloadinterface is a valuable addition. It allows for associating selected widgets with a specific parent widget, which can improve the organization and hierarchy of widget selections within the application.Keep up the good work! 🌟
19-19: Excellent update to theWidgetSelectionRequesttype signature! 🙌The inclusion of the optional
parentIdparameter in theWidgetSelectionRequesttype signature aligns perfectly with the addition of theparentIdproperty in theWidgetSelectionRequestPayloadinterface.This change ensures that the
parentIdcan be provided when making a widget selection request, enabling the association of selected widgets with their parent widgets.Well done! 🎉
28-28: Nice update to theselectWidgetInitActionfunction signature! 👌The addition of the optional
parentIdparameter to theselectWidgetInitActionfunction signature is in line with the changes made to theWidgetSelectionRequesttype signature and theWidgetSelectionRequestPayloadinterface.This modification enables the
parentIdto be provided when initiating a widget selection action, allowing for the proper association of selected widgets with their parent widgets.Great job maintaining consistency across the changes! 🚀
31-31: Fantastic update to the action payload inselectWidgetInitAction! 🎯Including the
parentIdproperty in the action payload of theselectWidgetInitActionfunction is a logical and consistent change, considering the modifications made to the function signature and the related type definitions.This ensures that the
parentIdis properly included in the payload when dispatching the widget selection action, enabling the correct association of selected widgets with their parent widgets.Your attention to detail and consistency throughout the changes is commendable! 🌟
app/client/src/sagas/WidgetSelectionSagas.ts (1)
69-69: Great work on enhancing the widget selection process! The changes look good to me.The introduction of the
parentIdparameter and the determination offinalParentIdprovide more flexibility in handling parent-child relationships among widgets. The updates to the logic for asserting the parent ID in various selection request types are consistent and handle the different scenarios correctly.To ensure the changes are thoroughly tested and integrated correctly, please verify the usage of
parentIdin the codebase by running the following script:This script will help identify any potential inconsistencies or missing updates related to the usage of
parentIdin the codebase.Also applies to: 97-99, 120-120, 129-129, 132-132, 143-143, 146-146, 156-165
|
@znamenskii-ilia The sagas edited in this PR might effect Fixed mode and Auto Layout as well. Please test this once to make sure it works the same way or doesn't break anything in Fixed mode and Auto Layout. Other than that the changes look good to me. |
|
@riodeuno I've added and extra |
## Description https://github.com/user-attachments/assets/764917aa-74ea-4c1b-8361-6441344227fd Fixes appsmithorg#36281 _or_ Fixes `Issue URL` > [!WARNING] > _If no issue exists, please create an issue first, and check with the maintainers if the issue is valid._ ## Automation /ok-to-test tags="@tag.All" ### 🔍 Cypress test results <!-- This is an auto-generated comment: Cypress test results --> > [!TIP] > 🟢 🟢 🟢 All cypress tests have passed! 🎉 🎉 🎉 > Workflow run: <https://github.com/appsmithorg/appsmith/actions/runs/10845273743> > Commit: 88d0b70 > <a href="https://internal.appsmith.com/app/cypress-dashboard/rundetails-65890b3c81d7400d08fa9ee5?branch=master&workflowId=10845273743&attempt=2" target="_blank">Cypress dashboard</a>. > Tags: `@tag.All` > Spec: > <hr>Fri, 13 Sep 2024 09:32:43 UTC <!-- end of auto-generated comment: Cypress test results --> ## Communication Should the DevRel and Marketing teams inform users about this change? - [ ] Yes - [ ] No <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Introduced a new optional `parentId` property for enhanced widget selection, allowing for hierarchical management. - Updated widget selection and deletion processes to utilize the `parentId` for improved contextual handling based on layout type. - **Bug Fixes** - Enhanced logic in widget selection to ensure the correct parent ID is used, improving overall selection accuracy. - **Documentation** - Updated documentation to reflect changes in widget selection and deletion functionalities. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
Description
parentselection.mov
Fixes #36281
or
Fixes
Issue URLWarning
If no issue exists, please create an issue first, and check with the maintainers if the issue is valid.
Automation
/ok-to-test tags="@tag.All"
🔍 Cypress test results
Tip
🟢 🟢 🟢 All cypress tests have passed! 🎉 🎉 🎉
Workflow run: https://github.com/appsmithorg/appsmith/actions/runs/10845273743
Commit: 88d0b70
Cypress dashboard.
Tags:
@tag.AllSpec:
Fri, 13 Sep 2024 09:32:43 UTC
Communication
Should the DevRel and Marketing teams inform users about this change?
Summary by CodeRabbit
New Features
parentIdproperty for enhanced widget selection, allowing for hierarchical management.parentIdfor improved contextual handling based on layout type.Bug Fixes
Documentation