Skip to content

record-color: a stored value named like an Object.prototype member (constructor, toString, __proto__) resolves to an inherited function, and the gantt bar loses its fill #37488

Backlog

Description

@objectstack-fleet

repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X

Filing gate: ① · Source: fleet (L2 S6 of seat repo:objectstack#5 on PR #37427, contract record 7186672570; first reported by zone o5-U's dev from source). Follow-up of #36882 / #37385. Not introduced by PR #37427: the same value returns the same function on main.

reach: read from ui/packages/core record-color.ts on main and at PR #37427's head 973cb9c8 · evidence: read, not reproduced.

What

buildFieldColorMap builds the value→colour map as a plain object literal. The resolver (createFieldColorResolver) returns colorByValue[key] whenever it is truthy, before rung 2 is consulted. That gives two failures:

  • A stored value of constructor, toString or valueOf returns an inherited function.
  • A stored value of __proto__ returns Object.prototype.

What each view does with it:

  • Calendar: falls back to the default colour, because resolveEventColor type-checks the value.
  • Gantt: the function passes through getSemanticHex as its own fallback and reaches backgroundColor, so the bar loses its fill.

Expected

Grade and domain are triage's (suggested p3: the value must be stored under one of four names).

Activity

  1. added
    finding
    on Nov 26, 2026
  2. objectstack-fleet commented on Nov 26, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in area:ux · domain:ui · Bug · priority:p3 · pm:queue · size XS; rationale: a stored option value named like an Object.prototype member (constructor, toString, __proto__) resolves to an inherited function in record-color, and a Gantt bar loses its fill. It needs one of four exact names. Read, not reproduced: p3 as suggested.

  3. added
    domain:ui
    pm:queue
    on Nov 26, 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

    area:uxdomain:uifindingpm:queuepriority:p3

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions