fix plans
This commit is contained in:
1 parent
af670e79f0
commit
04794aea54
4 files changed
+157
-15
No files matched your search
@@ -1,3 +1,22 @@
|
||||
# Admin billing create/edit plan hotfix (October 14, 2026)
|
||||
|
||||
The Create plan form previously called `.trim()` on `max_products` and `yearly_credits`. Svelte's number inputs bind numeric values as numbers (or `undefined` when empty), causing `max_products.trim is not a function` and preventing custom Demo plans from being created.
|
||||
|
||||
**Fix:** Both optional limits now normalize to positive/zero safe integers or `null` (unlimited/unset), monthly credits allow `0`, and invalid numeric values show a field-specific error without sending a request. The same correction applies to **Edit plan**.
|
||||
|
||||
No migration, API update, or seed is needed. **Deploy the updated web frontend** and reload `/admin/billing`.
|
||||
|
||||
Regression tests:
|
||||
|
||||
```bash
|
||||
cd apps/web
|
||||
node --experimental-strip-types --test src/lib/admin-plan-form.test.ts
|
||||
```
|
||||
|
||||
This package includes all earlier v8 changes.
|
||||
|
||||
---
|
||||
|
||||
# v8 fix — existing non-A1 language prompts
|
||||
|
||||
This update addresses the remaining English/Croatian/Bulgarian mismatch in existing non-A1 categories. It includes the exact historical v3 locale snapshots, so the seed can identify the old five-section translations and upgrade them **without overriding custom company instructions**. It also updates any exact old structured description formula that would otherwise force the AI to output five H2 sections.
|
||||
|
||||
Reference in new issue
Block a user