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(web): plugin playground presets - make header icons sticky to top #1463

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

OpeDada
Copy link
Contributor

@OpeDada OpeDada commented Mar 4, 2025

Overview

Made header icons sticky to the top while the column below is scrollable.

What I've done

Screenshot 2025-03-04 at 10 49 03 AM

What I haven't done

How I tested

Which point I want you to review particularly

Memo

Summary by CodeRabbit

  • Style
    • Improved the layout and scrolling behavior to provide a smoother experience by ensuring key interface elements remain visible during navigation.

Copy link

coderabbitai bot commented Mar 4, 2025

Walkthrough

The changes update the UI styling of the PluginPlayground components. Specifically, new CSS properties have been added to manage overflow behavior and scrolling. The Wrapper gets an overflow: "hidden", the PluginListWrapper now supports vertical scrolling with overflowY: "auto", and the IconList has added properties for sticky positioning. No public declarations were altered.

Changes

File Change Summary
web/.../PluginPlayground/Plugins/index.tsx Added overflow: "hidden" to Wrapper, overflowY: "auto" to PluginListWrapper, and sticky styling to IconList.

Suggested labels

web

Suggested reviewers

  • mkumbobeaty
  • airslice
  • m-abe-dev

Poem

In the code garden where styles unfurl,
I hop on lines with a playful twirl.
Sticky icons keep the view so bright,
Overflow's tamed, everything feels right.
With each scroll and every tweak I see,
This bunny cheers in joyful glee! 🐇

✨ Finishing Touches
  • 📝 Generate Docstrings

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>, please review it.
    • 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 gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @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 generate docstrings to generate docstrings for this 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 the web label Mar 4, 2025
@github-actions github-actions bot requested a review from m-abe-dev March 4, 2025 01:50
@OpeDada OpeDada changed the title make header icons sticky to top feat(web): plugin playground presets - make header icons sticky to top Mar 4, 2025
Copy link

netlify bot commented Mar 4, 2025

Deploy Preview for reearth-web ready!

Name Link
🔨 Latest commit 4bff415
🔍 Latest deploy log https://app.netlify.com/sites/reearth-web/deploys/67c65c4f60d6be00089cf2e2
😎 Deploy Preview https://deploy-preview-1463--reearth-web.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

@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

🧹 Nitpick comments (1)
web/src/beta/features/PluginPlayground/Plugins/index.tsx (1)

292-296: Successfully implements sticky header functionality.

The combination of position: "sticky", top: 0, and zIndex: 10 properly implements the sticky header functionality requested in the PR. The additional spacing properties (marginBottom and padding) ensure proper visual separation between the header and scrollable content.

Consider adding a subtle background color or backdrop blur to the sticky header to ensure it remains visually distinct from the scrolling content underneath.

const IconList = styled("div")(({ theme }) => ({
  display: "flex",
  alignItems: "center",
  gap: theme.spacing.small,
  marginBottom: theme.spacing.small,
  position: "sticky",
  top: 0,
  zIndex: 10,
  padding: `${theme.spacing.small}px 0`,
+ backgroundColor: theme.background.primary,
+ backdropFilter: "blur(8px)"
}));
📜 Review details

Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 37d1a3f and 4bff415.

📒 Files selected for processing (1)
  • web/src/beta/features/PluginPlayground/Plugins/index.tsx (3 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (6)
  • GitHub Check: Redirect rules - reearth-web
  • GitHub Check: Header rules - reearth-web
  • GitHub Check: Pages changed - reearth-web
  • GitHub Check: ci-server / ci-server-lint
  • GitHub Check: ci-server / ci-server-test
  • GitHub Check: ci-web / ci
🔇 Additional comments (2)
web/src/beta/features/PluginPlayground/Plugins/index.tsx (2)

241-242: LGTM: Wrapper styling enhances component hierarchy.

The additions of flexGrow: 1 and overflow: "hidden" properly set up the container to expand within its parent while preventing content overflow. This is essential for the sticky header implementation as it creates a proper containing block for the sticky positioning context.


256-257: Effective scroll implementation for content area.

The overflowY: "auto" property enables vertical scrolling when content exceeds available height, which is the core functionality needed for this feature. The negative left margin (marginLeft: -theme.spacing.smallest) appears to be offsetting padding elsewhere, creating a more balanced layout.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant