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

fix: Action redesign/remove container query #36014

Merged
merged 4 commits into from
Aug 30, 2024

Conversation

albinAppsmith
Copy link
Collaborator

@albinAppsmith albinAppsmith commented Aug 30, 2024

Description

PR addresses below issues,

  1. Query was not scrollable when code editor field dynamically increase height. This was caused by the container property in Section. Container will ignore absolute positioned elements dynamic heights.
  2. Fixed code editor field min-width while resizing
  3. Fixed ads select feild min-width while resizing.

Fixes #36000
Fixes #35901

Automation

/ok-to-test tags="@tag.Sanity, @tag.IDE"

🔍 Cypress test results

Tip

🟢 🟢 🟢 All cypress tests have passed! 🎉 🎉 🎉
Workflow run: https://github.com/appsmithorg/appsmith/actions/runs/10631460963
Commit: 9d9fe76
Cypress dashboard.
Tags: @tag.Sanity, @tag.IDE
Spec:


Fri, 30 Aug 2024 11:24:13 UTC

Communication

Should the DevRel and Marketing teams inform users about this change?

  • Yes
  • No

Summary by CodeRabbit

  • New Features

    • Enhanced styling for the dynamic text field control, improving visual consistency.
    • Introduced a flexible grid layout for better responsiveness across different screen sizes.
  • Bug Fixes

    • Addressed layout issues with minimum width adjustments for dynamic text fields and advertisement selectors.

Copy link
Contributor

coderabbitai bot commented Aug 30, 2024

Walkthrough

The recent changes involve updates to the DynamicTextControl class for improved styling, adjustments to CSS for better responsiveness, and modifications to the grid layout. These enhancements aim to resolve UI issues and improve the overall user experience, particularly in relation to dynamic text fields and layout adaptability.

Changes

File Path Change Summary
app/client/src/components/formControls/... Updated className in DynamicTextControl to include dynamic-text-field-control for enhanced styling.
app/client/src/pages/Editor/ActionForm/Zone/... Modified grid-template-columns for better responsiveness; added styles for .dynamic-text-field-control.

Assessment against linked issues

Objective Addressed Explanation
Update container query to grid - fix for scroll issue in UQI (#36000)
Action redesign - UI issues with mongo plugin (#35901)

🎉 In the code, a dance of change,
Styles and props, all rearranged.
A button now shines with new delight,
Grids adjust to fit just right.
With every tweak, the UI sings,
A better app, oh what joy it brings! 🎈


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?

Share
Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai generate interesting stats about this repository and render them as a table.
    • @coderabbitai show all the console.log statements in this repository.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

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)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@github-actions github-actions bot added Bug Something isn't working IDE Navigation Issues/feature requests related to IDE navigation, and context switching IDE Pod Issues that new developers face while exploring the IDE IDE Product Issues related to the IDE Product Integrations Product Issues related to a specific integration Medium Issues that frustrate users due to poor UX Mongo Issues related to Mongo DB plugin Needs Triaging Needs attention from maintainers to triage Query & JS Pod Issues related to the query & JS Pod Release Task A simple Todo labels Aug 30, 2024
@albinAppsmith albinAppsmith changed the title Action redesign/remove container query fix: Action redesign/remove container query Aug 30, 2024
@github-actions github-actions bot added Bug Something isn't working and removed Bug Something isn't working labels Aug 30, 2024
@albinAppsmith
Copy link
Collaborator Author

/build-deploy-preview skip-test=true

Copy link

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

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

Review details

Configuration used: .coderabbit.yaml
Review profile: CHILL

Commits

Files that changed from the base of the PR and between 826a33a and 4f4cd3e.

Files selected for processing (4)
  • app/client/src/components/formControls/DynamicTextFieldControl.tsx (1 hunks)
  • app/client/src/components/formControls/FieldArrayControl.tsx (1 hunks)
  • app/client/src/pages/Editor/ActionForm/Section/styles.module.css (1 hunks)
  • app/client/src/pages/Editor/ActionForm/Zone/styles.module.css (2 hunks)
Files skipped from review due to trivial changes (1)
  • app/client/src/pages/Editor/ActionForm/Section/styles.module.css
Additional comments not posted (4)
app/client/src/pages/Editor/ActionForm/Zone/styles.module.css (2)

8-8: Refinement of grid layout for better responsiveness.

The change to grid-template-columns using auto-fill and minmax is a smart move, ensuring that the layout adapts dynamically to the available space. This should significantly improve the responsiveness of the UI.


56-58: Resetting minimum width for advertisement selectors.

Unsetting the minimum width for .ads-v2-select > .rc-select-selector is a good approach to make the advertisement selectors more adaptable to various screen sizes. This change should help prevent UI layout issues when resizing.

app/client/src/components/formControls/DynamicTextFieldControl.tsx (1)

68-68: Enhancement to class naming for dynamic text field control.

Adding dynamic-text-feild-control to the class name of the Wrapper component allows for more specific styling and potentially better functionality. This is a straightforward and effective way to enhance the component's adaptability and maintainability by separating concerns through CSS.

app/client/src/components/formControls/FieldArrayControl.tsx (1)

103-103: Introduction of isIconButton prop to enhance semantic clarity.

Adding the isIconButton prop to the CenteredIconButton component is a thoughtful enhancement. It clarifies the component's role and usage within the UI, which can help in future maintenance and potentially optimize rendering by providing more context to the styling logic.

Comment on lines 51 to 53
/* Remove when code editor min width is resolved in DynamicTextFeildControl */
& :global(.dynamic-text-feild-control) {
min-width: 260px;
Copy link
Contributor

Choose a reason for hiding this comment

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

Set minimum width for dynamic text field control.

Setting a minimum width of 260px for the .dynamic-text-feild-control class is a temporary fix to ensure that elements do not become too small on narrower screens. However, it's crucial to address this in the DynamicTextFeildControl component itself to avoid hard-coded values in the CSS, which can lead to maintenance issues.

Consider implementing a more flexible solution within the component logic rather than relying on CSS overrides.

@albinAppsmith albinAppsmith added the ok-to-test Required label for CI label Aug 30, 2024
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

Review details

Configuration used: .coderabbit.yaml
Review profile: CHILL

Commits

Files that changed from the base of the PR and between 4f4cd3e and 9d9fe76.

Files selected for processing (2)
  • app/client/src/components/formControls/DynamicTextFieldControl.tsx (1 hunks)
  • app/client/src/pages/Editor/ActionForm/Zone/styles.module.css (2 hunks)
Files skipped from review as they are similar to previous changes (2)
  • app/client/src/components/formControls/DynamicTextFieldControl.tsx
  • app/client/src/pages/Editor/ActionForm/Zone/styles.module.css

Copy link

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

@albinAppsmith albinAppsmith merged commit a9ca63c into release Aug 30, 2024
49 checks passed
@albinAppsmith albinAppsmith deleted the action-redesign/remove-container-query branch August 30, 2024 11:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working IDE Navigation Issues/feature requests related to IDE navigation, and context switching IDE Pod Issues that new developers face while exploring the IDE IDE Product Issues related to the IDE Product Integrations Product Issues related to a specific integration Medium Issues that frustrate users due to poor UX Mongo Issues related to Mongo DB plugin Needs Triaging Needs attention from maintainers to triage ok-to-test Required label for CI Query & JS Pod Issues related to the query & JS Pod Release Task A simple Todo
Projects
None yet
2 participants