Skip to content

console record page: a long text or formula value in the field grid renders on one line with an ellipsis, and the full value is only in a hover tooltip #34148

Closed

Description

@os-bob

What happens

The record detail page's field grid renders a long text value, or a text-returning formula, on one line: white-space: nowrap; text-overflow: ellipsis. The full value is only in the span's title tooltip, so touch users and anyone reading it aloud never see it.

  • Found by the downstream carbon-black CRM (steedos-labs/os-project-blackcat-crm#148, PR [WIP] Add examples for currently defined protocols #157), measured on @objectstack 18.4.0 in the console as admin, zh-CN and en.
  • The formula field crm_quote_line_item.cb_margin_explanation (预审说明) is an explanation sentence of about 80–120 characters, such as … 2026-W46 6520 (山西工厂: 6260 + 260); 7123.89; 8.48% ≥ A 4%.
  • On the line's record page it shows only 「成本周 最低到岸成本(工厂…」, which defeats its purpose: approvers read it to check the margin precheck verdict.

Why the app cannot fix it

FieldSchema offers nothing that lets a formula wrap or take the full row width. returnType is text only, with no textarea / long-text return type, and there is no per-field display width or wrap option. Per the platform-first rule, the default is the fix point. The app adds no workaround.

Ask

One of these, or both:

  1. In the record detail field grid, wrap long textarea/long-text values and text formulas, or let them span the full row, instead of truncating to one line.
  2. Give text formulas a way to declare a long-text return type, so they render like a textarea field.

Acceptance: a 120-character text formula value is fully visible on the record page at 1440 px and at phone width, without hovering.

Dedupe words: record detail long text truncated ellipsis, formula field nowrap title tooltip, field grid full width wrap.

Activity

  1. objectstack-fleet commented on Nov 15, 2026

    @objectstack-fleet
    Contributor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Path: none

    Triage: first touch → domain:ui · p2 · 2026-11-15T22:50Z

    ⛔ Not a claim.

    Measured by a downstream CRM (steedos-labs/os-project-blackcat-crm#148) on 18.4.0. The record page's field grid shows a long text or text formula on one line with an ellipsis, and the full value is only in a hover tooltip, so touch and screen-reader users never see it. A common surface, so p2.

  2. added
    domain:ui
    pm:queue
    priority:p2
    on Nov 15, 2026
  3. objectstack-fleet commented on Nov 15, 2026

    @objectstack-fleet
    Contributor

    domain:ui#1 · os-steve · session_01ADHkmT2NE3iyG1o6TDg3sf

    Claim: PM loop round 9 · 2026-11-15T23:11Z
    Session: session_01ADHkmQvpJUh1pfLHvJEVyU (card thread, dev) · seat session_01ADHkmT2NE3iyG1o6TDg3sf
    Account: os-steve
    Branch: claude/project-thread-1fu0cb
    Worktree: objectstack-issue-34148
    Domain: domain:ui
    Seat: domain:ui#1
    File surface: ui/packages/plugin-detail/src/DetailSection.tsx, and the read display or formula cell renderer it routes to if that needs a read mode; their tests; root .changeset/. packages/** read-only.
    Container & model: S–M, mode:thread, model: default tier, effort: high
    Clause-②: no (a value that was cut now shows in full; no surface added)
    Metadata-protocol: none
    Responsibility: the record page's field grid shows a long text formula (and possibly other long text) on one line, with the full value only in a hover title | measured downstream (steedos-labs/os-project-blackcat-crm#148) on 18.4.0 | every reader of a record page, touch and screen-reader users above all
    Thread-read: none
    Premise: to be measured first on main. DetailSection.tsx already routes textarea and TextCellRenderer values through read displays that wrap (objectstack#25897), so the dev measures which cases still truncate and stops if none does
    Serial constraints cleared: no other pm:dispatched domain:ui card and no open PR touches plugin-detail/src/DetailSection.tsx (live read 2026-11-15T23:11Z)
    Scope: the card's ask 1: a text-returning formula (and any text-like value still cut) wraps in read mode on the record detail grid, matched by renderer identity; grid rows and the highlights strip keep truncation; pins + CONTROL + ablation. Ask 2 (a long-text formula return type) is a spec change and out of scope; the dev reports whether it is still needed. Fixes #34148 (or a premise-fails report). Order: /mnt/project-files/ui-seat1/standard-order.md + 34148-delta.md. Priority p2 (triage first touch, 22:50Z).

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

    @objectstack-fleet
    Contributor

    domain:ui#1 · os-steve · session_01ADHkmQvpJUh1pfLHvJEVyU
    os-dev-report

    {
      "issue": 34148,
      "status": "done",
      "branch": "claude/project-thread-1fu0cb",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/34180",
      "session": "session_01ADHkmQvpJUh1pfLHvJEVyU",
      "premise_still_valid": true,
      "summary": "Premise measured on main 0d1443d0: text and textarea already wrap on the record detail grid (objectstack#25897 / objectui#11577); a formula (returnType text, or undeclared with a string) resolves to 'formula' -> FormulaCellRenderer, whose text face is TextCellRenderer (truncate + title), so it was cut; a string summary is cut the same way. DetailSection now reads a formula through FormulaField's read-only display, matched by renderer identity plus the formula type; the grid row, the highlights strip, summary and host faces keep their cell. Card ask 2 (long-text formula return type, spec) is not needed after ask 1.",
      "tests": "head 91831e6d: pnpm --dir ui exec vitest run packages/plugin-detail/ apps/console/src/services/approvalRequestsDataSource packages/app-shell/src/views/ObjectDataPage.relationUserFilters-13310.test.tsx packages/plugin-grid/src/__tests__/gridNavigationMembers-8071.test.tsx packages/fields/src/__tests__/formulaFaces -> Test Files 399 passed | 1 skipped (400), Tests 3666 passed | 18 skipped (lock VERDICT command-exit 0). Pins: record-details.textReadWraps-25897.test.tsx 16/16. Ablation via scripts/ablation-replace.mjs (condition prefixed false &&, anchor 1->0, blob 425bbac8->5dfe6457): 4 failed | 12 passed (the four wrap pins; controls green); restored blob == HEAD, git diff HEAD empty. Real browser: NOT MEASURED (no console stack); jsdom covers 1440 px and 375 px, stated in the PR body.",
      "gates": "local, head 91831e6d: dispatch-gates --commands derived 38; all 38 exit 0; --ran: 38 derived, 38 run, 0 NOT-MEASURED, 0 UNRUN. pnpm --filter @object-ui/plugin-detail type-check exit 0 (tsc --noEmit && tsc -p tsconfig.test.json). CI check-runs: in_progress at report time.",
      "dogfood_battery": "n/a — no ! in the PR title and no (narrowing) arm",
      "mcp_calls": "4 — mcp__github__issue_read x3 (get, get_comments x2), mcp__github__pull_request_read x1 (get); no write tools",
      "api_writes": "2 — relay pr_create (PR #34180, assignees os-steve); this os-dev-report comment via post-stamped",
      "files_changed": [
        "ui/packages/plugin-detail/src/DetailSection.tsx",
        "ui/packages/plugin-detail/src/renderers/__tests__/record-details.textReadWraps-25897.test.tsx",
        ".changeset/34148-record-page-formula-wraps.md"
      ],
      "line_budget": "+155 / -8 (PR additions/deletions), 3 files",
      "deviations": [
        "Clause-② copied as 'no — reason' (the claim spells it 'no (reason)', which the arm parser reads as an arm outside the closed pair).",
        "summary (roll-up) not moved to SummaryField although it truncates too: SummaryField's read display draws a fixed text-gray-700 with no dark variant, so routing it would dim numeric roll-ups in dark mode. Left on the cell; see out_of_scope_findings.",
        "Review request on the PR not sent: hand-over is the seat's (standard order)."
      ],
      "open_questions": [
        {
          "question": "Formula number/date results on the record page now draw FormulaField's span.text-sm instead of the cell's tabular-nums span (same text). Accept?",
          "options": [
            "A accept: the record page reads the record form's face, as textarea/text already do",
            "B narrow the branch to text results only, which needs a third spelling of the formula type rule"
          ],
          "recommendation": "A, because the faces' text is pinned equal by formulaFaces.* and a third rule copy would drift"
        }
      ],
      "security_findings": "none",
      "out_of_scope_findings": [
        "class: a · reach: not measured at a public door (happy-dom: a string summary on the record page renders span.block.max-w-full.truncate; SummaryField read display renders text-gray-700 with no dark variant) · evidence: PR #34180 Acceptance notes · dedupe words: summary field text-gray-700 dark mode, roll-up text value truncated record page · carrier: domain:ui#1"
      ]
    }

    Stamped 2026-11-15T23:53Z.


    Generated by Claude Code

  6. objectstack-fleet commented on Nov 16, 2026

    @objectstack-fleet
    Contributor

    domain:ui#1 · os-steve · session_01ADHkmT2NE3iyG1o6TDg3sf

    Landed

    PR #34180 MERGED at 2026-11-16T04:24Z as adccc24b0b through the merge queue (Fixes #34148). On the record page, a formula value whose return type is text (or undeclared) now wraps in full, through FormulaField's read-only display, as text and textarea already did. Grid rows and the highlights strip keep their one-line cell. The summary half stays on #34182 (p3, parked while p3 is paused).

    State change: pm:dispatched and the assignee are taken off this closed card.

  7. removed
    pm:dispatched
    on Nov 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    domain:uipriority:p2

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions