{
  "schemaVersion": "tcrn.ai-rule.v1",
  "identity": {
    "packageVersions": {
      "@tcrn/ui-react": "4.2.0",
      "@tcrn/ui-tokens": "4.2.0",
      "@tcrn/ui-copy-state": "4.2.0"
    },
    "standardSource": {
      "projectId": "appgprj_6ad4ec31ec7c8191aa3b577750b37a34",
      "versionNumber": 2,
      "versionId": "appgprj_6ad4ec31ec7c8191aa3b577750b37a34~appgver_d2ede1fba6088191ab19e40407436d67",
      "deploymentId": "appgdep_6af139e94a488191b76843d9bd904deb",
      "deploymentStatus": "succeeded",
      "url": "https://tcrn-ds-visual-standards.zbnubhmldz3270.chatgpt.site",
      "sourceCommit": "e76b7272d98c0359a57c42d49bf70d64e5b4c2ad",
      "originalDocumentSha256": "6c8a9f442a59632744f4af97ae9ae66223197098e3b87f5506381a771211731d"
    },
    "sourceDigest": "d86f56db0567707629efb1caa362915778637129c6160cc4b038d6b5b72adc5c"
  },
  "id": "pattern/customer-list-boundary",
  "kind": "pattern",
  "required": [
    "pattern/product-locales"
  ],
  "optional": [],
  "content": {
    "path": "docs/consumption/patterns/customer-list-support.md",
    "sha256": "f250f7d19a689c5821c389e9bc6cbc00b13033f9096879ce3fdffdbeb56c4116",
    "content": "# Owner-adopted customer-list support contract\n\nOwner adopted the customer table/cards, pagination, five business states,\nconfirmation composition and explicit product Traditional Chinese shell copy in\n`minutes:6f3e0a9a1e07e3980867d82e#D2`. This document is the producer support\ncontract for the existing TMS route\n`/tenant/[tenantId]/talent/[talentId]/customers`; it adds no formal component\nentry. The business mapping input was DS `0a4df27` and TMS `a4030b1`.\nThe package remains a 4.2.0 candidate awaiting formal producer publication;\nOwner adoption does not establish production delivery or real TMS consumption.\n\nThe actual consumer sources are project `project:c496caf54058bdbe17f40ebf`:\n`apps/web/src/platform/routing/{PrivateShell,TalentBusinessShell}.tsx`,\n`apps/web/src/domains/customer-management/screens/CustomerManagementScreen.tsx`,\nand its `TableShell`, `PaginationFooter`, `StateView`, `ConfirmActionDialog`\npatterns. The native route keeps `TalentBusinessAccessGate`. A local DS fixture\ncannot replace these sources or the later real-route business checks.\n\n| Actual use | Existing published support | Minimum addition / boundary |\n| --- | --- | --- |\n| Talent shell and page heading | `ProductShell`, actual `ShellMenu` / `ShellPins` / `ShellDropdown`, required `pageHeader`, published brand and controls | Keep tenant/talent routing, capability filtering, account/profile/security/sign-out callbacks. Capture native link activation before a transient layer is removed; see the navigation document. |\n| Search and activity/membership filters | `SearchInput`, `Select`, or the existing action family with `aria-pressed`; `ButtonGroup` admits two to five direct actions | Preserve URL `search`, `activity`, `membership`, `page`, `pageSize`; a filter resets page to 1. Do not use navigation Tabs for a value choice. |\n| Create affordance | `LinkButton` / published `Button` with a product callback | Keep permission denial and the actual `customers/new` destination. A denied create action remains absent as in the consumer. |\n| Six-column ledger | 07b source `.tbl` / `.st` demonstrates the table and dot-plus-text status grammar | The adopted composition uses a native semantic table on desktop and equivalent narrow cards. Keep customer, profile type, status/language, membership, update/create date and actions in both. It is support for the existing 28-entry catalogue; engineering `TableShell` and `DataGrid` do not become formal entries or approved substitutes. |\n| Pagination and page-size value | Published `Button` and `Select` can supply the controls | Product owns API metadata and truthful start/end/total, disabled previous/next while loading, supported page sizes, URL changes and page reset. Existing engineering `Pagination` is a link cursor with `shown/total`; it does not implement this API contract. |\n| Loading / empty / error / denied / unavailable | Published `Heading`, `Text`, `Icon` and action family can be composed | The adopted composition uses status politeness for loading/empty/unavailable and alert politeness for error/denied, with title/description/action slots and error-title focus. `ui-copy-state` describes governance readiness, not customer API state. Keep the existing business data source. |\n| Confirmation for deactivate / reactivate | Published danger/secondary actions and text; engineering `Dialog` now has tested focus ownership | The adopted confirmation composition keeps cancel-first focus, pending disabling, Escape/backdrop cancellation policy, error display and focus return. The product reads fresh detail/version before deactivate, submits that version, refreshes the existing query and keeps the dialog on a failed action. Reactivate uses its existing endpoint. No fixture may skip these steps. |\n| Summary counts and notices | Typography and source dot-plus-text status grammar | Counts remain scoped to the visible page exactly as the current screen computes them. Do not reinterpret them as tenant-wide totals. Preserve locale number/date formatting and success/error notice content. |\n\nThe adopted visual samples are retained unchanged under the Code execution base,\n`.tcrn-artifacts/initiatives/2026-11-08-ds-production-mvp/s1/package-a/standard-candidates/`:\n`customer-support-desktop.png`, `customer-support-phone.png`,\n`customer-support.html` and `traditional-chinese-copy.json`.\nTheir original candidate labels describe the pre-adoption snapshot; the later\nOwner decision above records adoption. Static sample buttons do not implement\nthe business API or prove focus and confirmation behavior.\n\nThe existing AI `pattern/customer-list-boundary` shard reads this file directly;\n`pattern/product-locales` is a required dependency and reads the locale contract\nlinked below. Keep those\nrules and the shared executable examples on the same producer build. Do not\ncreate another standard board or a separate copy of this contract. The real TMS\nroute may consume the adopted support only after the matching formal producer\npublication and the existing integration checks.\n\n## Six product locales and five DS locales\n\nThe actual product locale set is declared in TMS\n`packages/shared/src/constants/locale.ts`. Existing DS built-ins resolve exact\n`TcrnLocale` values and otherwise return English; they do not recognize TMS's\nunderscore identifiers. Passing a TMS code directly to `ProductShell` is\nincorrect.\n\n| TMS locale | DS built-in locale | Product locale kept by TMS |\n| --- | --- | --- |\n| `en` | `en` | `en` |\n| `zh_HANS` | `zh-CN` | `zh_HANS` |\n| `ja` | `ja` | `ja` |\n| `ko` | `ko` | `ko` |\n| `fr` | `fr` | `fr` |\n| `zh_HANT` | No complete built-in mapping | `zh_HANT` must remain available; no implicit English or Simplified Chinese substitution |\n\nThe local producer candidate now implements complete explicit product locale\ncopy through `ProductShellLocaleDefinition`, the generic controller and the actual\nnested shell family. See [the product locale contract](product-shell-locales.md).\nAn explicit catalogue keeps `zh_HANT` as its real product identity and supplies\ncomplete product-owned copy; it does not create a sixth built-in DS locale.\n\nThe explicit Traditional Chinese shell wording in the retained sample is also\nOwner-adopted under the same D2. B can exercise the actual candidate API. E still\nrequires matching formal producer delivery and real TMS integration checks before\nclaiming the migration complete; the adopted support does not create a sixth\nbuilt-in DS locale.\n"
  }
}
