The Attribute Owner should display the Account Profile Name

The Attribute Owner should display the Account Profile Name. It is showing the Space Title instead.


Solution

Account-reference attribute chips, including Owner, now display the account profile name and icon rather than the home document's space title. The shared component uses useAccount for account references, with a home-document fallback when the profile has no name. Document references keep their document titles.

Root cause: useHmRefTitle in frontend/packages/ui/src/hm-entity-field.tsx resolved all references through useResource. A bare account URL returns the home document, so its space title appeared instead of the account profile name.

PR: #1507 — Attribute Owner profile name. Fix commit: 6c8ae2507.

Verification reported by T3: The regression test failed twice on unmodified code (2 of 3 tests displayed “Alice's Space”); all 3 pass after the fix. In a local production web build with seeded data, Playwright confirmed the incorrect title on two loads before and “Alice Profile” on two loads after. UI tests: 1,450 passed across 179 files. UI and web typechecks and formatting checks passed.

Limitations: Local agent-ci workflows were not run. Desktop was not visually checked, though it shares the component. Dark mode was not captured because no styles changed. Original screenshots were hosted on the authorized horacioh/seed fork rather than the upstream repository requested by AGENTS.md; all four screenshots are archived below on IPFS.

Before

Unmodified code: the required Owner attribute shows the account's space title “Alice's Space”.

Unmodified code: the required Owner attribute shows the account's space title “Alice's Space”.

Unmodified code: full task page with the Owner chip showing “Alice's Space”.

Unmodified code: full task page with the Owner chip showing “Alice's Space”.

After

With the fix: the Owner chip shows the account profile name “Alice Profile”.

With the fix: the Owner chip shows the account profile name “Alice Profile”.

With the fix: full task page with the Owner chip showing “Alice Profile”.

With the fix: full task page with the Owner chip showing “Alice Profile”.

Do you like what you are reading? Subscribe to receive updates.

Unsubscribe anytime

Comments