Skip to content

Commit 8ca1f9f

Browse files
Copilothotlong
andauthored
docs: add CHANGELOG entry for ObjectView test fix
Agent-Logs-Url: https://github.com/objectstack-ai/objectui/sessions/fc9e2062-c221-4bae-b420-24bd025b2618 Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
1 parent 9470bb6 commit 8ca1f9f

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,24 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
### Fixed
11+
12+
- **CI: `apps/console` ObjectView test failures.** The `vi.mock('@object-ui/i18n', ...)`
13+
block in `apps/console/dev/__tests__/ObjectView.test.tsx` was returning bare
14+
functions for `useObjectTranslation` / `useObjectLabel`, but the real hooks
15+
return objects with `{ t, ... }` and `{ objectLabel, objectDescription, ... }`
16+
`ObjectView` therefore crashed on `objectLabel is not a function`. The
17+
mocks have been rewritten to mirror the real shape, the broken
18+
`useNavigationOverlay` stub has been dropped (the real hook drives the
19+
drawer/modal/split/popover state machine and the page-mode `onNavigate`),
20+
the smart `dataSource.find('sys_view', …)` mock now seeds sys_view-backed
21+
views so the chevron config menu renders, and the dependent tests have been
22+
converted to `async` + `findByTestId` to wait for the async fetch.
23+
- **`@object-ui/app-shell` CreateViewDialog churn.** `existingSet` is now
24+
memoised on the joined string key of `existingLabels` rather than the raw
25+
array reference, preventing the name-suggest `useEffect` from re-firing on
26+
every parent render when callers pass an inline `views.map(v => v.label)`.
27+
1028
## [4.0.0] - 2026-05-07
1129

1230
### Added

0 commit comments

Comments
 (0)