fixes
This commit is contained in:
1 parent
43cfaa0411
commit
3b0d692839
7 files changed
+341
-136
No files matched your search
@@ -226,8 +226,10 @@ for a preview or `npm run seed:category-prompts:i18n` to apply. This uses
|
||||
pretranslated local resources for all 25 content languages, **no OPENAI_API_KEY
|
||||
and no external translation service**. New default categories reuse translations
|
||||
from the shared DB cache; custom company prompts are preserved. The same seed
|
||||
rewrites repeated benefit instructions in existing A1 Slovenija prompts
|
||||
and structured descriptions without dropping sections. Optional standalone A1 command:
|
||||
upgrades recognizable obsolete A1 benefit boilerplate to the semantic SEO
|
||||
body, including previously half-cleaned templates and empty JSON columns.
|
||||
Unrelated custom descriptions, titles and meta rules remain untouched. Optional
|
||||
standalone A1 command:
|
||||
`npm run cleanup:a1:prompts -- -apply`. Future A1 seed/WordPress imports now
|
||||
normalize duplicates on ingest. See `docs/category-prompt-translations.md`.
|
||||
|
||||
@@ -270,3 +272,30 @@ those products to regenerate descriptions, where the company has AI processing
|
||||
configured. A1 and the Platform Demo currently have a separate deliberate
|
||||
backend rule that omits SEO meta from their processed product fields: updating
|
||||
prompt instructions alone does not change that store-level policy.
|
||||
|
||||
|
||||
## A1 empty-JSON / partially cleaned category fix (Oct 14, 2026)
|
||||
|
||||
Earlier versions of the offline seed reported `unexpected end of JSON input`
|
||||
for A1 categories whose `description_template` column was empty. It also missed
|
||||
A1's two- or three-pair historical prompts and left mixed 100-word and third-
|
||||
benefit instructions visible in the editor. Both defects are fixed.
|
||||
|
||||
After deployment, preview and repair **only A1**, without touching any other
|
||||
tenants' prompts (no migration or OpenAI key needed for this code-only fix):
|
||||
|
||||
```bash
|
||||
npm run cleanup:a1:prompts
|
||||
npm run cleanup:a1:prompts -- -apply
|
||||
```
|
||||
|
||||
Alternatively, `npm run seed:category-prompts:i18n` incorporates the same
|
||||
A1 cleanup when the global offline defaults should also be seeded. Re-running
|
||||
either command is safe. No existing processed product descriptions are changed
|
||||
until they are processed again. Only recognizable A1-imported boilerplate is
|
||||
replaced; category-specific title/meta rules are preserved.
|
||||
|
||||
Regression coverage includes the exact reported partially cleaned Slovenian
|
||||
prompt, missing description-template JSON, redundant HTML H1, old 3–10 technical
|
||||
specification lists, structured-formula metadata, and idempotence. The bundled
|
||||
`scripts/seed/a1-category-prompts.json` was normalized as well.
|
||||
Reference in new issue
Block a user