Skip to content

fix(orders): canvas map chrome no longer blocks the map, view switch clears the order sheet - #445

Merged
roncodes merged 2 commits into
feature/map-canvasfrom
fix/canvas-map-drawer-pointer
Dec 3, 2026
Merged

roncodes merged 2 commits into
feature/map-canvasfrom
fix/canvas-map-drawer-pointer

Conversation

@roncodes

@roncodes roncodes commented Dec 3, 2026 •

Copy link
Copy Markdown
Member

Problem

On the canvas layout, the orders map view could not be clicked. Neither the map nor the Map / Table / Board switch responded.

.fleetops-canvas-map-chrome.next-map-container > * { pointer-events: auto } matched every child of the map chrome. That includes Map::Drawer and Map::OrderListOverlay, and both span the whole map. The rule beat ember-ui's own pass-through rules: .next-drawer.drawer-is-minimized and .next-content-overlay.no-backdrop have the same specificity, and engine CSS loads later. So the minimized drawer's full-size root sat at z-index 800 over the map and caught every click.

Fix

Leave both components out of the rule: > *:not(.next-drawer, .next-content-overlay). They already handle their own pointer events; only their panels take clicks.

Verified

Tested locally on the canvas console with elementFromPoint:

  • The view switch receives the click, and Table view opens.
  • The open map area now reaches the Google map instead of the drawer.

Map panning over the content area also needs the console section to pass the pointer through. That change goes in fleetbase/fleetbase#774.

Prettier and stylelint pass.

Also: view switch over the order sheet

The floating Map / Table / Board switch (z-index 20, top centre) sat on top of the open order sheet (z-index 14) and covered its avatar and tracking number. While a right-hand sheet is open, the switch now centres over the map that is still uncovered: calc((100% - 640px) / 2), since the order sheet is lg. Verified locally.

…anvas map chrome

The canvas map chrome forced pointer-events: auto on every child, which beat the
drawer's and the order list overlay's own pass-through rules (same specificity,
engine CSS loads later). Both span the whole map, so the minimized drawer swallowed
every click on the map and on the Map/Table/Board switch.
…eet is open

The switch floated above the order sheet (z-index 20 over 14) and hid its header.
@roncodes roncodes changed the title fix(orders): canvas map chrome no longer blocks the map and the view switch fix(orders): canvas map chrome no longer blocks the map, view switch clears the order sheet Dec 3, 2026
@codecov

codecov Bot commented Dec 3, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (93776dc) to head (1caf60d).
⚠️ Report is 3 commits behind head on feature/map-canvas.

Additional details and impacted files
@@                  Coverage Diff                   @@
##             feature/map-canvas      #445   +/-   ##
======================================================
  Coverage                100.00%   100.00%           
  Complexity                20747     20747           
======================================================
  Files                       794       794           
  Lines                     65726     65726           
======================================================
  Hits                      65726     65726           
Flag Coverage Δ
backend 100.00% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@roncodes
roncodes merged commit 84053d8 into feature/map-canvas Dec 3, 2026
8 checks passed
@roncodes
roncodes deleted the fix/canvas-map-drawer-pointer branch December 3, 2026 17:03
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.

1 participant