@bytebrand/fe-ui-core-autobahn 1.0.13 → 1.0.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/chrome/TopBar.tsx CHANGED
@@ -35,8 +35,10 @@ const R_SAVED_SEARCHES = '/my-searches';
35
35
  const R_MY_VEHICLES = '/my-vehicles/overview';
36
36
  const R_SETTINGS = '/my-settings';
37
37
  const R_MY_ORDERS = '/account/my-orders';
38
- const R_DEALER_DASHBOARD = '/account/dashboard';
38
+ /** DashboardPage branches internally on authStore.isDealer — same route serves regular users too. */
39
+ const R_DASHBOARD = '/account/dashboard';
39
40
  const R_IMAGE_SETTINGS = '/account/image-settings';
41
+ const R_KONTAKT = '/account/kontakt';
40
42
 
41
43
  /** Languages offered in the account menu (legacy supports de/en/ru). Labels are proper nouns
42
44
  * (endonyms) and stay untranslated. */
@@ -215,15 +217,20 @@ const TopBar: React.FunctionComponent<TopBarProps> = ({
215
217
  <div className="md-label-sm" style={{ padding: '6px 14px 8px', color: 'var(--md-on-surface-variant)' }}>
216
218
  {userLabel || t('autobahn:chrome.myAccount')}
217
219
  </div>
220
+ {/* dealer-main users get the same route via the dedicated "Händler-Dashboard" row below */}
221
+ {!isDealerMain &&
222
+ row('autobahn:chrome.dashboard', t('autobahn:chrome.dashboard'), () => goRoute(R_DASHBOARD), { icon: 'layout-grid' })}
218
223
  {row('autobahn:chrome.myVehicles', t('autobahn:chrome.myVehicles'), () => goRoute(R_MY_VEHICLES), { icon: 'car' })}
219
- {row('autobahn:chrome.myOrders', t('autobahn:chrome.myOrders'), () => goRoute(R_MY_ORDERS), { icon: 'package', badge: ordersCount > 0 ? ordersCount : undefined })}
224
+ {ordersCount > 0 &&
225
+ row('autobahn:chrome.myOrders', t('autobahn:chrome.myOrders'), () => goRoute(R_MY_ORDERS), { icon: 'package', badge: ordersCount })}
220
226
  {row('autobahn:chrome.savedSearches', t('autobahn:chrome.savedSearches'), () => goRoute(R_SAVED_SEARCHES), { icon: 'bell' })}
221
227
  {row('autobahn:chrome.favorites', t('autobahn:chrome.favorites'), () => goRoute(R_FAVOURITES), { icon: 'heart', badge: favoritesCount })}
222
228
  {row('autobahn:chrome.settings', t('autobahn:chrome.settings'), () => goRoute(R_SETTINGS), { icon: 'settings' })}
229
+ {row('autobahn:chrome.helpContact', t('autobahn:chrome.helpContact'), () => goRoute(R_KONTAKT), { icon: 'help-circle' })}
223
230
  {isDealerMain && (
224
231
  <>
225
232
  {divider('d-dealer')}
226
- {row('autobahn:chrome.dealerDashboard', t('autobahn:chrome.dealerDashboard'), () => goRoute(R_DEALER_DASHBOARD), { icon: 'store' })}
233
+ {row('autobahn:chrome.dealerDashboard', t('autobahn:chrome.dealerDashboard'), () => goRoute(R_DASHBOARD), { icon: 'store' })}
227
234
  {row('autobahn:chrome.imageSettings', t('autobahn:chrome.imageSettings'), () => goRoute(R_IMAGE_SETTINGS), { icon: 'image' })}
228
235
  </>
229
236
  )}
@@ -214,6 +214,7 @@
214
214
  "navJobs": "Jobs",
215
215
  "myOrders": "Meine Bestellungen",
216
216
  "myDealers": "Meine Händler",
217
+ "dashboard": "Dashboard",
217
218
  "dealerDashboard": "Händler-Dashboard",
218
219
  "imageSettings": "Bildeinstellungen"
219
220
  },
@@ -214,6 +214,7 @@
214
214
  "navJobs": "Jobs",
215
215
  "myOrders": "My orders",
216
216
  "myDealers": "My dealers",
217
+ "dashboard": "Dashboard",
217
218
  "dealerDashboard": "Dealer dashboard",
218
219
  "imageSettings": "Image settings"
219
220
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bytebrand/fe-ui-core-autobahn",
3
- "version": "1.0.13",
3
+ "version": "1.0.14",
4
4
  "description": "auto.de md3 (Autobahn) design system — UI primitives, cards, chrome, VDP modules, theme CSS and locales. Ships raw TypeScript source (like fe-ui-core before it); each consumer's bundler compiles it.",
5
5
  "main": "index.ts",
6
6
  "license": "UNLICENSED",