Skip to content

Built-in objects get colours: one palette colour per business family, visible objects only, examples too #36592

Description

@objectstack-fleet

repo:objectstack#1 · os-warren · session_01JQwxbZeHNsF3RWcWpj7rGj

Filing gate ① · Source: maintainer — Warren, project thread of seat repo:objectstack#1, at 01:17Z on 2026-11-23 「现在系统对象icon支持配色,系统的内置对象是不是应该先完整的配上颜色。」, then at 01:18Z 「立卡派」 on the seat's proposal (colour by family, visible objects only, reviewed mapping first).

What

#35985 gave every object a color from the closed palette OBJECT_COLORS (packages/spec/src/data/object-icon.ts: gray, blue, teal, green, amber, orange, red, pink, purple); the console draws the icon as a white glyph on a square of that colour, and an object without color is drawn gray. Measured on main 06c3e5a: no object anywhere declares a color — 118 platform object files carry isSystem: true (59 in packages/platform-objects/src, the rest across plugin-audit, service-messaging, service-automation, plugin-sharing, plugin-approvals, metadata-core, service-mailbox, plugin-security, objectql, service-storage, service-realtime, plugin-webhooks, plugin-auth, metadata-protocol, core, cloud-connection, spec), 105 of them with an icon, 0 with a color; examples/** declare none either. So everything is drawn gray and the capability is unused.

Done when

  1. A family → colour mapping, in the PR body as a table the maintainer reviews before merge: built-in objects grouped by business family (e.g. people & organisation, security & permissions, automation & approvals, messaging & notifications, files & storage, audit & logs, platform metadata), one palette colour per family. Families tell areas apart; no status meaning (the palette deliberately has none).
  2. Only objects a user sees get a colour — those reachable in Setup, record links, menus or search. Internal tables nobody opens stay without color (gray is the designed neutral). The PR body lists which objects were judged internal and why (one line per group, not per object).
  3. Every colour is declared in the object definition (color: beside icon:), one changeset per moved package (patch).
  4. examples/app-showcase, examples/app-crm, examples/app-todo (and any other example app with objects) get colours by the same rule, so the shipped examples teach it.
  5. No spec, schema or palette change.

Out of scope

  • Teaching AI authors to pick a colour in skills/** → follow-up card, filed when this lands.
  • HotCRM (its own repo).

reach: every console user, every built-in object icon (Setup, menus, record chips, related tabs).
Business reason: the maintainer's call that the platform's own objects should show the colour capability before anyone else's.
Dedupe: object color, OBJECT_COLORS, #35985 follow-up → none open.

Activity

  1. added
    priority:p1
    pm:queue
    on Nov 23, 2026
  2. objectstack-fleet commented on Nov 23, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-warren · session_01JQwxbZeHNsF3RWcWpj7rGj

    Ruling-ref: priority:p1 — maintainer Warren, seat repo:objectstack#1 project thread, at 01:18Z on 2026-11-23, verbatim 「立卡派」, answering the seat's 「这张卡定多少级你来定。我这个座位只接 p1,定成 p1 我就直接接。」 — a direct dispatch to this p1-only seat.

  3. objectstack-fleet commented on Nov 23, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-warren · session_01JQwxbZeHNsF3RWcWpj7rGj

    Claim: PM loop round 2 · 2026-11-23T01:21Z
    Session: session_01JQwxbZeHNsF3RWcWpj7rGj
    Thread session: session_01JQwxbWA3fJSgu82hFhuz3A
    Account: os-warren
    Branch: the card thread's own branch, named at its first push; the seat amends this claim then
    Worktree: objectstack-issue-36592
    Domain: none yet (object files across packages/** and examples/**; triage first-touch owed, knocked)
    Seat: repo:objectstack#1
    Area: card thread #36592 (w1-T4)
    Dispatch: the maintainer's direct dispatch — who: Warren; verbatim: 「立卡派」; where: this seat's project thread, at 01:18Z on 2026-11-23 (ruling-ref comment 7089070498)
    File surface: object definition files (*.object.ts and equivalents) under packages/** and examples/**, one patch changeset per moved package (stop on breach; explain in the report)
    Container & model: M, mode:thread, model: opus — dispatch-gates --tier: no path-derived mandate (no spec, skills or ADR path), default tier (family mapping is a design judgement); the thread's first report states the served tier, effort: high
    Clause-②: no
    Metadata-protocol: none
    Responsibility: n/a — not a defect card
    Thread-read: 7089070498
    Premise: holds — on main 06c3e5a no object file under packages/** or examples/** declares a palette color; the thread re-counts before writing
    Serial constraints cleared: no open PR names #36592; object files are touched by many lanes — the thread runs overlap-check.mjs before its push

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

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in domain:server (platform object files across packages/platform-objects, the service and plugin packages, and examples/*; the palette lives in packages/spec/src/data/object-icon.ts) · pm:dispatched to repo:objectstack#1 as claimed; rationale: area:ux · Task · after #35985 no built-in object declares a color, so every system object draws as a grey tile. Give each visible built-in object one palette colour per business family, with the mapping reviewed first; examples are included. Maintainer-dispatched (01:17Z / 01:18Z 「立卡派」) → p1 as set by the maintainer · size M. On request from repo:objectstack#1 (#32588 comment 7089093062).

  6. added
    domain:server
    on Nov 23, 2026
  7. objectstack-fleet commented on Nov 23, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-warren · session_01JQwxbWA3fJSgu82hFhuz3A
    os-dev-report

    {
      "issue": 36592,
      "status": "done",
      "branch": "claude/project-thread-usx6s2",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/36605",
      "session": "session_01JQwxbWA3fJSgu82hFhuz3A",
      "premise_still_valid": true,
      "summary": "67 objects now declare `color` beside `icon` (36 platform objects in 7 business families: people blue, security purple, approvals and work routing orange, messaging pink, integrations teal, reference data green, audit amber; 31 example objects in app-showcase, app-crm, app-todo). Visibility was decided from code: a type object nav entry in Setup or Account (also the whole search scope), a record-page related list, or a Setup component page over one object; 73 platform objects judged internal stay gray, listed per group in the PR body. Premise holds with a corrected count: 0 objects declared a colour, but the card's 118 isSystem files mostly carry the flag on execution contexts; the platform has 108 sys_ objects (105 isSystem). Served tier: claude-opus-5-5, effort high, matching the order. 7 patch changesets (platform-objects, plugin-security, plugin-sharing, plugin-approvals, plugin-audit, plugin-webhooks, service-messaging); no spec, schema, palette, renderer or test change.",
      "tests": "head 85f3b305: typecheck 11/11 packages VERDICT command-exit 0; tests platform-objects 125 files/2126, service-messaging 80/1077, plugin-sharing 77/1626 (+11 skipped), plugin-approvals 127/1865, plugin-webhooks 27/322, plugin-audit 109/1815, plugin-security 287/7238 (+45 skipped), all passed. No ablation: no tested behaviour changed (declarative metadata only). Example app tests declared to CI.",
      "gates": "local: dispatch-gates --commands 70 derived, 68 exit 0, 2 NOT MEASURED exit 3 prerequisite (check-plugin-teardown-shape --self-test: fixture commit outside shallow clone; check:dual-build-cjs-loads: dist of packages outside closure); overlap-check VERDICT clean. CI on 85f3b305: 53 check-runs, 37 success, 16 skipped, 0 failure; required: Lint & Repo Gates success, TypeScript Type Check success, Test Core 11/11 success, Build Core success, Governed Surface Queue Guard success, Live E2E UI success, Test UI success, Dogfood Regression Gate success+skipped (PR speed), Lint UI / Type Check UI / Build & E2E UI skipped (no ui path).",
      "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
      "mcp_calls": "0 GitHub MCP calls",
      "api_writes": "2 relay actions — pr_create (POST /repos/objectstack-ai/objectstack/pulls draft + POST issues/36605/assignees os-warren); os-dev-report comment POST /repos/objectstack-ai/objectstack/issues/36592/comments",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [
        "carrier: none · noted, not filed — examples/app-multi-package objects carry no icon, so no colour was added; create-objectstack blank template blank_note not coloured (not an example app); colour teaching in skills/** is the card's named follow-up"
      ]
    }
  8. objectstack-fleet commented on Nov 23, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-warren · session_01JQwxbZeHNsF3RWcWpj7rGj

    Claim amendment · 2026-11-23T02:47Z — the card thread's branch is named; it completes this card's claim.
    Branch: claude/project-thread-usx6s2
    PR: #36605 (draft, head 85f3b30). Premise holds with a corrected count: 108 sys_* objects, of which 36 are reachable in the console and get a family colour (plus 31 example objects); 73 judged internal stay gray. The family → colour table goes to the maintainer before landing, as the dispatch said.

  9. removed
    pm:dispatched
    on Nov 23, 2026
  10. added a commit that references this issue on Nov 23, 2026
    24ff03c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:uxdomain:serverpriority:p1

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions