Commit Graph
91 Commits
Author SHA1 Message Date
greeneclipse eefb7e2b75 Update 2026-11-09 00:43:13 +01:00
greeneclipse 1ad180a052 fixes 2026-10-27 14:53:19 +01:00
greeneclipse c347d2418f rb 2026-10-20 18:03:58 +02:00
greeneclipse edbbf127ba fux 2026-10-20 17:50:32 +02:00
greeneclipse fd83a7c523 fix 2026-10-20 17:28:06 +02:00
greeneclipse c83347b9a5 fix 2026-10-20 17:19:46 +02:00
greeneclipse 1c003e30a4 fix 2026-10-20 17:07:24 +02:00
greeneclipse 0e48ea427b Fix 2026-10-20 17:03:09 +02:00
greeneclipse 486502852e fix 2026-10-16 13:48:51 +02:00
greeneclipse feebf7d3c1 fixy 2026-10-16 00:55:28 +02:00
greeneclipse 1e7c7bbfbb fixes 2026-10-16 00:34:06 +02:00
greeneclipse 6586722652 fix 2026-10-15 23:48:34 +02:00
greeneclipse 26e7453ad9 fix 2026-10-15 21:37:00 +02:00
greeneclipse cfd31f398c Fixes 2026-10-15 21:22:43 +02:00
greeneclipse 04794aea54 fix plans 2026-10-14 21:23:56 +02:00
greeneclipse af670e79f0 fixes 2026-10-14 20:54:29 +02:00
greeneclipse c92ee93482 fix 2026-10-14 20:28:38 +02:00
greeneclipse 8b540d22bc fixes 2026-10-14 20:02:42 +02:00
greeneclipse 3b0d692839 fixes 2026-10-14 19:45:50 +02:00
greeneclipse 43cfaa0411 upddate 2026-10-14 19:23:16 +02:00
greeneclipse ff6c2df618 fix 2026-10-14 18:47:00 +02:00
greeneclipse 7537a41955 update 2026-10-14 18:18:54 +02:00
greeneclipse 3bfeb6b61e fix 2026-10-14 16:54:39 +02:00
greeneclipse 176b1fe47f Fix 2026-10-14 16:13:51 +02:00
greeneclipse 7ab7acd533 Fix open api 2026-10-05 20:36:31 +02:00
MatejGhub dd7db5032a polished and testing exports 2026-09-20 10:48:19 +02:00
MatejGhub 9b4457d96e fixes 2026-09-19 23:39:01 +02:00
MatejGhub de9a39d1f1 fix 2026-09-13 21:37:20 +02:00
MatejGhub ab0e80db18 fixes 2026-09-13 20:23:36 +02:00
MatejGhub 90abd6846c dashboard page fixes v1 (visual only) 2026-09-12 23:17:23 +02:00
MatejGhub 32c6c828b1 frontend page fixes v1 2026-09-12 21:07:43 +02:00
greeneclipse 65e1fdd55b fix 2026-08-24 04:31:49 +02:00
greeneclipse 7bafd7a322 fix 2026-08-24 04:03:44 +02:00
greeneclipse 8a690a0464 fix 2026-08-24 03:41:06 +02:00
greeneclipse a246ed8fe5 fix 2026-08-23 23:14:57 +02:00
greeneclipse 296dc3c841 fix 2026-08-23 22:52:13 +02:00
greeneclipse 8983cfc8a1 update see calss 2026-08-23 22:03:57 +02:00
greeneclipse f3d4fb56ed fix 2026-08-23 20:49:40 +02:00
greeneclipse 3b678ca857 fix 2026-08-23 19:30:05 +02:00
greeneclipse f61fe05e7a fix 2026-08-23 18:58:03 +02:00
greeneclipse a30b78c3b6 fix 2026-08-23 16:34:50 +02:00
greeneclipse 815e26d359 fix 2026-08-23 13:39:56 +02:00
greeneclipse 89ae7e5fa8 fix 2026-08-23 13:08:14 +02:00
greeneclipse ee1405cc1a fix 2026-08-23 12:56:19 +02:00
greeneclipse 5340158228 fix 2026-08-23 12:40:59 +02:00
greeneclipse bd762d1ccf fix 2026-08-22 19:23:15 +02:00
greeneclipse 0c154254c3 major fixes 2026-08-22 18:51:17 +02:00
greeneclipseandClaude Fable 5 0ff24b1534 Surface Slovenian A1 content in prompt page; purge English defaults
Three bugs hid the split A1 data behind English junk:

1. /api/auth/me company was only {id, name} — me.company.language never
   existed, so the prompt/formula pages ALWAYS fell back to English as
   the primary content language and never showed the Slovenian ("sl")
   prompt sections by default. handleMe now enriches the active company
   with language + content_languages from the companies table.

2. The unified prompt page injected English default texts: meta title /
   meta description fields were pre-filled via getDefaultMetaTitle/
   Description (and silently SAVED on Save), new description sections
   started with English instructions, and type changes overwrote user
   text with English defaults. All removed — empty stays empty
   (placeholders only), stored tenant content is shown exactly as-is,
   meta-only templates now save (sections no longer required).

3. Sync A1 / repair left English formula artifacts on categories with no
   seed content ("Audio video" etc.): earlier repairs backfilled
   DefaultRetailTitleFormula and cats.json-style English description
   sections onto every category. Repair now (a) never invents a default
   title formula — formulas derive ONLY from legacy naming rules — and
   (b) with the seed as source of truth clears title_template and
   description_template on non-seed categories (new
   title/description_template_cleared counters).

Locally verified end-to-end: corrupted Platform Demo Monitorji (legacy
combined blob) + Audio video (English junk), called the real admin
POST /companies/{id}/sync-a1 as the platform admin — Monitorji restored
to the exact split Slovenian Title/Description/Meta + formulas +
Slovenian meta title/description, Audio video fully cleared; repair
idempotent (0 on re-run); me.company.language returns sl for A1;
zero English-default templates remain in A1 + Platform Demo.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-18 01:49:44 +02:00
greeneclipseandClaude Fable 5 c9554f2f7c Fix DedupeSessionCookies panic with pgxstore (use FindCtx)
Production uses pgxstore, whose plain scs.Store.Find deliberately panics
("missing context arg") — only FindCtx works. DedupeSessionCookies called
Store.Find directly, so any request carrying duplicate session cookies
500'd (chi Recoverer caught the panic). Unit tests passed because the
in-memory store implements plain Find.

Mirror scs.doStoreFind: type-assert FindCtx(context.Context, string) and
use it with the request context, falling back to plain Find for simple
stores. Regression test adds a ctx-only store whose plain methods panic.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-18 01:33:05 +02:00
greeneclipseandClaude Fable 5 6facfbb0aa Self-heal duplicate session cookies from the Domain rollout
Browsers that logged in before the session cookie became Domain-scoped
still hold the old host-only descrybe_session for api.descrybe.io. They
then send BOTH cookies — older (stale) first — and Go reads the first
match, so the stale relic shadows the fresh Domain cookie and every
request 401s even immediately after a successful login. Clearing
browser cookies fixed it manually; users should never have to.

New DedupeSessionCookies middleware (mounted before scs LoadAndSave):
when duplicate session cookies arrive, pick the token that resolves in
the session store, rewrite the Cookie header to just that one, expire
the host-only relic (Set-Cookie without Domain only touches the
host-only variant), and re-issue the surviving token on the canonical
Domain cookie. One request converges the browser to a single cookie.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-18 01:19:46 +02:00