Skip to content

Canvas shell: persistent live map backdrop, orders on the canvas - #442

Merged
roncodes merged 2 commits into
feature/map-canvasfrom
feature/wizardly-swirles-3550e6
Dec 3, 2026
Merged

roncodes merged 2 commits into
feature/map-canvasfrom
feature/wizardly-swirles-3550e6

Conversation

@roncodes

@roncodes roncodes commented Dec 3, 2026

Copy link
Copy Markdown
Member

Shell phase 3, Fleet-Ops part (engine only, no server changes).

Canvas layout

  • Live map backdrop: universe.registerBackdrop('fleet-ops:live-map', …, { routes: ['console.fleet-ops'], keepAlive: true }). The registered component only renders a target element. The engine's application template portals Map::BackdropLiveMap into it with in-element, so the map uses the engine's mapManager/leafletMapManager. The map stays mounted across every Fleet-Ops route. Provider choice (Leaflet, Google, custom tiles) still goes through Map::LeafletLiveMap.
  • Orders map view: there is no <Map> mount. The view requests drivers/vehicles/orders layers on the backdrop service and releases them on exit. The toolbar, search, order list and drawer float over the backdrop.
  • Table and board (Kanban) render as floating canvas cards. Layout::ViewSwitch switches between map, table and board and offers New order when the user has permission.
  • Order details open in a Sheet via Layout::Resource::Panel @layout @sheetWidth="lg".
  • Context bar: crumbs read Fleet-Ops › Orders › Map/Table/Board, or the order's public id. Chips show N active and N stale GPS, or the order status and Stale GPS.
  • Dock flyout: the page tree is registered as menu-panels in engine:fleet-ops. The classic sidebar filters these out.

Classic layout

Unchanged. Every canvas piece is feature-detected (registerBackdrop, the backdrop, context-bar and shell services, the layout/view-switch component), so the engine still runs on older ember-core and ember-ui.

The layout is read from shell.isCanvas. If that is unavailable, it falls back to the session override, then the layout option, then the presence of the canvas root.

Depends on

Known limits

  • The map unmounts when you leave Fleet-Ops entirely; keepAlive keeps only the slot.
  • Layer toggling uses Leaflet panes. On Google maps, layers register but are not toggled.
  • The flyout does not filter items by permission yet.
  • Every full-size console wrapper between .fb-canvas-content and the engine outlet must be fb-canvas-passthrough, or the map does not receive drags.

CI

The PHP CI already fails on the base. The Ember checks are what this PR needs to pass.

…the canvas

In the canvas layout the live map is registered as the fleet-ops:live-map
backdrop and stays mounted across Fleet-Ops routes. The orders map view
requests layers on the backdrop instead of mounting its own map, table and
board render as floating canvas cards, the view switch floats top-centre,
order details open in a Sheet, and crumbs/chips go to the context bar. The
page tree is registered in engine:fleet-ops for the dock flyout.

Every piece is feature-detected; the classic layout renders as before.
@roncodes
roncodes merged commit e297817 into feature/map-canvas Dec 3, 2026
4 of 6 checks passed
@roncodes
roncodes deleted the feature/wizardly-swirles-3550e6 branch December 3, 2026 13:08
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