Skip to content

Conversation

@giswqs
Copy link
Member

@giswqs giswqs commented Oct 17, 2025

No description provided.

Copilot AI review requested due to automatic review settings October 17, 2025 20:34
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds support for creating containers with floating sidebars in the maplibregl module. The changes introduce a conditional branch in the create_container method to handle floating sidebar creation separately from regular container sidebars.

  • Adds conditional logic to check for floating sidebar flag
  • Implements floating sidebar widget creation with configurable parameters
  • Maintains backward compatibility with existing regular container sidebar functionality

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment on lines +327 to +332
sidebar_visible = self.sidebar_args.get("sidebar_visible", False)
expanded = self.sidebar_args.get("expanded", True)
position = self.sidebar_args.get("position", "top-left")
width = self.sidebar_args.get("width", "370px")
max_height = self.sidebar_args.get("max_height", "80vh")
sidebar_content = self.sidebar_args.get("sidebar_content", None)
Copy link

Copilot AI Oct 17, 2025

Choose a reason for hiding this comment

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

The parameter extraction logic is duplicated between the floating sidebar path and the regular sidebar path (lines 347-349). Consider extracting this common parameter retrieval logic into a helper method to reduce duplication and improve maintainability.

Copilot uses AI. Check for mistakes.
@github-actions
Copy link

@github-actions github-actions bot temporarily deployed to pull request October 18, 2025 00:28 Inactive
@mergify mergify bot merged commit 1627810 into master Oct 18, 2025
16 checks passed
@mergify
Copy link

mergify bot commented Oct 18, 2025

Thanks for the contribution @giswqs 🤩

@mergify mergify bot deleted the container branch October 18, 2025 00:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants