# Changelog

All notable changes to this project are documented in this file.

## [1.26.6] - 2026-07-10

### Features
- Import and call `initializeCustomElements` from `@arbocollab/arbo-ui-components` in `main.ts` for custom element registration.
- Exported `initializeCustomElements` in `src/types/arbo-ui-components.d.ts` type declarations.

### Fixes
- Refactored `errorUtilities.ts` to dynamically fetch error messages via the `account.tessr_i18n_file_version_url` cookie instead of importing static `enErrorMessages` from `@arbocollab/arbo-common-utils`.
- Added `getCookie` and `waitForCookie` helpers with retry logic (10 retries, 300ms delay) to safely read the i18n URL cookie.
- Added `fetchEnErrorMessages` to load the remote error message JSON file at runtime.
- Merged local `en.json` locale with remote error messages in `buildMessages`.
- Enabled `formatFallbackMessages: true` in the i18n instance.
- Removed static import of `window.__HOST_VUE__` and `window.__HOST_PINIA__` assignments from `main.ts`.

### Dependencies
- Updated `@arbocollab/arbo-ui-components` to `npm:@arbocollab/arbo-ui-components-beta@0.0.376-alpha.154`.

---

## [1.26.5] - 2026-07-09

### Added
- Added `PeopleTarget` component with error boundary, dynamic CDN loading via `defineAsyncComponent`, and fallback to the local `@arbocollab/arbo-web-target-temp` package.
- Added `people-target` tab (`Gear` icon, tooltip "Target") to `MenuTab` — conditionally shown when the current user is viewing their own profile **and** holds `peopleTile_getMyTargetsUserInterface_read` or `target_getLeaderboardUserInterface_read` permissions.
- Added `isMe` and `hasPermissionMT` computed properties in `MenuTab` for permission-gated tab visibility.
- Exposed `window.__HOST_VUE__` and `window.__HOST_PINIA__` on the global `window` object in `main.ts` to support micro-frontend / remote-module sharing.
- Added `@arbocollab/arbo-web-target-temp` (`0.0.2-alpha.49`) as a dependency for the target micro-frontend.

### Changed
- Registered `people-target` tab in `MainLayout` tab map, wired to the `PeopleTarget` component.
- Updated `SceneTabType` union type to include `'people-target'`.
- Enhanced `UserSwitcher` component with a dynamic profile link.
- Suppressed unnecessary console logs in `getRemoteConfig`.
- Refactored Vite configuration (`vite.config.ts`, `vite.config.lib.js`) for improved build performance and maintainability.
- Adjusted watch handlers and loading state handling with skeleton animation improvements in `MainLayout`.
- Updated `index.html` structure: removed inline `<script src="//unpkg.com/vue">`, cleaned up `app` div formatting, and removed commented-out import-map block.

### Dependencies
- Added `@arbocollab/arbo-web-target-temp`: `0.0.2-alpha.49`.
- Updated `@arbocollab/arbo-ui-components` to `npm:@arbocollab/arbo-ui-components-beta@0.0.376-alpha.123`.
- Updated `@arbocollab/arbo-common-utils` to `npm:@arbocollab/arbo-common-utils@1.0.14`.
- Updated `@arbocollab/arbo-calendar-component` to `0.0.43`.

---

## [1.26.3] - 2026-06-18

### Added
- Added chart hover behavior to show pointer cursor on interactive points.
- Added global `$getUserBasicInfo` registration in layout initialization for shared access.

### Changed
- Updated package version to `1.26.3`.
- Migrated breadcrumb usage from `TessBreadcrumb` to `BasicBreadcrumb` across dashboard and chart comment/rendition areas.
- Updated breadcrumb data mapping (`name/url/isHighlight`) to newer fields (`label/href/isCurrent`).
- Refactored scene card rendering flow in chart list items to align with updated card actions/permissions/status wiring.
- Updated scene card action handlers for assign/unassign/reassign and status updates.
- Reworked header and header skeleton layouts, including:
  - role badges display,
  - timezone/current time display,
  - revised team presentation,
  - updated user switcher behavior and profile management button visibility.
- Updated copy button and indicator wrapper structure/styling in main header modules.
- Adjusted shared styling tokens (including radius and spacing) and multiple layout spacing/size values.

### Dependencies
- Updated `@arbocollab/arbo-ui-components` to `npm:@arbocollab/arbo-ui-components-beta@0.0.376-alpha.114`.
- Updated `@arbocollab/arbo-common-utils` to `npm:@arbocollab/arbo-common-utils@0.0.12-alpha.0`.
- Updated lockfile entries to match new transitive dependency graph.

### Developer Notes
- Type declarations were updated to reflect component API changes (`env.d.ts`, `src/env.d.ts`, `src/types/arbo-ui-components.d.ts`).
