Skip to content

feat: add description and shortcuts to header menu registration#210

Merged
roncodes merged 7 commits intomainfrom
feature/header-menu-shortcuts
Mar 26, 2026
Merged

feat: add description and shortcuts to header menu registration#210
roncodes merged 7 commits intomainfrom
feature/header-menu-shortcuts

Conversation

@roncodes
Copy link
Copy Markdown
Member

Summary

Adds a description and shortcuts array to the registerHeaderMenuItem call in addon/extension.js, following the pattern established in the Ledger engine.

Each shortcut entry provides:

  • title — human-readable section name
  • description — one-line summary of what the section does
  • icon — FontAwesome icon name
  • route — the Ember route to transition to on click

Changes

  • addon/extension.js — expanded the options object passed to registerHeaderMenuItem with description and shortcuts

Testing

No logic changes. The shortcuts are purely declarative data consumed by the header menu component in @fleetbase/ember-ui.

Ronald A Richardson and others added 7 commits March 14, 2026 05:00
Add a description and shortcuts array to the registerHeaderMenuItem call
in extension.js, following the pattern established in the Ledger engine.

Shortcuts added: Orders, Routes, Drivers, Vehicles, Fleets, Service Rates, Tracking, Reports
- fleetops: replace unimplemented Routes with Places, replace Tracking with Devices
- storefront: remove incomplete Coupons shortcut
- registry-bridge: remove unimplemented developer sub-section shortcuts
…ow-route-definition lint error

The ember/no-shadow-route-definition rule flagged the top-level
`virtual` route (path: '/:section/:slug') as shadowing the nested
`virtual` routes (path: '/:slug') inside orders, drivers, vehicles,
etc. While the routes are in entirely different URL namespaces at
runtime, the static linter cannot distinguish nesting depth and treats
any two routes with the same name and structurally identical dynamic
segment patterns as a conflict.

Fix: rename the top-level route from 'virtual' to 'track-order' (which
accurately describes its purpose — the Track Order login-screen button)
and update the two corresponding references in extension.js.
… no-shadow-route-definition lint error"

This reverts commit 1f2d913.
The top-level virtual route (path: '/:section/:slug') is in a
completely different URL namespace from the nested virtual routes
(path: '/:slug') inside orders, drivers, vehicles, etc. They do not
conflict at runtime. The static linter cannot understand nesting depth
so it incorrectly flags this as a shadow. Suppress with an inline
eslint-disable comment.
@roncodes roncodes merged commit 20e398e into main Mar 26, 2026
7 checks passed
@roncodes roncodes deleted the feature/header-menu-shortcuts branch March 26, 2026 09:06
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