Skip to content

Lead and case detail pages: show the sections a user is expected to fill even while empty (hideEmpty: false), the way #1211 did for the opportunity page #2003

Description

@objectstack-fleet

Filing gate: ③ a task the maintainer ordered directly. It was item 2 of the decision batch the repo:hotcrm seat presented in its chat (session_01ER8ntXZhYebyQ66aXWdjfT). The maintainer agreed on 2026-10-03 at about 23:0xZ, verbatim: 「决裁的三张同意」. That ruled option A, as recommended.

Who acts on it: the repo:hotcrm seat dispatches one dev.

The problem, as measured

On freshly created records under @objectstack/* 17.6.0, the platform default (objectui#8603 ruling A) hides every all-empty section:

  • Lead: 5 of 10 groups vanish: contact_info, assignment, address, duplicates, additional.
  • Case: 3 of 6 groups vanish: origin, sla, resolution.

A rep or agent opening a new record cannot see what is still to be filled. The opportunity page already shows its expected-to-fill sections empty (#1211, PR #1991). The lead and case pages do not, so the three detail pages behave inconsistently.

The ruling's shape (option A)

  • hideEmpty: false only on the group sections a user is expected to fill.
  • Derived and system sections stay hidden while empty.
  • Each choice is justified in the PR against a before/after browser table.

Initial reading, to be confirmed by measurement and not taken as decided:

  • Lead: contact_info, assignment and address shown; duplicates and additional left hidden.
  • Case: origin and sla shown; resolution left hidden on a new case.

Done when

  • src/sales/pages/lead_detail.page.ts and src/service/pages/case_detail.page.ts carry the justified keys.
  • A browser before/after table exists for a fresh lead and a fresh case.
  • pnpm verify is green.
  • There is a patch changeset.

Duplicate check

All hotcrm issues, open and closed (748, 19 REST pages). The PR #1991 / #1211 thread is the only prior work, and it covered the opportunity page alone. The seat's earlier grep of AGENTS.md and the ADRs for hideEmpty|empty section|vanish returned 0 hits.


Generated by Claude Code

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions