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: Add & list tabs padding fixes #35057

Merged
merged 1 commit into from
Jul 22, 2024
Merged

Conversation

albinAppsmith
Copy link
Collaborator

@albinAppsmith albinAppsmith commented Jul 22, 2024

Description

Fixed padding for add and list view of tab as per design.

Fixes #34529

Automation

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

🔍 Cypress test results

Tip

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


Mon, 22 Jul 2024 07:39:55 UTC

Communication

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

  • Yes
  • No

Summary by CodeRabbit

  • User Interface Enhancements

    • Adjusted padding and layout properties across various components to improve visual alignment and spacing.
    • Simplified component structures by removing unnecessary padding properties.
  • Bug Fixes

    • Resolved potential issues related to visual inconsistencies caused by previous padding configurations.

Copy link
Contributor

coderabbitai bot commented Jul 22, 2024

Walkthrough

The recent changes primarily focus on adjusting padding and layout properties across various components in the IDE. Key modifications include the removal of specific padding properties in components such as GroupedList, List, and AddAndSearchbar, streamlining their structure while aiming to enhance the overall visual alignment and spacing of elements. These adjustments are intended to address previously identified issues related to spacing and gaps in the user interface.

Changes

Files Change Summary
app/client/src/pages/Editor/IDE/EditorPane/JS/Add.tsx Removed flexProps from GroupedList, affecting padding and layout.
app/client/src/pages/Editor/IDE/EditorPane/JS/List.tsx Added px="spaces-3" to outer Flex, removed px from inner Flex, altering horizontal spacing.
app/client/src/pages/Editor/IDE/EditorPane/Query/Add.tsx Removed flexProps from GroupedList, simplifying layout and potentially altering visual presentation.
app/client/src/pages/Editor/IDE/EditorPane/Query/List.tsx Added px="spaces-3" to outer Flex, removed px from inner Flex, refining visual spacing.
app/client/src/pages/Editor/IDE/EditorPane/components/AddAndSearchbar.tsx Removed px="spaces-3" from Flex, simplifying component structure and layout.
app/client/src/pages/Editor/IDE/EditorPane/components/GroupedList.tsx Changed padding from px-[var(--ads-v2-spaces-3)] to 0, affecting compactness of layout.
app/client/src/pages/Editor/IDE/EditorPane/components/SegmentAddHeader.tsx Removed pl and pr padding properties, affecting horizontal spacing while keeping vertical padding unchanged.

Sequence Diagram(s)

sequenceDiagram
    participant User
    participant IDE
    participant Components

    User->>IDE: Open "Add Query/JSObject" tab
    IDE->>Components: Render UI elements with new padding adjustments
    Components-->>IDE: Display updated layout
    IDE-->>User: Show refined interface
Loading

Assessment against linked issues

Objective Addressed Explanation
Adjust paddings and gaps for "Add a new query" screen ( #34529 )
Ensure visual alignment of elements across components ( #34529 )

In the canvas of code, we paint with care,
Adjusting the padding, making it fair.
Components embrace their new, tidy space,
A layout refined, a more pleasing place.
With a gentle touch, the UI does shine,
A harmonious blend, all elements align!


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 as 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.

Additionally, you can add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

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 IDE Navigation Issues/feature requests related to IDE navigation, and context switching IDE Pod Issues that new developers face while exploring the IDE labels Jul 22, 2024
@github-actions github-actions bot added the Bug Something isn't working label Jul 22, 2024
@albinAppsmith albinAppsmith added ok-to-test Required label for CI and removed Bug Something isn't working labels Jul 22, 2024
@github-actions github-actions bot added the Bug Something isn't working label Jul 22, 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 1b44d2c and 03296dd.

Files selected for processing (7)
  • app/client/src/pages/Editor/IDE/EditorPane/JS/Add.tsx (1 hunks)
  • app/client/src/pages/Editor/IDE/EditorPane/JS/List.tsx (2 hunks)
  • app/client/src/pages/Editor/IDE/EditorPane/Query/Add.tsx (1 hunks)
  • app/client/src/pages/Editor/IDE/EditorPane/Query/List.tsx (2 hunks)
  • app/client/src/pages/Editor/IDE/EditorPane/components/AddAndSearchbar.tsx (1 hunks)
  • app/client/src/pages/Editor/IDE/EditorPane/components/GroupedList.tsx (1 hunks)
  • app/client/src/pages/Editor/IDE/EditorPane/components/SegmentAddHeader.tsx (1 hunks)
Files skipped from review due to trivial changes (4)
  • app/client/src/pages/Editor/IDE/EditorPane/JS/Add.tsx
  • app/client/src/pages/Editor/IDE/EditorPane/components/AddAndSearchbar.tsx
  • app/client/src/pages/Editor/IDE/EditorPane/components/GroupedList.tsx
  • app/client/src/pages/Editor/IDE/EditorPane/components/SegmentAddHeader.tsx
Additional comments not posted (5)
app/client/src/pages/Editor/IDE/EditorPane/Query/Add.tsx (1)

Line range hint 1-1:
Verify the visual presentation of GroupedList.

The removal of flexProps simplifies the component usage. Please ensure that the visual presentation remains consistent with the design requirements.

app/client/src/pages/Editor/IDE/EditorPane/Query/List.tsx (2)

64-64: Verify the visual alignment of the inner Flex component.

The removal of px from the inner Flex component may affect the horizontal spacing. Please ensure that the visual alignment remains consistent with the design requirements.


50-50: Verify the visual alignment of the outer Flex component.

The addition of px="spaces-3" adjusts the horizontal padding. Please ensure that the visual alignment remains consistent with the design requirements.

app/client/src/pages/Editor/IDE/EditorPane/JS/List.tsx (2)

63-63: Verify the visual alignment of the outer Flex component.

The addition of px="spaces-3" adjusts the horizontal padding. Please ensure that the visual alignment remains consistent with the design requirements.


89-89: Verify the visual alignment of the inner Flex component.

The removal of px from the inner Flex component may affect the horizontal spacing. Please ensure that the visual alignment remains consistent with the design requirements.

@albinAppsmith albinAppsmith merged commit 67f16f8 into release Jul 22, 2024
45 checks passed
@albinAppsmith albinAppsmith deleted the add-new-tab-padding branch July 22, 2024 07:41
@coderabbitai coderabbitai bot mentioned this pull request Nov 12, 2024
2 tasks
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 ok-to-test Required label for CI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Task]: Padding change for “New Query/JSObject” tab and gaps between lists
2 participants