Skip to content

feat(ui): add BottomSheet SCSS and map viewport sync - #223

Merged
pjeweb merged 4 commits into
mainfrom
feat/ui-bottom-sheet-chrome
Aug 27, 2026
Merged

feat(ui): add BottomSheet SCSS and map viewport sync#223
pjeweb merged 4 commits into
mainfrom
feat/ui-bottom-sheet-chrome

Conversation

@pjeweb

@pjeweb pjeweb commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Add structural ms3-bottom-sheet SCSS for the #215 BottomSheet layout states.
  • Add useMapViewportSyncForBottomSheet so in-flow sheets can resize/recenter the map and dismiss selection.

@changeset-bot

changeset-bot Bot commented Aug 27, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 691e785

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
@mapsight/ui Minor
@mapsight/count-aggregator-ui Major
@mapsight/showcase Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@pjeweb
pjeweb force-pushed the feat/ui-bottom-sheet-chrome branch from cc1f6e1 to 2ccc1da Compare August 27, 2026 20:16
@pjeweb
pjeweb requested a lite review from Copilot August 27, 2026 20:19

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Adds structural styling and a new UI hook to keep the map viewport consistent with an in-flow BottomSheet’s open/resize/close lifecycle, including optional selection dismissal.

Changes:

  • Add ms3-bottom-sheet structural SCSS and wire it into the default SCSS bundle.
  • Introduce useMapViewportSyncForBottomSheet to dispatch updateMapSize (with optional recenter) and to clear configured feature selections on dismiss.
  • Add unit tests and Changesets entries for the new hook + SCSS.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
packages/ui/src/scss/default.scss Includes the new BottomSheet SCSS block in the default SCSS bundle.
packages/ui/src/scss/blocks/_bottom-sheet.scss Adds structural .ms3-bottom-sheet layout/state styles (dragging/scrollable modes).
packages/ui/src/js/hooks/useMapViewportSyncForBottomSheet.ts New hook to resize/recenter map and optionally dismiss feature selection when BottomSheet changes.
packages/ui/src/js/hooks/useMapViewportSyncForBottomSheet.test.tsx Adds tests for the new hook’s open-sync, scheduling coalescing, and selection dismiss behavior.
.changeset/ui-map-viewport-sync-bottom-sheet.md Declares a minor release for the new hook API.
.changeset/ui-bottom-sheet-scss.md Declares a patch release for the new SCSS block.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread packages/ui/src/js/hooks/useMapViewportSyncForBottomSheet.test.tsx

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 6 out of 6 changed files in this pull request and generated no new comments.

@pjeweb
pjeweb merged commit 1153f61 into main Aug 27, 2026
21 checks passed
@pjeweb
pjeweb deleted the feat/ui-bottom-sheet-chrome branch August 27, 2026 20:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants