Skip to content

Add kiosk mode styling to MapboxMap and integrate kiosk context in Ma…#672

Merged
matbmapspeople merged 3 commits intomainfrom
feature/matb/make_point_none_events_for_attributes
Apr 1, 2026
Merged

Add kiosk mode styling to MapboxMap and integrate kiosk context in Ma…#672
matbmapspeople merged 3 commits intomainfrom
feature/matb/make_point_none_events_for_attributes

Conversation

@matbmapspeople
Copy link
Copy Markdown
Collaborator

@matbmapspeople matbmapspeople commented Apr 1, 2026

…pTemplate

Summary by CodeRabbit

  • Bug Fixes
    • Mapbox and OpenStreetMap attributions are no longer clickable in kiosk mode.

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented Apr 1, 2026

Warning

Rate limit exceeded

@matbmapspeople has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 26 minutes and 39 seconds before requesting another review.

Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 26 minutes and 39 seconds.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 3caad8cd-9533-4a4f-bd84-e3f246b6fd7c

📥 Commits

Reviewing files that changed from the base of the PR and between 22babd3 and aa73e2e.

⛔ Files ignored due to path filters (1)
  • package-lock.json is excluded by !**/package-lock.json
📒 Files selected for processing (3)
  • packages/map-template/CHANGELOG.md
  • packages/map-template/src/components/MIMap/MapboxMap/MapboxMap.scss
  • packages/map-template/src/components/MapTemplate/MapTemplate.jsx
📝 Walkthrough

Walkthrough

This pull request adds kiosk mode styling to disable pointer interactions on Mapbox attribution and logo elements. The MapTemplate component now conditionally applies a CSS class when in kiosk mode using the useIsKioskContext hook, and the change is documented in the changelog for version 1.96.22.

Changes

Cohort / File(s) Summary
Changelog Entry
packages/map-template/CHANGELOG.md
Added release notes for version 1.96.22 documenting the UI behavior change: Mapbox and OpenStreetMap attributions are no longer clickable in kiosk mode.
Kiosk Mode Styling
packages/map-template/src/components/MIMap/MapboxMap/MapboxMap.scss
Introduced new .mapsindoors-map--kiosk CSS rule that disables pointer events on .mapboxgl-ctrl-logo and .mapboxgl-ctrl-attrib elements.
Kiosk Mode Integration
packages/map-template/src/components/MapTemplate/MapTemplate.jsx
Imported useIsKioskContext hook and conditionally appended mapsindoors-map--kiosk class to the root div when in kiosk mode.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~5 minutes

Possibly related PRs

Suggested reviewers

  • Lucaci-Andrei

Poem

🐰 In kiosk mode, no clickety-click,
The attributions sit still—a UI trick!
Pointer events fade to none,
Mapbox stays put, all in good fun. ✨

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feature/matb/make_point_none_events_for_attributes

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

…etMap attributions in kiosk view for version 1.96.22
@matbmapspeople matbmapspeople merged commit e935b42 into main Apr 1, 2026
@matbmapspeople matbmapspeople deleted the feature/matb/make_point_none_events_for_attributes branch April 1, 2026 07:01
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.

2 participants