Commits
Marek Vsechovsky committed 368bebea491
Session 195, Step 2: Dynamic policy documents and history - AIM-3685 Dynamic policy documents and history - AIM-3686 Policy storage and migration - AIM-3687 Policy editor and release controls - AIM-3698 Include affiliate policies - AIM-3699 The Affiliate Terms & Conditions policy - AIM-3700 The Affiliate Guide Outcome: Included both affiliate policy documents in the shared policy widget and fixed the reported policy UI/storage gaps. - `AIM-3685`: the version dropdown, its label and the Edit button are now styled with the shared Aisman controls and readable on the dark background. - `AIM-3686`: the live `Policy` table contents were loaded and converted to Markdown; `278_PolicyDocumentsToMarkdown.sql` stores them idempotently and the client keeps rendering Markdown with variable substitution. - `AIM-3687`: the edit overlay matches the Wf S2 side-by-side editor — subtle borders, styled scrollbars, equal full-height columns, right-aligned release options and swapped/styled Save & Cancel, Aisman radios/checkbox and a styled date picker. - Issue -4348: the Affiliate Terms & Conditions tab now uses `_PolicyDocument.cshtml` with the same compare/edit abilities, incl. release-job publication and review-visible upcoming versions. - Issue -4349: the Affiliate Guide is a Markdown `Policy` record (type 6) with dynamic setting slugs resolved through the new `AffiliateGuideVariables` service and displayed via the shared partial with version selection, comparison and editing. Validated with the AffiliateTermsSmoke suite (incl. PolicyDocumentsTests), the build and SCSS compilation; SQL integration tests were skipped because `AISMAN_POLICY_TEST_SQL` is not configured.