You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Two installed packages may legitimately ship the same bare name (e.g. a `page`
named `home`); the install-time namespace gate keeps their namespaces distinct
and resolution disambiguates by container. Add `preferLocal(list, name,
ownerPackageId)`: prefer the item whose `_packageId` matches the active app's
package, falling back to the first name match (preserving prior behaviour when
the owner is unknown — runtime/DB apps with no `_packageId`).
Wire it at the bare-name resolution sites: PageView, DashboardView, ReportView
(rendered defs) and AppHeader (breadcrumb labels). The active app is read from
`useExpressionContext().app` / AppHeader's `currentApp`. v1 = namespace as the
route key (`/apps/crm`), so URLs are unchanged.
Test: utils/__tests__/preferLocal.test.ts (6). app-shell views/utils/layout
suites green (308).
Co-authored-by: Jack Zhuang <277994282+os-zhuang@users.noreply.github.com>
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
0 commit comments