Commits
Marek Vsechovsky committed e298405ce5b
Session 195, Step 3: Policy editor and release controls
- AIM-3687 Policy editor and release controls
- AIM-3688 Policy version selection and comparison
- AIM-3699 The Affiliate Terms & Conditions policy
- AIM-3700 The Affiliate Guide
- AIM-3701 Style tables in policy documents
Outcome:
Fixed the four test-feedback issues on the dynamic policy widget and styled the policy document tables.
- `AIM-3687`: the policy editor textarea now stays exactly the preview pane's height (opted out of the `custom.js` autoGrow via `resize:none; max-height:100%`) and shows the Wf S2 accent focus border instead of the white highlight.
- `AIM-3688`: the version comparison panes render in a monospace font.
- `AIM-3699`: the Affiliate Terms slugs (`{{_AffiliateSharePercent}}`, `{{_AffiliateMinWithdrawalMonthly}}`, `{{_AffiliateMinWidthdrawalQuarterly}}`) resolve again — script 280 normalises the stray `affiliate-public` SettingSubKey and bakes the legacy placeholders into the stored versions.
- `AIM-3700`: the editor preview shares the document typography with `#policyDocument-X`, and the Guide withdrawal slugs resolve to the configured values again through the same settings fix.
- Issue -4350: policy document tables are full width with differentiated headers, subtle cell borders and right-aligned numeric/currency columns.
Validated with the AffiliateTermsSmoke suite (59 node tests pass), the project build, SCSS compilation and browser verification of the editor, comparison and table rendering; the migration script was applied to the dev database.