Skip to content

Initials: four more copies outside the people cell still draw punctuation for names like "Alice (Sales)" (kanban owner, history timeline, user menu, presence stack) #36346

Closed

Description

@objectstack-fleet

repo:objectstack#4 · os-project-manager · session_01FEkQ5oY5WCqqqBMtn9qt7m

What happens

A user whose display name contains a bracket or other punctuation (e.g. Alice (Sales)) gets initials such as A( on four faces. PR #36324 (#36046) fixes the people cell and the avatar widget by moving them onto @object-ui/fields getPersonInitials (letters only). Four naive copies remain (read from source on that PR's branch; not driven in a browser):

  • ui/packages/plugin-kanban/src/KanbanCardOwner.ts ownerInitials (kanban card owner)
  • ui/packages/plugin-detail/src/HistoryTimeline.tsx initialsFromName (history timeline)
  • ui/packages/auth/src/types.ts getUserInitials (user menu)
  • ui/packages/collaboration/src/PresenceAvatars.tsx (presence stack)

Done when

  • Each face draws letters-only initials by the same rule as getPersonInitials: call it where the package may depend on @object-ui/fields; where it may not, say which shared home the rule moves to (one rule, not a fifth copy).
  • One family pin across the faces with an Alice (Sales) name, with an ablation.

Blocked by nothing; best picked up after PR #36324 lands (it is where getPersonInitials becomes letters-only).

Activity

  1. added
    bug
    pm:queue
    domain:ui
    on Nov 22, 2026
  2. objectstack-fleet commented on Nov 22, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in domain:ui (kanban owner, history timeline, user menu and one more copy of initials) · pm:queue; rationale: area:ux · Bug · four naive copies of the initials helper still draw punctuation for names like 「Alice (Sales)」 (A(). PR #36324 fixes only the people cell and avatar. UX has no p3 → p2 (was p3) · size XS.

  3. added
    priority:p2
    and removed on Nov 22, 2026
  4. objectstack-fleet commented on Nov 22, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#7 · zhuangjianguo · session_01QsR2jUc3qp6bHKSWijbjds

    Claim: PM loop · area f7-list
    Session: session_01QsR2jUc3qp6bHKSWijbjds
    Account: zhuangjianguo
    Branch: claude/issue-36346-initials-copies
    Worktree: objectstack-issue-36346
    Domain: domain:ui
    Seat: repo:objectstack#7
    Area: f7-list
    File surface: objectstack ui/** only — ui/packages/plugin-kanban/src/KanbanCardOwner.ts, ui/packages/plugin-detail/src/HistoryTimeline.tsx, ui/packages/auth/src/types.ts, ui/packages/collaboration/src/PresenceAvatars.tsx, the shared initials rule's home if a package may not depend on @object-ui/fields, one family pin, a changeset (stop on breach; explain in the report)
    Container & model: S, mode:subagent, model: opus (default tier; dispatch-gates --tier: no path-derived mandate on ui/**), effort: medium
    Clause-②: no (to be measured on the built declarations if a shared helper moves to a new package export; amended then)
    Metadata-protocol: none
    Responsibility: objectstack ui/packages four initials copies | @object-ui/fields getPersonInitials (letters only, since PR #36324, merged) | users whose display name carries punctuation (e.g. Alice (Sales)) on the kanban owner, history timeline, user menu and presence stack
    Thread-read: 7075549878
    Premise: holds by source reading on #36324's branch; the dev re-reads on origin/main.
    Pre-claim lane: repo:objectstack seat 7 area f7-list (rider of #36046).
    Pre-claim deps: PR #36324 merged 2026-11-22T08:46Z.
    Prior rulings read: card thread → triage only (7075549878); no ruling comment.
    Fold-or-serial: not folded (#36004 is a different defect in GridField); overlap-check before each push.
    Serial constraints cleared: none on these four files at origin/main

  5. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 22, 2026
  6. objectstack-fleet commented on Nov 22, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#7 · zhuangjianguo · session_01QsR2jUc3qp6bHKSWijbjds
    os-dev-report

    {
      "issue": 36346,
      "status": "done",
      "branch": "claude/issue-36346-initials-copies",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/36484",
      "session": "session_01QsR2jUc3qp6bHKSWijbjds",
      "premise_still_valid": true,
      "summary": "All four naive copies were present on origin/main 285ad8d7 as the card says. getPersonInitials (body byte-identical) moved from @object-ui/fields widgets/personDisplay.ts to a new @object-ui/types module person-initials.ts, exported from the types barrel; fields re-exports the same function, so its export is unchanged. Reason for the home: @object-ui/auth declares no @object-ui dependency (only @objectstack/spec + better-auth), and fields pulls in components/core/react/react-runtime/mobile/permissions/markdown, so auth -> fields inverts the tier order; types has no @object-ui dependency, collaboration and fields already depend on it, and it is the precedent home of the http-retry and in-flight-GET helpers for the same reason. Kanban (ownerInitials becomes a re-export of getPersonInitials from @object-ui/fields; KanbanImpl.tsx left untouched to avoid a textual conflict with open PR #36411) and history timeline (fields peer) call it through fields; user menu getUserInitials (email fallback kept; @object-ui/auth gains the @object-ui/types dependency, lockfile updated) and presence stack call it through types. Side effect of one rule on the user menu: 'Admin' -> 'AD' (was 'A'), 'John Michael Doe' -> 'JD' (was 'JM'); the two auth unit tests were updated.",
      "tests": "Final head 998bb5fdd1 (after origin/main merge), under os-verify-lock: `pnpm --dir ui exec vitest run --maxWorkers=2 --reporter=verbose packages/app-shell/src/__tests__/personInitialsFamily-36346.test.tsx packages/plugin-kanban/ packages/auth/ packages/collaboration/ packages/plugin-detail/src/__tests__/HistoryTimeline.test.tsx packages/plugin-detail/src/__tests__/HistoryTimeline.actionLabel-28894.test.tsx packages/fields/src/widgets/personDisplay.test.ts` -> Test Files 140 passed (140), Tests 1148 passed (1148), VERDICT command-exit 0, all 4 family-pin cases listed passed. Earlier on 96825e61: auth/collaboration/plugin-detail/fields widgets/types tests + pin -> Test Files 1005 passed | 1 skipped, Tests 16417 passed | 18 skipped, VERDICT command-exit 0. `pnpm --dir ui exec vitest run --maxWorkers=2 scripts/` -> 172 passed | 2 skipped, exit 0. type-check after `pnpm turbo run build --concurrency=2 --filter='@object-ui/plugin-kanban^...'` (53/53 tasks): types, fields, auth, collaboration, plugin-detail, plugin-kanban `run type-check` each echoed, VERDICT command-exit 0; app-shell type-check declared to CI (Type Check UI). Ablation (fix committed first, via scripts/ablation-replace.mjs; no dist in the path, @object-ui/* alias to src in ui/vitest.config.mts): the rule's first line replaced with the old naive split; anchor x1->x0, marker x0->x1, blob 0eb3e2f40c06->72b58dc1b626; family pin 4 failed of 4 (three faces drew 'A(' for expected 'AS', getUserInitials returned 'A('); restore: blob == HEAD 0eb3e2f40c06, git diff HEAD empty, marker count 0. Clause-2 measured on built declarations: after `pnpm --filter @object-ui/types build`, dist/index.d.ts carries `export { getPersonInitials } from './person-initials.js'`; `git grep getPersonInitials origin/main -- ui/packages/types/src` exit 1, control `git grep sharedGetJson origin/main -- ui/packages/types/src/index.ts` exit 0.",
      "gates": "Local: `node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack` on tree 998bb5fdd derived 60 families; each run with exit captured before any pipe: 58 exit 0, `pnpm --dir ui exec vitest run scripts/` exit 0, `pnpm check:dual-build-cjs-loads` exit 3 = NOT MEASURED, reason: PREREQUISITE NOT MET (no dist for 35 packages; needs full pnpm build). `--ran` -> 'dispatch-gates --ran: 60 derived famil(ies) accounted for - 59 run, 1 NOT-MEASURED (1 DERIVED from a recorded exit 3).' `node scripts/check-platform-checklist.mjs --changed-from origin/main` exit 0 (0 anchored files). overlap-check: VERDICT clean exit 0 on 998bb5fd (first run on 4c678136 found a textual conflict with #36411 in KanbanImpl.tsx; fixed by leaving that file untouched). CI on head 998bb5fd at report time: 5 completed (skipped: 18.x upgrade harness, Borrowed queue verdict, Packed-tarball smoke, Queue verdict, Schedule gate), 18 in_progress (Check Changeset, Check PR Size, Governed Surface Queue Guard, Lint jobs, Type Check jobs, Validate Package Dependencies, filter, PR-body guards); UI jobs not yet listed. in_progress, not a pass.",
      "dogfood_battery": "n/a - no `!` in the PR title and no (narrowing) arm",
      "mcp_calls": "0",
      "api_writes": "2 - fleet-write relay: pr_create (POST /repos/objectstack-ai/objectstack/pulls draft + POST /issues/36484/assignees [zhuangjianguo]); post-stamped os-dev-report comment (POST /repos/objectstack-ai/objectstack/issues/36346/comments). git push x5 to the branch (not REST).",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [],
      "line_budget": "n/a - no skills/** or ratcheted ledger touched; diff vs origin/main 12 files (+~200/-75 incl. lockfile 3 lines)",
      "deviations": "1) Claim said `Clause-2: no` (to be measured); measured on built declarations as a new public export of @object-ui/types, so PR and changeset declare `Clause-2: yes (widening)`. 2) File surface beyond the claim's named files: ui/packages/auth/package.json + pnpm-lock.yaml (the new @object-ui/types dependency the shared home needs), ui/packages/fields/src/widgets/personDisplay.ts (re-export), ui/packages/types/src/index.ts + person-initials.ts (the home), ui/packages/auth/src/__tests__/types.test.ts (two expectations the shared rule changes). KanbanImpl.tsx deliberately not edited. 3) Commit trailers use AGENTS.md's model-free pair (Co-authored-by: Claude) rather than the harness's model-named line; PR footer uses AGENTS.md's session-URL form. 4) test:repo not run locally (not derived; CI).",
      "files_changed": [
        ".changeset/36346-initials-one-rule.md",
        "pnpm-lock.yaml",
        "ui/packages/app-shell/src/__tests__/personInitialsFamily-36346.test.tsx",
        "ui/packages/auth/package.json",
        "ui/packages/auth/src/__tests__/types.test.ts",
        "ui/packages/auth/src/types.ts",
        "ui/packages/collaboration/src/PresenceAvatars.tsx",
        "ui/packages/fields/src/widgets/personDisplay.ts",
        "ui/packages/plugin-detail/src/HistoryTimeline.tsx",
        "ui/packages/plugin-kanban/src/KanbanCardOwner.ts",
        "ui/packages/types/src/index.ts",
        "ui/packages/types/src/person-initials.ts"
      ]
    }
  7. objectstack-fleet commented on Nov 22, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#7 · zhuangjianguo · session_01QsR2jUc3qp6bHKSWijbjds

    Claim amendment: PM loop · area f7-list · 2026-11-22T13:59Z (amends claim 7078768314)
    File surface: as the claim. The shared rule's home is ui/packages/types/src/person-initials.ts plus its barrel line in ui/packages/types/src/index.ts. @object-ui/auth cannot depend on @object-ui/fields without inverting the tier order. Also touched: ui/packages/fields/src/widgets/personDisplay.ts (re-export, body unchanged), ui/packages/auth/package.json + pnpm-lock.yaml (new @object-ui/types dependency), ui/packages/auth/src/__tests__/types.test.ts (two expected values the shared rule changes: 'Admin' → 'AD', 'John Michael Doe' → 'JD'). KanbanImpl.tsx was left alone so it does not conflict with #36411. PR #36484 @ 998bb5fdd189bd86825c958cdef4b6659b7a025e, 12 files, +197 / -72.
    Clause-②: yes (widening) — measured on the built declarations: @object-ui/types dist/index.d.ts gains export { getPersonInitials } from './person-initials.js', absent on main.
    Metadata-protocol: none

  8. added a commit that references this issue on Nov 23, 2026
    f2ef7d8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:uxbugdomain:uipm:dispatchedpriority:p2

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions