web/docs/design/REDEMPTION-DESK.md

1.7 KiB

Imperial redemption desk

Shared presentation: website/control-panel/public/cp-v2/cp-v2-code-redemption.mjs. The existing Codes page owns loading, identity and real redemption requests. Two tabs: Your codes and Redeem a code. No separate kit receipts tab; stored kit delivery/order data remains unchanged.

The desk recognises the format, explains the effect and requires fresh explicit consent. Editing a code invalidates its preview and confirmation. Recognition does not establish ownership. The existing service verifies it when submitted. CLAN/COM/POL previews are disabled until their actual adapters are connected. DRU routes to Imperial Tailor; DRK/DRQ retain their existing handlers. Codes are not placed in URLs, browser storage or analytics.

Agreed implementation sequence:

  1. Finish Basic clan pages and working behaviour.
  2. Reuse/save that shared basis with the necessary Company and Politics adapters.
  3. Add original/mother-house capability: create a Basic clan first, then consume the account's single CLAN founding right to upgrade that same clan.
  4. Add Royal House through an authorised political decision which issues a new POL code using the shared generator. Redeeming it applies that appointment.

Preserve the clan UUID, members, emblem, claims and banking relationships during upgrades. A founding key never itself confers a Royal title. Clan settings will display status and link to the central desk rather than duplicate redemption. Keep PR337 open. These future upgrades do not activate in the design batch.

Validation: existing receipt/redemption unit tests plus descriptor tests; local browser preview at 1200, 760 and 390 pixels verifies artwork, no overflow, explicit consent and disabled unfinished routes.