Commits
Marek Vsechovsky committed a40e1812b7e
Session 99, Step 9: Place payout request button below empty state - AIM-3602 Place payout request button below empty state - AIM-3603 User date and time format settings - AIM-3604 Affiliate pricing discount toggle - AIM-3605 Affiliate nickname and certification token registration - AIM-3606 Discount code first-use onboarding - AIM-3607 General behavioural changes - AIM-3608 New "Requests" tab - AIM-3609 Commissions holding period - AIM-3610 Emailing affiliates before terms change - AIM-3611 Other - AIM-3612 Updating the "Terms & Conditions" tab and a new "Guide" tab - AIM-3613 Aisman Affiliate Program Terms and Conditions - AIM-3614 Aisman Affiliate Program Guide - AIM-3615 2.1 Affiliate account status - AIM-3616 2.2 Certification and commission are separate - AIM-3617 2.3 Configurable values - AIM-3618 3.1 Standard registration - AIM-3619 3.2 Registration with an override token - AIM-3620 4.1 What counts as a qualifying purchase - AIM-3621 4.2 Independent holding periods - AIM-3622 4.3 Qualification processing - AIM-3623 4.4 Refunds and chargebacks - AIM-3624 5.1 Affiliate-facing request - AIM-3625 5.2 Request eligibility and duplicate prevention - AIM-3626 5.3 Request statuses - AIM-3627 5.4 Administrator review - AIM-3628 5.5 Approval of an existing Affiliate - AIM-3629 5.6 Approval for a prospective person who has not registered - AIM-3630 5.7 Rejection - AIM-3631 5.8 Audit requirements - AIM-3632 6.1 Definition of a New customer - AIM-3633 6.2 Attribution - AIM-3634 6.3 Certified Affiliate checkout - AIM-3635 6.4 Pending Affiliate checkout - AIM-3636 6.5 Affiliate's own purchases - AIM-3637 7.1 Credit creation and ledger data - AIM-3638 7.2 Credit states - AIM-3639 7.3 Releasing credit - AIM-3640 7.4 Expiration of unreleased credit - AIM-3641 7.5 Released credit never expires - AIM-3642 7.6 Partial credit redemption and unused balances - AIM-3643 8.1 Pending Affiliate with no or less than required minimum successful referred-customer sale - AIM-3644 8.2 Pending Affiliate with at least the minimum successful referred-customer sales - AIM-3645 8.3 Certified Affiliate - AIM-3646 8.4 Notice selection - AIM-3647 8.5 Abandoned checkout communications - AIM-3648 9.1 Preserve existing calculation - AIM-3649 9.2 Commission rate and discount limits - AIM-3650 9.3 Eligible transactions - AIM-3651 9.4 Commission holding period - AIM-3652 9.5 Refunds and chargebacks - AIM-3653 9.6 Suspicious transactions - AIM-3654 9.7 Suspension and termination of Affiliate accounts - AIM-3655 10.1 Monthly - AIM-3656 10.2 Quarterly - AIM-3657 10.3 Rollover and partial withdrawals - AIM-3658 10.4 Payment details and fees - AIM-3659 10.5 Below-threshold balance - AIM-3660 11.1 Qualification progress - AIM-3661 11.2 Instant certification request in Requests - AIM-3662 11.3 Commission and withdrawal balances - AIM-3663 11.4 Discount-code status and settings - AIM-3664 Administrator functionality - AIM-3665 Data integrity, transactions, and concurrency - AIM-3666 Auditing and notifications - AIM-3667 Security and authorization - AIM-3668 16.1 Database and resource efficiency - AIM-1760 Affiliates tab order and detail form action buttons Outcome: The issue-specific manual verification checklist was restored from the compact pre-corruption snapshot. AIM-3635 remains partially implemented because CustomerCreditSmoke fails before checkout completion. This step does not claim full affiliate-program completion; follow the preserved manual steps for all unresolved items. --- Session 191, Step 1: Improve efficiency and recovery guidance for Aisman-managed work - AIM-3671 Improve efficiency and recovery guidance for Aisman-managed work - AIM-3672 Explain causes of excessive time spent on prior work - AIM-3673 Generalize testing and recoverable catalog updates in Aisman guidance Outcome: The prior delay was driven by extended investigation, many short tool/model cycles and repeated test attempts; it did not establish complete affiliate readiness. The overnight gap before the user clarified the request is not agent processing time. Updated the shared Aisman guidance with focused test preferences, no unrequested standalone smoke projects, and surgical catalog recovery. Removed the WorkflowCreditSmoke project created in the prior run. --- Session 191, Step 2: Record the minified JavaScript exclusion in project memory - AIM-3682 Record the minified JavaScript exclusion in project memory - AIM-3681 Repair catalog and output metadata for Session 99 Step 9 - AIM-3683 Persist validator and credit fixes for the Session 99 output Outcome: Issue -4323 records the minified-JavaScript exclusion. Issue -4324 restores Session 99 Step 9 issue coverage and output shape; that step remains unprocessed and intentionally incomplete, with one issue partially worked and 67 untouched. Issue -4325 verifies the validator and credit fixes in unminified source; 20 focused tests pass. The unrequested WorkflowCreditSmoke harness was removed and the catalog reconciled. --- Session 193, Step 1: Correct validation and credit persistence - AIM-3669 Use tempNum to identify new issues during validation - AIM-3670 Persist multi-purchase credit deductions Outcome: Corrected issue classification so existing positive-ID issues with historical `op: 1` are not validated as new; regression coverage confirms both existing and negative-`tempNum` issues. Investigated the multi-purchase credit report: the server FIFO deduction loop already handles the full aggregate and is verified by a six-purchase smoke test ($118.00 - $101.40 leaves $16.60). The concrete client-side failure mode was that an unsuccessful output-file write could be ignored, allowing stale on-disk credit data to reach import. Credit updates now merge fresh disk contents, retry failed writes, and block processing if saving still fails. Rebuilt the dashboard bundle; 19 focused Node tests, dashboard JavaScript syntax checks, the application build, and the FIFO smoke test pass. The retained processed Step 8 output has no provider or remaining-credit fields, so the specific historical write/import failure cannot be reconstructed. Session 99 step 9 was left untouched. --- Session 194, Step 1: Fix duplicate numeric step handlers - AIM-3674 Fix duplicate numeric step handlers - AIM-3675 Improve duration validation message - AIM-3676 Update Settings visibility on project switch - AIM-3677 Keep non-programmers on workflow step 2 - AIM-3678 Fix registration display name field - AIM-3679 Make password reset links single-use - AIM-3680 Show already-confirmed email notice Outcome: Implemented all seven requested control, validation, role visibility, and account-flow changes. Fourteen targeted JavaScript tests passed; the application build succeeded with existing warnings.