Commits
Marek Vsechovsky committed 8dc255a8782
Session 176, Step 1: Wf S4 starting credit must default to the largest starting value of previous still-processing steps
- AIM-3363 Wf S4 starting credit must default to the largest starting value of previous still-processing steps
- AIM-3364 Warn on too-low Wf S4 starting credit and report highest recorded value in Credit tracking dialog
- AIM-3365 Console error on page reload: Syntax error, unrecognized expression: # (toJQ/Filter)
- AIM-3366 Settings "Aisman instructions" auto-update claims updated but content differs from template
- AIM-3367 Workflow tab must fall back to a non-empty sub-tab when the remembered one has nothing to show
Outcome:
All five issues implemented and verified. Issue -3951/-3952: `#wfS4StartingCredit` now defaults to the largest starting value of the previous not-yet-imported still-processing steps of the same AI credit provider (new `_getS4HighestRecordedStartCredit`), the textbox gets warning colors + tooltip when a lower value is entered (`_applyS4StartCreditWarning`), and the "Credit tracking" dialog reports the highest starting value recorded for the provider even if the low value is left in place. Issue -3953: the reload-time jQuery `Syntax error, unrecognized expression: #` came from a stale `dashboard.min.js` containing the pricing-admin script (`Filter('#aimPaFilterFeatures')` on the dashboard page → `toJQ('#')`); the bundle was rebuilt from the exact 15 `bundleconfig.json` inputs and verified free of pricing-admin code. Issue -3954: the instruction decomposition is lossless; the misleading green "Auto-updated" message is fixed by content-based verification (against the rendered template), silent healing of root file + all 15 sub-files when content matches but baselines are missing, no overwrite of user edits, and drift-aware green state. Issue -3955: restoring/selecting the Workflow tab now falls back from an empty Step 3/4 to Step 1 (unresolved issues present) or Step 2, with deferred fallback when session data loads after restore. `node --check` passed on all edited and bundled files; `dashboard.min.js` rebuilt and verified.
Session 176, Step 2: Two #wfS4CreditRow rendered in the same Wf S4 step detail
- AIM-3368 Two #wfS4CreditRow rendered in the same Wf S4 step detail
Outcome:
Issue -3956 fixed: duplicate `#wfS4CreditRow` in the Wf S4 step detail is now impossible. Root cause was an async append race in `renderS4DynamicArea` — the stale-row cleanup ran synchronously while the new row was appended inside the (possibly async) `_loadCreditProviders` callback, so overlapping renders each appended their own row (the session-150 sync cleanup could not prevent this). Fixed with a monotonic render ticket that makes stale in-flight callbacks return immediately, an idempotent class-based purge before every append, and a task-scoped row id (`wfS4CreditRow-<taskId>`) so each S4 task tab's credit row has its own id and no two rows can ever share the same id. `node --check` passed and `dashboard.min.js` was rebuilt from the exact bundleconfig inputs and verified.
Session 166, Step 2: Add 'AI credit providers' settings tab after Aisman instructions template
- AIM-3152 Add 'AI credit providers' settings tab after Aisman instructions template
- AIM-3153 Add purchase date display and provider total spent to credit provider rows
- AIM-3369 Unify the type labels between the AI credit providers dialog and the 'AI credit providers' Settings tab
- AIM-3370 Run checkAismanInstructionsUpdate at most once per 24 hours regardless of page refreshes
Outcome:
- **AIM-3152** — Fixed: the Settings credit-provider buttons now open the specific add/edit dialog for the clicked entity (add/edit provider, add/edit purchase) instead of the "Manage credit providers" dialog, and the "Failed to create purchase." error is fixed at its root (EF `OUTPUT` clause disabled on the trigger-backed `AiCreditProviderPurchase` table).
- **AIM-3153** — Improved: purchase rows show ` | Purchased [ago] on [date/time]` with dimmed `Purchased`/`on` connectives and a dimmed `Remaining:` label in both the dialog and the Settings tab.
- **Issue -3957** — Provider type badges unified: the Settings tab now uses the dialog's `getProviderBadge` label format (AIM-3061).
- **Issue -3958** — `checkAismanInstructionsUpdate` now runs at most once per 24 hours regardless of page refreshes (last run time persisted in `localStorage`).
+ Manually created and edited template files.