@bytebrand/fe-ui-core-autobahn 1.0.171 → 1.0.172

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
@@ -102,6 +102,8 @@ export interface TopBarProps {
102
102
  compareCount?: number;
103
103
  /** active language tag (appStore.language) — ticks the current language row. */
104
104
  language?: string;
105
+ /** any dealer account (authStore.isDealer: main, admin, employee, accountant) — Meine Fahrzeuge. */
106
+ isDealer?: boolean;
105
107
  /** dealer-main account (authStore.isDealerMain) — Bildeinstellungen and the dealer switch. */
106
108
  isDealerMain?: boolean;
107
109
  /** dealer admin (authStore.isDealerAdmin) — Bildeinstellungen, like isDealerMain. */
@@ -154,6 +156,7 @@ const TopBar: React.FunctionComponent<TopBarProps> = ({
154
156
  savedSearchesCount = 0,
155
157
  compareCount = 0,
156
158
  language = 'de',
159
+ isDealer = false,
157
160
  isDealerMain = false,
158
161
  isDealerAdmin = false,
159
162
  isEmployee = false,
@@ -267,8 +270,8 @@ const TopBar: React.FunctionComponent<TopBarProps> = ({
267
270
 
268
271
  /** Konto menu (Figma "Kontomenü (geöffnet)", 64243:14205 desktop / 64243:14299 mobile — the same
269
272
  * 312px dropdown at every width): the name, then groups split by lines — Figma's rows for every
270
- * user, Profil, then the role rows (the dealer switch for employees, Bildeinstellungen for
271
- * dealers/admins). Rows Figma doesn't draw use the same style. */
273
+ * user, Profil, then the role rows (Meine Fahrzeuge for every dealer account, the dealer switch
274
+ * for employees, Bildeinstellungen for dealers/admins). Rows Figma doesn't draw use the same style. */
272
275
  const isDealerOrAdmin = isDealerMain || isDealerAdmin;
273
276
  const showDealers = (isDealerMain || isEmployee) && dealers.length > 1;
274
277
  const renderAccountMenu = (): JSX.Element => (
@@ -290,8 +293,10 @@ const TopBar: React.FunctionComponent<TopBarProps> = ({
290
293
  <div className="acct-list">
291
294
  {acctRow('profile', t('autobahn:chrome.acct.profile'), () => goRoute(R_SETTINGS), { icon: 'user' })}
292
295
  </div>
293
- {(showDealers || isDealerOrAdmin) && (
296
+ {(isDealer || showDealers || isDealerOrAdmin) && (
294
297
  <div className="acct-list">
298
+ {isDealer &&
299
+ acctRow('myVehicles', t('autobahn:chrome.myVehicles'), () => goRoute(R_MY_VEHICLES), { lucide: 'car' })}
295
300
  {showDealers && (
296
301
  <>
297
302
  <div className="acct-sub">{t('autobahn:chrome.myDealers')} ({dealers.length})</div>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bytebrand/fe-ui-core-autobahn",
3
- "version": "1.0.171",
3
+ "version": "1.0.172",
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",