Commit Graph
21 Commits
Author SHA1 Message Date
greeneclipseandClaude Fable 5 0eef202f56 Add SESSION_COOKIE_DOMAIN so /admin SSR sees the session cookie
Production splits web (descrybe.io) and API (api.descrybe.io). The session
cookie was host-only for api.descrybe.io, so the browser never sent it to
the web host. The /admin SvelteKit SSR gate (fetchMeStaff in
+layout.server.ts) forwards the incoming cookie header to /api/auth/me —
with no cookie to forward it always got 401 and bounced every successful
login back to /login?next=/admin (login POST 200, /me 200 from the
browser, /me 401 from the web server).

New SESSION_COOKIE_DOMAIN env (default empty = host-only, local dev
unchanged) sets the session cookie Domain attribute; set it to the parent
domain (descrybe.io) in production so both hosts receive the cookie.
Leading dot is normalized away. CSRF needs no change — it already seeds
cross-origin via the X-CSRF-Token response header.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-18 00:31:58 +02:00
greeneclipseandClaude Fable 5 b595398389 Split A1 category prompts canonically; retire attributes prompting
- Category enhance prompts (Sync A1 / seed-a1 / repair) now use the same
  three role sections as the rest of the platform: Title / Description /
  Meta. The retired "--- Attributes ---" role section is removed from the
  canonical template, the legacy-split overlay, and the web prompt editor;
  Category/Attrs stay as plain product-context lines (attribute extraction
  remains pipeline-level via AppendAttributeConstraints).
- Stored prompts still carrying an attributes section are detected by
  CategoryEnhancePromptNeedsRepair and rewritten on the next Sync.
- Legacy wp_product_categories.sql splits now also seed a default Slovenian
  metaTitle rule (dumps only carried <metaDescription>), so every A1
  category gets all four prompt areas: title formula, description
  sections, meta title, meta description.
- Role-sectioned prompts no longer imply the A1 SEO-omit cohort
  (CompanyOmitsSEOMeta): sectioned prompts are the canonical prompt-editor
  output for every tenant, and the sniff silently disabled SEO meta for
  any company that saved a category prompt.
- Verified locally: repair-category-prompts -apply updated 238 A1 +
  Platform Demo categories from scripts/seed/wp_product_categories.sql
  (216 legacy splits), idempotent on re-run, zero attributes sections
  left in DB.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-18 00:13:44 +02:00
greeneclipse 2a2b01bf59 fix 2026-08-17 23:06:07 +02:00
greeneclipse a7e53ca0a3 fix 2026-08-17 21:56:09 +02:00
greeneclipse 6fcdc74843 fix 2026-08-17 21:20:45 +02:00
greeneclipse 321f11e817 fix 2026-08-17 11:30:14 +02:00
greeneclipse fe94c2fb9c fix 2026-08-17 09:33:07 +02:00
greeneclipse 0dceb3a404 fix 2026-08-17 01:30:28 +02:00
greeneclipse c2429873b3 fix 2026-08-17 00:53:51 +02:00
greeneclipse 93dc70123c fix 2026-08-17 00:39:25 +02:00
greeneclipse 92f046b542 fix 2026-08-16 23:42:00 +02:00
greeneclipse a94a5aaad7 fix 2026-08-16 18:36:56 +02:00
greeneclipse 532d439c41 fixes 2026-08-16 16:57:36 +02:00
greeneclipse 96f8c1115c update 2026-08-16 12:47:06 +02:00
greeneclipse 52fb129957 fix 2026-08-16 12:00:28 +02:00
greeneclipse 52f27e30fc fixes 2026-08-16 11:37:42 +02:00
greeneclipse dc9ea628c1 fix 2026-08-14 01:38:34 +02:00
greeneclipse a9395585f8 fix 2026-08-14 00:06:43 +02:00
greeneclipse 58578fd010 fix 2026-08-13 21:01:49 +02:00
greeneclipse 39cb848f67 fix doc 2026-08-10 01:55:26 +02:00
greeneclipse 8580c996c3 Initial commit of Descrybe v2 without local scratch artifacts.
Drop one-shot tmp/axe scripts and agent i18n scratch so the Gitea tree is deployable.
2026-08-09 22:47:43 +02:00