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: rest api response box is unreachable via scroll #29830

Conversation

vaibhavchobisa
Copy link
Contributor

@vaibhavchobisa vaibhavchobisa commented Dec 24, 2023

Description

Scrollbar of API response is escaping the viewport. This PR fixes the issue.

Media

Screenshot 2023-12-24 at 3 20 21 PM

Fixes #29534
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.Datasource"

🔍 Cypress test results

Caution

If you modify the content in this section, you are likely to disrupt the CI result for your PR.

Summary by CodeRabbit

  • Style
    • Improved the visual layout and padding of the TabPanelWrapper component for better readability and user interface experience.
    • Updated the layout or styling of the DebuggerLogs component to enhance the user interface.

Copy link
Contributor

coderabbitai bot commented Dec 24, 2023

Walkthrough

The code update introduces a CSS modification aimed at improving the user experience in scrolling through long REST API responses. By adjusting the overflow and padding settings for the TabPanelWrapper component, the change aims to ensure that users can scroll to the bottom of lengthy responses without obstruction, addressing a specific scrolling issue in the application's user interface.

Changes

File Path Change Summary
app/client/src/components/editorComponents/EntityBottomTabs.tsx
app/client/src/components/editorComponents/Debugger/DebuggerLogs.tsx
Introduced new constant FOOTER_MARGIN to manage the layout and styling of the components.

Assessment against linked issues

Objective Addressed Explanation
Enable reaching the actual bottom of a long REST API response through scrolling. (#29534)
Ensure the entire response is visible within the current viewport without relying on keyboard "down" strokes. (#29534)

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.

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 a review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai help to get help.

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

CodeRabbit Configration 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.

@rohan-arthur
Copy link
Contributor

/build-deploy-preview skip-tests=true

Copy link

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

Copy link

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

@vaibhavchobisa
Copy link
Contributor Author

/build-deploy-preview skip-tests=true

2 similar comments
@vaibhavchobisa
Copy link
Contributor Author

/build-deploy-preview skip-tests=true

@rohan-arthur
Copy link
Contributor

/build-deploy-preview skip-tests=true

Copy link

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

@rohan-arthur
Copy link
Contributor

@vaibhavchobisa looks like the issue is still there. You can sign up with a new user and test here: https://ce-29830.dp.appsmith.com/

Screen.Recording.2023-12-26.at.11.35.03.mov

Copy link

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

@vaibhavchobisa
Copy link
Contributor Author

Hey @rohan-arthur
This issue is resolved on my end. I think the re-deploy was completed after you tested on the old DP.
Could you please re-test and verify?

@rohan-arthur
Copy link
Contributor

tested ok on incognito.
@sneha122 would you please review?

@@ -13,6 +13,12 @@ const TabPanelWrapper = styled(TabPanel)`
&.ads-v2-tabs__panel {
overflow: auto;
}
& .t--code-editor-wrapper.codeWrapper {
overflow-y: scroll;
Copy link
Contributor

Choose a reason for hiding this comment

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

@vaibhavchobisa Why is this overflow-y necessary? It seems to be adding another scroll bar in the UI, other than the one we already have for code editor

& .t--code-editor-wrapper.codeWrapper {
overflow-y: scroll;
& .CodeMirror-scroll {
padding-bottom: 0;
Copy link
Contributor

Choose a reason for hiding this comment

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

The root cause of the issue is that the div with class CodeMirror-scroll does not have its height configured correctly, its height is overflowing over the footer and hence some of the content gets hidden behind the footer, can you please check where this height is coming from and fix the issue from root cause?

Copy link
Contributor

Choose a reason for hiding this comment

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

Screenshot 2023-12-26 at 5 14 26 PM

Copy link
Contributor Author

@vaibhavchobisa vaibhavchobisa Dec 27, 2023

Choose a reason for hiding this comment

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

Thank you for the feedback @sneha122.

Div with the class "t--code-editor-wrapper codeWrapper" is the one that is causing the overflow beyond the screen. I have provided it with the height of "100% - 40px" which takes both the footer size and the little padding above it into account.
I have also replaced the bottom padding with box-sizing: border-box; so that the bottom padding of 50px stays.

It seems to be working fine now, please re-review and let me know, thanks!

@vaibhavchobisa
Copy link
Contributor Author

/build-deploy-preview skip-tests=true

Copy link

github-actions bot commented Jan 3, 2024

This PR has not seen activitiy for a while. It will be closed in 7 days unless further activity is detected.

@github-actions github-actions bot added the Stale label Jan 3, 2024
@vaibhavchobisa
Copy link
Contributor Author

Hi @sneha122
Can you please review the changes in the PR?

@sneha122
Copy link
Contributor

sneha122 commented Jan 4, 2024

/build-deploy-preview skip-tests=true

@sneha122
Copy link
Contributor

sneha122 commented Jan 4, 2024

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

Copy link

github-actions bot commented Jan 4, 2024

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

Copy link

github-actions bot commented Jan 4, 2024

Tests running at: https://github.com/appsmithorg/appsmith/actions/runs/7406261868.
Workflow: Appsmith External Integration Test Workflow.
Tags: ``.

Copy link

github-actions bot commented Jan 4, 2024

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

Copy link

github-actions bot commented Jan 4, 2024

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

@github-actions github-actions bot removed the Stale label Jan 4, 2024
Copy link

This PR has not seen activitiy for a while. It will be closed in 7 days unless further activity is detected.

@github-actions github-actions bot added the Stale label Jan 11, 2024
@sneha122
Copy link
Contributor

This PR is active

@github-actions github-actions bot removed the Stale label Jan 13, 2024
Copy link

This PR has not seen activitiy for a while. It will be closed in 7 days unless further activity is detected.

@github-actions github-actions bot added the Stale label Jan 21, 2024
Copy link

This PR has been closed because of inactivity.

@github-actions github-actions bot closed this Feb 17, 2024
@rohan-arthur rohan-arthur reopened this Mar 12, 2024
Copy link

github-actions bot commented Apr 2, 2024

This PR has been closed because of inactivity.

@github-actions github-actions bot closed this Apr 2, 2024
@sneha122 sneha122 reopened this Apr 8, 2024
@sneha122 sneha122 added the ok-to-test Required label for CI label Apr 8, 2024
@sneha122
Copy link
Contributor

sneha122 commented Apr 8, 2024

@vaibhavchobisa Apologies for the delay here, but since this PR has become very old and our automation processes have been updated since then, I would kindly request you to sync the forked repo with the original one and merge latest release into the branch, this way everything will be updated and we can proceed ahead with the PR.

@vaibhavchobisa
Copy link
Contributor Author

@sneha122 Done. Thanks!

@sneha122 sneha122 added ok-to-test Required label for CI and removed ok-to-test Required label for CI labels Apr 8, 2024
@sneha122
Copy link
Contributor

sneha122 commented Apr 8, 2024

/build-deploy-preview skip-tests=true

Copy link

github-actions bot commented Apr 8, 2024

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

Copy link

github-actions bot commented Apr 8, 2024

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

@sneha122
Copy link
Contributor

sneha122 commented Apr 9, 2024

All automation test cases have passed in this [draft PR created internally]
(#32491)

Also tested the PR for the issue fix and it looks as expected

@hetunandu hetunandu merged commit 5870bd3 into appsmithorg:release Apr 9, 2024
16 of 17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ok-to-test Required label for CI Stale
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Bottom of the REST API response is not reachable with scroll
4 participants