Skip to content
Toolkit

Changelog

All notable changes to Cardsite are documented in this file.

Format: Keep a Changelog. Versioning: Semantic Versioning. Dates use ISO 8601 (YYYY-MM-DD).

Unreleased

The approved platform walkthrough is the experience of record (ADR-0181, job 014). Web on main; the API half is on feat/walkthrough-api, not yet compiled or merged.

Added

  • Static pages may load and run more, per deployment (ADR-0184): HOSTING_STATIC_POLICY = inert (default), external (https styles, images, fonts, media) or scripted (also the page's own scripts, in a sandbox without the product's origin). Staging runs scripted.
  • Customer domains on GCP staging (ADR-0183): an optional Caddy edge VM with on-demand TLS in front of the web service (edge_host, public_host), so a customer's domain needs one DNS record and Verify, as in production. The API takes the visitor's host from X-Forwarded-Host only with the edge's EDGE_SECRET.
  • Apple apps on the iOS walkthrough (ADR-0182, job 015; not yet compiled): the compact dock (Create · Home, Library, Analytics in Liquid Glass · Cyte), the sidebar headed by Create, Cyte (chat on the existing endpoint, ⌘J, only with ai_tools), Library of every kind with List, Grid and Cards, Home's week sentence, the Create sheet (shorten a copied link, every kind, ask Cyte), and four iOS 18 Controls.
  • /resources: one library of every kind, with thumbnails and the share sheet (copy, QR, channels).
  • /account: one page, eight tabs — Profile, Billing, Plans, Notifications, Appearance, Security, Team, Referrals.
  • /activate-user, the page activation e-mails already linked to.
  • Cyte, the assistant: a launcher (⌘J) and a chat panel on the existing chat endpoint, rendered only when the plan grants ai_tools.
  • Home for a returning account (KPIs, kinds, recents) and a first run.
  • Shell: sidebar sections with collection counts, a phone menu, a Create menu, and search that shortens a pasted URL.
  • The editor workspace (/resources/edit/:kind/:id): one full-page editor for every kind, Settings at the start and Customise at the end, the preview alone on the canvas and one explicit save. All nine kinds are on it — Short link, Page (blocks as cards, undo and redo, comments), QR code, vCard, Event, File, Site, Splash and Pay; each shows only the fields its API stores (what it cannot store is ROADMAP → DEFERRED 014). Old routes (/links/:id, /biolinks/:id, /qr-codes/create, /qr-codes/:id/edit, a list's ?new=1 and ?edit=<id>) redirect.
  • Analytics (/statistics) and the Inbox rebuilt on Studio 2.4 (notification groups and rows, a caught-up state).
  • Cyte's mark and panel as the boards draw them; one auth frame with its showcase for the signed-out pages; Account setting groups; library rows, tiles and cards; the shell's brand, top bar and menus.

Changed

  • Apple apps: Liquid Glass to the iOS walkthrough's Foundations rules (controls only, the system material, interactive where touched, solid under Reduce Transparency); the glossary's words (Link, Page, QR, "Create") in the app, widgets, Controls, share extension, watch and App Intents. The iOS 26 create accessory and the five-tab bar are replaced by the dock.
  • Measured fidelity pass (job 014): the shell, Home, library, Account, auth, Cyte, Analytics, Inbox and editor screens were compared with the walkthrough boards rendered with their own stylesheets, at 1440, 1024 and 390 px, and corrected in Studio 2.4 and the app; no user-facing copy changed. Open owner questions from it are ROADMAP → DEFERRED (014).
  • Studio 2.4.0 (ADR-0181): nine kind hues, the boards' tokens and ten type roles; the kinds are Link, Page, QR, vCard, Event, File, Site, Splash and Pay (collections Links, Pages, QRs, vCards, Events, Files, Sites, Splashes, Payments), and the action is "Create". GLOSSARY, link-model, the navigation gate and the Apple navigation follow; "Notifications" is the Account tab's label. Cardsite Icons 7.3.0 (nine kind badges); marketing on Certia and Space Grotesk.
  • Sign-in, register, forgot and reset password restyled on studio-react.
  • resources, account and activate-user are reserved slugs (web and API).
  • Studio 2.2 everywhere (ADR-0179): the web app's tokens all resolve to 2.2, its shell and every resource list are on studio-react 2.2 (React 19); marketing and Icons draw from design/studio; the Apple app is rebuilt on StudioKit 2.2 with one adaptive shell (tab bar in compact width, sidebar and inspector in regular width; iPhone Duo keeps state across the fold). The pages still on 1.2 are listed in docs/guides/design-system.md.
  • One generator for the static surfaces: the toolkit's build writes the toolkit, public/ and the root index.html from one layout.
  • One command surface: make help grouped; make staging (native or STACK=docker), make shots, make apple-build; CI runs every check make validate runs.
  • Clean UI rule (AGENTS rule 7): filters behind one button, no chip walls.

Removed

  • The Settings, Preferences, Workspaces, Plans, Payments, Referrals and Notification handlers pages (their paths, and /teams, redirect to an Account tab); the AI chat page (/ai/chat), replaced by Cyte.
  • Every resource drawer (vCard, Event, File, Site, Splash, Pay), the short link detail page, the bio page builder (BiolinkEditorPage and its toolbar, widget library, inspector, canvas frame, block settings form and pixel picker) and the QR builder (QrCodeBuilderPage), replaced by the editor workspace; useEditOnArrival with its last caller; Studio's PanelFileDrop, folded into DropTile.
  • Every .archives/removal-safe/ tree (ADR-0178), the StudioKit fork, Studio 1.2's shells, chrome, fonts and demos, the marketing 1.10 tokens, Icons' vendored Studio 2.0, check:studio-parity.

Fixed

  • make staging on macOS (Homebrew PostgreSQL and nginx).

Security

  • Known, unfixed on main: spotlight search matches every account's links and users. The fix is on feat/walkthrough-api and lands when that branch is compiled, tested and merged.

[1.3.0] — 2026-11-22

The launch consolidation (job 013): one repository, one staging environment. It also releases everything that was [Unreleased] since 1.2.0 (tracks 002–011 and launch waves 0–3), listed below this section.

Added

  • One repository for launch (ADR-0176): the Apple apps (apps/apple), the marketing site (apps/marketing), Studio 2.2.0 (design/studio), Cardsite Icons 7.2.0 (design/icons) and the brand kit (design/brand-kit) joined the platform tree.
  • The product toolkit (apps/toolkit): strategy → release in one static site, with the GTM readiness board, the cross-platform QA matrix, the usability script, the release and App Store checklists, the ADR index, the API reference from openapi.yaml, and the three catalogue audits.
  • GCP staging (ADR-0177): Terraform in infra/gcp, Cloud Run services and the migrate/seed jobs, .github/workflows/deploy-staging.yml over Workload Identity Federation, scripts/staging/smoke.sh; make staging-local runs the same topology natively.
  • Apple: a Staging configuration and scheme, apple-testflight.yml, and apps/apple/docs/STUDIOKIT-CONVERGENCE.md.
  • Gates: check:studio-convergence (Studio 1.2 → 2.2 drift against a recorded baseline), toolkit:check/toolkit:test in verify, tools/logins/check.js, the generated root page index.html, and .github/workflows/design.yml.
  • docs/brand/ now holds the Overview the ADRs cite, and the Marketing guide.

Changed

  • Studio 2.2 is the canonical design specification; studio/ (1.2) stays the web runtime until it is migrated (ADR-0175).
  • studio/packages/swift is the Apple app's StudioKit fork; studio:build no longer overwrites its generated tokens.
  • apps/web's nginx upstream is a template (API_UPSTREAM), so the same image proxies to api:8080 in compose and to the API's Cloud Run URL on staging.
  • Marketing: the archive address is crd.site everywhere, as the Overview says.
  • AdminPageStates.test.tsx queries the send confirmation as alertdialog, the role Studio's confirm surface has.

Removed (archived)

  • The SSH staging workflow, the nested CI of design/studio and design/icons, and the platform's StudioKit 1.2.0 copy — each under .archives/removal-safe/ with a register row.

Upgrade notes

  • Nothing new for an existing self-hosted deployment beyond the notes below.

Everything from track 002's design-system conversion through track 011's plan ladder shipped unreleased; the per-track record is each close-out under .station/jobs/NNN-slug/reports/CLOSE.md and the ADRs it names (0018–0157). The headline entries:

Upgrade notes (for whatever version ships next — a minor at least)

Migrations 000031–000044 apply by hand with psql, in order, before the new binary boots (docs/DEPLOYMENT.md). Four of them decide something about existing data; check a copy of the target database against each before the window:

  • 000031 grants every existing plan every capability (ADR-0073). Capabilities default to deny and no plan carried the keys before 2026-08-28, so without this an upgrade removes every capability from every account on release day. The grant is right-biased over anything already in plans.settings; nothing ever read those booleans. Afterwards an operator withholds deliberately, per plan, in the plan form.
  • 000043 requires exactly one plan marked is_default (ADR-0134): the row an expiring subscription falls to. The migration marks the first active plan by admin order if none is marked, and never moves a mark it finds. Check SELECT plan_id, name FROM plans WHERE is_default; returns the rung the owner means — the hourly expiry task, which had never run (it compared 'free' to an integer), runs against it from this release.
  • 000044 rewrites heading blocks that chose H1 to h2 — the level they have always rendered as (ADR-0066); no served page changes. Count them first if the number matters to anyone: SELECT count(*) FROM biolinks_blocks WHERE type = 'heading' AND settings ->> 'heading_type' = 'h1';
  • Legacy users.plan_id = 0 rows are not rewritten. They resolve to the default plan by identity at read time (ADR-0134); a SELECT count(*) FROM users WHERE plan_id = 0; tells you how many accounts 000043's mark governs.

Three switches are off unless set and each changes what the product takes from a customer: LIFECYCLE_TAKING_ENABLED (ADR-0114), LIFECYCLE_RECLAIM_DAYS (unset reserves nothing), ARCHIVE_ORIGIN (unset addresses archives under the app's own origin). Every key is in .env.example and docs/DEPLOYMENT.md.

Pages unlisted by their authors are still in the directory until an operator runs UPDATE links SET directory_is_enabled = false WHERE type = 'biolink' AND settings->>'directory_is_enabled' = 'false'; (count first with the same WHERE). The directory now reads a page's title, description and image; rows that only ever had name, bio or profile_image — which no control wrote — show their address instead.

A deployment behind a proxy must set TRUSTED_PROXIES (ADR-0160, ADR-0163). The API no longer reads X-Forwarded-For from anyone else, so without the key the per-IP limits, the IP blocklist and click geolocation all see the proxy's address. deploy/compose.prod.yml sets it to the web container's fixed address (172.28.0.10 on a pinned 172.28.0.0/24); with another proxy in front of nginx, set it in .env to both hops.

Security

  • GET /api/v1/directory, which needs no sign-in, returned whole link rows: owner and workspace ids, display rules, and every listed page's full settings — the gate password digest, the expiration URL and the author's custom script among them. It returns a card: id, address, the public settings, clicks, date (ADR-0165).
  • Show in directory did nothing: the directory lists by a column that defaults to on, and the toggle wrote a settings key nothing read, so a page switched off stayed listed. The toggle writes the column. Pages switched off before this release are still listed — see the upgrade note.
  • A forged X-Forwarded-For chose the auth-lockout bucket, the anonymous AI-quota bucket, whether a blocklisted address was blocked, the address in the admin audit log and the country a click was recorded in: the trusted- proxy middleware fixed RemoteAddr and five call sites did not read it. middleware.ClientIP is now the one reader and takes no header (ADR-0163).
  • The login audit row and the CAPTCHA provider's remoteip carried the peer's port; both take the address alone. npm run check:client-address now fails the build on a forwarded-address header or RemoteAddr read outside middleware/realip.go.
  • The public rate limiter keyed on host:port, so with no proxy named every new connection opened a new budget. It keys on the host, and its ceiling is PUBLIC_RATE_LIMIT_PER_MINUTE (default 300, as before) so a test stack that drives every public route from one address can raise it.

Added

  • Duplicate a resource. Short links, bio pages, vCards, events and payment links have a Duplicate row action: an exact copy at <address>-copy, with a bio page's blocks, off and unlisted until its author turns it on. It counts against the plan like any create. File links and static pages are refused until copying their stored file is built (POST /api/v1/links/{id}/duplicate, ADR-0165).
  • A bio page has a name, a bio and a picture — three fields in the editor's Page tab. The page header has always drawn them and nothing could set them. Image and gradient backgrounds are drawn, in the editor and in public.
  • Uploads gallery. /uploads lists the workspace's stored images and files — thumbnail or file type, name, size, date — filtered by type on the server and paged; Create opens a drawer that uploads one; each tile copies its address or deletes it after asking. It is a catalogue product (Tools), and /uploads?new=1 arrives with the drawer open.
  • Re-use an upload from a block. A block's image or file field keeps its address input and gains Choose from uploads: a picker over the same gallery that fills the field with an existing upload's address, or uploads a new file and chooses it in one step (ADR-0164).

Changed

  • The page editor fills the window: preview no longer leaves a blank band, the settings tabs wrap instead of scrolling out of sight, and the first is Page, not "Settings" inside "Settings". The video background option and the per-page PWA tab are gone; neither was ever drawn, and a PWA is its own resource.
  • Top bar: the search is centred on the bar; New and notifications are their own floating buttons; the theme is switched in the account menu only.
  • GET /api/v1/uploads takes kind=image|document, matched on MIME type, beside type; the gallery's filter and the upload picker use it, so an image field is offered avatars, logos and favicons as well as uploads of type image. An unknown kind is 400. The contract now declares the list's parameters, and the upload form's type field where it had declared a name the handler never read.
  • A bio page's image background offers Choose from uploads; a pick is saved at once.
  • POST /api/v1/uploads refuses a type outside file, image, avatar, favicon, logo with 400; it used to store any word and treat the file as a plain file. Upload is in the contract and generated.
  • Code, RedeemedCode, Signature and FeatureFlag are described in shared/contracts/openapi.yaml, held to their structs by check:contract-parity (268 of 268 across 24) and generated into @cardsite/api-types; the hand-written copies are deleted. Signature gains the workspace_id the server always sent, and Code's days, plans_ids and two datetimes are optional, as omitempty makes them.

Fixed

  • /directory threw Cannot read properties of null (reading 'profile_image') and drew nothing when a listed biolink had no settings row; DirectoryEntry.settings is typed as the API serialises it and the page reads through a default.
  • /uploads answered the API's 404 on a direct open in npm run dev: the dev proxy's prefix rule swallowed the page. Anchored on uploads/, as nginx.conf already was; devProxy.test.ts pins both tables.
  • apps/web/Dockerfile linked only @cardsite/link-model; the dev server then failed at the first import of @cardsite/block-model. The deps stage copies every packages/*/package.json and fails the build if a workspace is not linked.

Changed

  • Project, Domain, Workspace, WorkspaceMember, Team, TeamMember, Pixel, PlanQuota, Plugin, PluginConfigKey (with the PluginStatus enum), Pwa, PwaSettings, PwaShortcut and Tax join the schemas a Go struct serves whole: described in shared/contracts/openapi.yaml, held to their structs by check:contract-parity (232 of 232 properties across 20 schemas), generated into @cardsite/api-types, and the hand-written types deleted. The contract toolchain now carries arrays: items is read, T[] is generated, and a []T field whose contract items disagree fails parity (C4), as does a field typed as a described schema that is not a $ref to it. The PWA manifest vocabularies (display, orientation, dir) and the tax value_type/type/billing_type CHECKs are enums on the client now. apps/web/src/types/api.ts had declared PwaShortcut and PwaSettings twice each, merged by TypeScript; each is one declaration now. Project's had lacked workspace_id; Domain's called two omitempty URLs always-present, and DomainsPage now defaults them (ADR-0148).
  • npm run check:config-keys joins verify (27 parity gates): every key apps/api/internal/config/ reads is in .env.example and docs/DEPLOYMENT.md, nothing documented is dead, and an env read outside config/ names a declared key; credential families the example file defers to the guide are scripts/config-keys-ledger.json (ADR-0162).
  • make doctor checks node, npm and the Docker daemon and image store before anything builds; make setup approves the esbuild and fsevents install scripts npm 12 blocks; make up fails fast when the daemon is unreachable. docs/DEVELOPMENT.md lists the machine-side failures and their fixes.
  • The repository is laid out by the Station standard (ADR-0161). .ops/ → .station/ (workstreams are jobs, each SESSION.md in the eight WORK headings; the routine standard is the @work agent module); docs/adr/ → docs/decisions/; @removal-safe/ → .archives/removal-safe/; assessments in .archives/audit-reports/; docker-compose.prod.yml → deploy/compose.prod.yml. Added station.json, .station/STATUS.md, CONTRIBUTORS.md, deploy/README.md, docs/guides/station.md, and a public/ surface (landing, design kit, system graph, docs entry, llm.txt) drawn with Studio: studio/tokens/build.mjs now also emits .station/modules/studio-system/system.json, and station check --fix resolves it into public/design/tokens.{json,css}. npm run check:station and npm run public:check join CI as the station job; make setup, dev, format, check, public, prod-build, prod-up join the Makefile. Version headings in this file lost their brackets so the checker reads them. Assessment and summary: .archives/audit-reports/000-initial-assessment-plan.md and 001-completed-refactor-summary.md.

Added

  • Routine standard (012): .station/modules/work-agent/routines/job.md fixes the loop an unattended run follows — inspect → implement → validate → document → update roadmap → archive — and workstream 012-steady-state drives it from ROADMAP → NEXT. Every change that can reach a page is checked on a page, on a running stack.
  • Dependabot updates are grouped (minor + patch, one PR per ecosystem per week) and .github/workflows/dependabot-auto-merge.yml merges a Dependabot PR once CI passes on its head; a major bump waits for a person.
  • docs/decisions/0159-multi-region-readiness.md, promoted from the section of docs/ARCHITECTURE.md that had been an ADR outside docs/decisions/.

Added (tracks)

  • Registry + extensibility (003): packages/product-model and packages/block-model define every product and block; 85 block arms render from a served render spec; a new block ships without a frontend deploy (ADR-0053–0071).
  • Capabilities & entitlements (004): plans express what they include through packages/capabilities; plan_level retired; enforcement on the write path (ADR-0072–0079).
  • i18n (005): 1,695 strings extracted, the server delivers a catalogue, the language control is mounted again (ADR-0080–0088).
  • Collaboration (006): presence, live canvas state, attributed 409s, comments on a page and on a block, an activity feed, all through one tenant-scoped channel helper (ADR-0106–0112).
  • Enforcement (007): display rules on the redirect path, password and sensitive-content interstitials with an unlock endpoint, pixel emission, real domain verification (ADR-0089–0100).
  • Card view & public renderers (008): vCard + .vcf, event + .ics, stored documents served, payment page, @slug summary card (ADR-0101–0105).
  • URL lifecycle (009): inactivity notices, slug release, archive addresses, a name-hold window, every transition handed a clock (ADR-0113–0121, migrations 000038–000041).
  • Artifact hosting (010): Markdown and SVG served, zip bundles unpacked into addressed files behind the same gate, storage measured and bounded (ADR-0122–0133, migration 000042).
  • Plan ladder (011): the expiry task runs, seat and custom-slug axes join the registry, the free plan is a row (ADR-0134–0139, migration 000043).
  • Contract as a package: packages/api-types is generated from shared/contracts/openapi.yaml, with check:contract-parity, check:contract-paths and check:api-types holding the document to the structs and the router (ADR-0143–0148).
  • Parity gates in npm run verify grew from nine to 26; check:debt, check:settings-reach and check:emitters are the newest (ADR-0140, 0141, 0157).

Changed

  • ROADMAP reset. The 1,570-line tracker that carried every closed track's phase narrative is archived (.archives/removal-safe/ROADMAP-2026-09-02.md); the live one is NEXT / ACTIVE / DEFERRED / DONE, one line per closed track, the 22 owner decisions listed once. AUDITS-081226.md, the product gap assessment and Studio's July roadmap are archived with register rows.
  • CI is part of the merge gate. Actions has run on hosted runners since 2026-09-01; the standing policy that treated it as noise retired. The Studio job runs the whole of npm run verify instead of nine of its 26 gates; staticcheck is pinned to 2026.1 (the release whose module is Go 1.25); the E2E job's API gets a writable UPLOAD_PATH.
  • Every configuration key the API reads is in .env.example and docs/DEPLOYMENT.md: the lifecycle, archive and hosting families, the gateway sandbox switches, LOG_LEVEL, GEOIP_DB_PATH; the gateway and OAuth tables name the keys config.go reads (Plisio, LemonSqueezy, MyFatoorah, Revolut, PayU, Klarna, Facebook, X) and drop three providers nothing reads.
  • Reference documents state the tree as it is: route, handler, repository, migration, gateway and OAuth-provider counts; display rules are evaluated on the redirect path; scoped tokens are shipped; no pprof endpoint exists; components/ui/ is gone from every layout block; engines.node is 22.

Changed (tracks)

  • Studio design system (002): every shared primitive in apps/web converted to @studio/react; the token alias bridge emptied; 91 dead app CSS classes drained; apps/web/src/components/ui/ retired, its two domain components living beside the app's others (ADR-0018–0052, 0157, 0158).
  • Gate passwords are bcrypt digests and the anonymous biolink payload is an allowlist (ADR-0083, migration 000032).

Fixed

  • A client could choose the address the auth lockout and API rate limiter key on by sending X-Forwarded-For: chi's RealIP believed every caller. A forwarded address is now believed only from a proxy named in TRUSTED_PROXIES (ADR-0160).
  • The stub-backed checkout.spec.ts fixture carries settings: {}, which the plan card reads; all three checkout cases had timed out on a blank page since 004 phase 04.

Fixed (earlier)

  • Every /admin/* deep link redirected to /dashboard: the admin route guard decided on a user only the app shell hydrated. It hydrates first.
  • The production nginx image proxied nothing, so with VITE_API_URL unset every API call returned index.html with a 200. /api, /admin-api, /l/, /uploads, /webhook and the health probes are proxied to the api service; the security headers the asset blocks dropped are set where nginx applies them.
  • /@{slug} served the card's crawler JSON instead of the summary card: the same fix had proxied /@ to the API in nginx and the dev server, over the SPA route that draws it. Both rules are gone; /@{slug} and /b/{slug} stay with the SPA, and a test reads both proxy tables.
  • Every public page (card, vCard, event, payment, archive) drew its "Powered by" line beside the document instead of below it — on a phone the two shared the width. The guest shell stacks its children.
  • Admin → Settings collected ten categories of which seven were read by nothing, read the rate limits as flat rows the form never wrote, and stored the blacklists under a category the middleware does not read. It collects only the keys a serving path reads; a write merges into the stored category; credentials are masked on read and kept on write; register_is_enabled closes registration; the affiliate commission type is read from the document the form writes.
  • Admin → System Logs listed a directory nothing wrote to and downloaded through a bare tab with no bearer token. The request logger tees into $UPLOAD_PATH/logs/api.log; Download goes through the authenticated client.
  • /api/v1/spotlight answered anonymous callers with account names. It is bearer-authenticated.
  • The account page read twofa_secret, a field the server never sends, so 2FA always showed as off. The server sends twofa_enabled.
  • /admin/users/:id (every spotlight user result) had no route; the invoice page had no inbound link; two routed admin pages had no nav entry.
  • The command palette centred itself with a transform its drop-in animation overrode with a forwards fill, so its left edge sat at the viewport midpoint on every width and hung off-screen below 628px. It now centres with translate, is bounded by the dynamic viewport with a safe-area allowance, and joins the reduced-transparency fallback.
  • Documentation stated counts the tree had outgrown: migration numbers (000022/000024/000029 → 000044), ADR range (0148 → 0157), Go version (1.22/1.23 → 1.25), the verify gate count (nine → 26), and a README "known conflict" that track 002 resolved.

Earlier unreleased entries

Added

  • Realtime gateway (ROADMAP §5 item 5, workstream 003 stream E, DEFINE-E). Server-Sent Events at GET /api/v1/realtime (session-only, closed to API tokens): each connection subscribes to its user:{id} and active workspace:{id} channels — workspace-keyed from day one. Fan-out via Redis pub/sub when configured, an identical in-process bus when not; 25s heartbeats; the per-connection write deadline is lifted so the server's 15s WriteTimeout doesn't reap streams (logging/idempotency response writers now implement Unwrap for http.ResponseController). First event: admin notification broadcasts push notification to each recipient, and the web app's Topbar refreshes the unread panel the moment it arrives — the 60s poll remains as fallback. The client uses fetch-streaming (normal auth headers) with capped-backoff reconnect.

  • Undo/redo with session guard (ROADMAP §5 item 4, workstream 003 stream D, DEFINE-D). The biolink editor's undo/redo buttons are live — safely. Previously every recorded change pooled into session "default" and one undo call reversed a whole session: wiring the toolbar to that would have mass-reverted a user's entire edit history. Now: history is recorded only when the editor sends a per-tab X-Session-ID (migration 000028 adds workspace_id to user_history_events; the "default" pool is rejected and never written again), undo/redo move exactly one event per call scoped to (user, workspace, session), a fresh edit clears the session's redo tail, and applying history bumps the block version so concurrent editors get a 409 instead of a silent clobber. New GET /api/v1/history/session drives the toolbar's enabled states. The history prefix stays closed to API tokens.

  • Biolink block optimistic concurrency (ROADMAP §5 item 2, workstream 003 stream C). Migration 000027 adds biolinks_blocks.version; block updates compare-and-swap on the version the client loaded and a stale save answers 409 instead of silently clobbering (the editor was last-write-wins — two tabs or two workspace members ate each other's edits). The editor sends the version with every save and toggle; on conflict it reloads the canvas, shows "This block changed elsewhere — reloaded", and reapplies nothing silently. Reorders bump the version without CAS so held stale versions invalidate. API clients that omit version keep the old behavior. Startup schema guard extended to 000027.

  • Workspace role enforcement (ROADMAP §5.3, workstream 003 stream B3, ADR-0006). The role matrix now has teeth across every resource group: member reads, creates and edits workspace resources but cannot delete them; admin and owner can. Enforced centrally in middleware.EnforceWorkspaceRoles (deny-by-default when the role is missing; prefixes with their own gates — workspaces, account, teams, AI — are not double-gated). Personal workspaces are unaffected: their only member is the owner. ADR-0006 documents the tenancy model: workspace as access boundary, user as billing anchor, token pinning, the three-role matrix, and the teams retirement.

  • Workspace membership + switcher (ROADMAP §5.3, workstream 003 stream B2). /api/v1/workspaces surface: list (with the caller's role), create shared workspace (creator becomes owner; draws on the teams plan limit — workspaces absorb teams), rename/delete (owner-only, personal workspaces immutable and permanent), member list/add-by-email/role-change/remove (admin+; the owner row is immutable and unremovable) and leave (non-owners). The whole prefix is session-only: it is deliberately absent from the API-token scope table. Web: sidebar workspace switcher is now live (workspace list, create, switch — active selection persisted and sent as X-Workspace-ID by the api client, query cache cleared on switch to prevent cross-workspace bleed; stale selections self-heal on 403), plus a workspace members page with invite drawer and role controls. Live E2E membership spec covers invites, role gates from the member's own session, leave, the in-browser switcher, and cascade delete.

Changed

  • User-facing /teams UI retired to .archives/removal-safe/ (decision: workspaces with roles absorb teams). /teams and /teams/:id redirect to /workspaces; sidebar/command-palette entries now point at the workspace page. The backend /api/v1/teams* routes, the admin resources tab, and the teams tables stay (legacy data access; the teams plan limit now also counts owned shared workspaces).

  • Workspace tenancy — schema + auth context + repository sweep (ROADMAP §5.3, workstream 003 stream B1). Migration 000026: workspaces + workspace_members (roles owner/admin/member), a backfilled personal workspace per user, and workspace_id on the owned content tables (links incl. all link types, biolinks_blocks, qr_codes, projects, domains, pixels, splash_pages, signatures, uploads, notification_handlers, data, pwas, api_tokens, track_links). user_id stays as owner-of-record and billing anchor; workspace_id is the access boundary: ~130 repository ownership filters now scope by the active workspace. Session requests may select a workspace with X-Workspace-ID (membership-validated, 403 otherwise; personal fallback keeps every existing client working); API tokens are pinned to the workspace they were minted in. Plan limits deliberately stay per-user (billing), public redirect/sitemap paths unchanged, click tracking records the owning workspace. Startup schema guard extended to 000026 (a partially-applied schema would be a silent isolation failure). Workspace CRUD, member management, and the sidebar switcher land with stream B2; role enforcement with B3.

  • Payment link surface (ROADMAP §3, workstream 003 stream A). The payment_link type — registered and redirect-routable since the universal-URL work but with no UI — is now a full resource: GET/POST /api/v1/payment-links and GET/PUT/DELETE /api/v1/payment-links/{id} (thin typed wrapper pinning type=payment_link; checkout URL validated http(s), non-blank), payment-links added to the token scope table under the links resource, OpenAPI entries, creatable: true in @cardsite/link-model (appears in the Create Link modal automatically), and a /payment-links list page with Drawer create/edit — slug + domain via the shared ResourceUrlField, checkout destination, enable toggle in the row. TanStack Query hooks per ADR-0005. Live E2E spec walks drawer create → /l/{slug} 302 to the checkout URL → edit destination → row + redirect assertions.

  • Scoped, revocable, hashed API tokens (ADR-0002). New api_tokens table (migration 000024), cst_-prefixed secrets shown once at creation and stored only as SHA-256 digests, deny-by-default resource:read/resource:write scopes (write implies read) enforced by middleware, immediate revocation, optional expiry. GET/POST /api/v1/account/tokens and DELETE /api/v1/account/tokens/{id} (session-only — a token can never mint or revoke tokens); token principals are rejected on account, auth/2FA, checkout, teams, and all admin endpoints, and billing surfaces are read-only. Startup schema guard extended to 000024.

  • Token management UI in account settings: list with status (active/expired/revoked), scopes, created/last-used/expiry; creation in a Drawer (name, scope multi-select from the server's grantable list, optional expiry) with the secret revealed once; revoke with confirm. TanStack Query hooks per the ADR-0005 ratchet.

  • Live E2E suite in CI (ROADMAP §1, closes audit blocker B5). New apps/web/tests/e2e-live/ Playwright suite runs against a real API + migrated Postgres + vite dev server: QR create with database row assertions, the custom-domain tripod, the enabled gate, biolink insert-with-defaults + preview suppression (no writes), and the pixel drawer create/edit round-trip. New CI e2e job runs it plus the repaired stub suite; npm run test:e2e:live runs it locally.

  • Link detail page (/links/:id, ROADMAP §2). Short links were configurable only through a five-tab modal over the list — the interaction-patterns policy's canonical violation. The new page holds the full configuration as sections (address via the shared ResourceUrlField with domain selector, destination, schedule/targeting, gating, cloaking/UTM, advanced), an enable toggle, a 30-day statistics summary linking to /statistics/:id, QR pairing (hands the short URL to the QR builder via ?url= prefill), and delete. The modal is now create-only — type, alias, destination — and hands over to the detail page. One shared form module (lib/linkForm.ts) keeps the two surfaces from drifting; a live E2E spec walks create → detail → edit → row + redirect.

  • Splash page and Project pickers on the link detail page's Advanced section (ROADMAP §4) — name-labelled selects fed by the user's real resources, replacing raw numeric ID inputs.

  • Component test layer (npm run test:unit, vitest unit project in CI's frontend job): ResourceUrlField wiring contract, the @studio/react Drawer focus trap, and the QR builder payload — extracted to lib/qrPayload.ts as a pure function so preview/save parity is testable outside the component.

Fixed (found by wiring the E2E suites into CI)

  • Vite dev proxy rule '/l' prefix-matched /login and /links, 404ing those SPA routes on direct load in dev; now anchored to /l/.
  • A 401 from the login endpoint itself triggered the global hard redirect, reloading the page and wiping the "invalid credentials" error before the user could read it; auth-endpoint 401s now render inline.
  • Checkout failures on the Plans page showed axios boilerplate ("Request failed with status code 422") instead of the server's reason; now routed through getApiErrorMessage.
  • The editor toolbar's preview toggle was an icon-only button with no accessible name; it now carries aria-label="Preview".

Changed

  • Legacy users.api_key is now stored hashed (ADR-0002 §5): migration 000024 widens the column and digests existing keys in place. Presented keys still authenticate (the auth path compares digests) and remain full-scope until rotated, but keys can no longer be displayed — the settings page now reveals a key only once, at regeneration, and auth responses (/auth/login, /auth/register, OAuth callback) no longer include api_key.
  • JWT lifetime shortened from 30 days to 7 per ADR-0002: revocable scoped tokens now carry long-lived programmatic access; non-revocable browser sessions stay short. docs/API.md authentication section rewritten around the three credential types.

Fixed

  • Guest idempotency keys never conflicted (deferred from workstream 001): idempotency_keys UNIQUE(key, user_id) treated NULL user_id as distinct, so anonymous replays inserted duplicates instead of upserting. Migration 000025 rebuilds the constraint NULLS NOT DISTINCT (PG15+), with a dedup pass first; pinned by an integration test.

1.2.0 — 2026-08-03

Remediation of IMPLEMENTATION-AUDIT-R2, verified against a running system (Go toolchain, Postgres 16, Docker, live HTTP) on 2026-08-03. All audit findings held; four of five blockers closed by execution, and the fifth (frontend test coverage) is the top of the remaining backlog. See ROADMAP.md.

Fixed

  • Custom domains had never worked at runtime — for any link type. The redirect handler hardcoded domain_id = 0 and never read the Host header, so assigning a custom domain made a link unreachable on every host. Verified live with a clean control (200 → 404/404 toggled purely by domain_id), then fixed: the handler now resolves the request Host against enabled domains before the slug lookup, degrades to the default domain on unknown hosts or lookup failure, and strips ports. The lookup selects only routing columns so NULL cosmetic columns in legacy rows cannot break resolution. Verified end-to-end: custom host 200, default host correctly isolated.
  • P0 — Create QR Code failed for every user. qr_codes.qr_code was VARCHAR(64) while the handler wrote a multi-kilobyte base64 PNG data URL into it. Migration 000023 widens it and twelve sibling legacy columns carrying user free text.
  • QR styling was discarded on save. Preview sent thirteen styling fields, save sent three, and the create handler had no fields to receive them. Create, update and preview now share one input type on the server and one payload type on the client.
  • Editing a QR code left a stale image. Update persisted new settings without regenerating the artifact. It now regenerates when — and only when — something affecting the image changed, so a rename neither pays for a regeneration nor fails on an unrelated field.
  • Saved QR codes were uneditable — only a create route existed.
  • Seven of 85 registered biolink block types had no renderer and drew blank or printed their raw type name.
  • Biolink blocks were inserted with empty settings, so building a page produced a wall of "fill in properties" placeholders.
  • Preview mode leaked unconfigured blocks as ghost text in the theme's button colour.
  • Biolink button colours were read by the renderer but exposed nowhere, so every page shipped with the hardcoded fallback.
  • Events had no address field anywhere in the UI, though the service accepted url and domain_id throughout.
  • Create Link offered three of the eight registered link types.
  • Duplicate pwas route registration.
  • The editor toolbar's undo/redo buttons rendered permanently disabled — no caller ever wired them and the history client had no importers. They now render only when actually wired; the dead client is archived.
  • Docker web image was not monorepo-aware; production web image could never build (nginx.conf was never committed). Both fixed; see Added.
  • Startup schema guard extended to migration 000023, which changes a column type and so was invisible to the existing sentinel-table probes.
  • web/AGENTS.md documented routes that did not exist.

Added

  • All seven inline list-page forms migrated to Drawer: Events, vCards, Signatures, Static pages, File links, Pixels and Projects. No create form remains on a list page.
  • Edit-in-drawer for all seven drawer resources: vCards, Events, Signatures, Pixels, Projects, Static pages and File links. None of them previously had any edit surface — correcting a field meant deleting the resource and republishing at a new address. On the two upload types the file is optional when editing. updateEvent extended to accept domain_id.
  • Live previews for Signatures (sandboxed HTML), vCards and Events. None of the three had one, despite all three rendering to something a person looks at.
  • qr_codes_styling_test.go — nine regression tests asserting that what is previewed is what is stored.
  • Studio 1.2.0: Drawer, ResourceUrl, PreviewPane, PreviewFrame — CSS layer, React bindings, TypeScript declarations and documentation.
  • studio/docs/for-developers/interaction-patterns.md — the flow policy Studio lacked. Decides list vs drawer vs editor page, one save model, where addressing and preview belong.
  • @cardsite/link-model — the link-type registry, shared between Go and the client.
  • ResourceUrlField — slug, domain selector and live URL readout, mounted on Events, vCards, static pages and file links.
  • Biolink block chrome (blocks.css) replacing padding-less typography utilities.
  • CI gates: link-type parity, block-renderer parity, and a stale generated-output check.
  • ADR 0003 — Studio as the canonical design system.

Changed

  • Repository reorganised into a monorepo: apps/{api,web}, studio/, packages/, shared/{assets,contracts}, docs/.
  • Design tokens now come from @studio/core. tokens.css is a bridge with backward-compatible aliases; the app previously ran on a hand-transcribed fork of the Studio spec.
  • openapi.yaml moved to shared/contracts/.
  • The nine loose files at src/pages/ root moved into feature directories.
  • ROADMAP.md is now the single progress tracker.

Removed (archived to .archives/removal-safe/, not deleted)

  • Five dead frontend service modules: history.ts (zero importers — the undo/redo dead end from the audit), biolinkTemplates.ts, biolinkThemes.ts, uploads.ts (zero callers for every export), and directory.ts (its two pages call the API inline instead — one of the audit's duplicate implementations, resolved in favour of the code that actually runs).

Deprecated

Archived to .archives/removal-safe/, not deleted: web/DESIGN.md, web/src/styles/tokens.css, docs/DESIGN-SYSTEM.md, web/AGENTS.md, the previous ROADMAP.md and STATUS.md.

1.1.5 — 2026-07-24

Fixed

  • Editor panels scroll again. The Blocks and Settings panels sit in a max-height flex card, but their content roots used height: 100%, which resolves to auto under max-height alone — so inner scrollers never engaged and long content spilled out of the card. Panel content roots are now flex children (flex: 1; min-height: 0), restoring scrolling in both the widget palette and every settings tab.
  • Duplicate save-state footer removed — the settings panel showed both the legacy "Changes save automatically…" note and the new live footer; only the live one (with the Saving… state) remains.
  • Unconfigured blocks get a placeholder. A freshly added block with no title/URL/settings rendered as an invisible sliver with chrome floating over nothing. The canvas now shows a dashed placeholder card (block icon, type name, "fill in its properties" hint) until the block has real content; preview mode and live drafts still render the true output.
  • Canvas is a centered page column (max 640px), matching how a bio page actually publishes, instead of stretching tiny rows across the full desktop width.
  • Selection chrome lifted above the block (tag and toolbar float just over the top edge) so it no longer covers the content of short rows, and every block body has a 40px minimum height.

1.1.4 — 2026-07-24

Changed

  • Editor motion pass adopting the reference's motion vocabulary (the easing tokens were already present and identical — --ease, --ease-out, --ease-spring — but underused): selection tag and glass toolbar now spring in on select instead of hard-toggling display; canvas width changes decelerate with --ease-out; desktop panels rise on mount; mobile sheets slide up over a fading scrim; palette cards, tabs, and mobile-bar buttons get spring press feedback; enable/disable dimming animates. All new animation respects prefers-reduced-motion.

1.1.3 — 2026-07-24

Added

  • Drag-and-drop from the Blocks palette. Widget cards are draggable onto the canvas; an accent drop-line with endpoint dot shows the insertion point between blocks (pointer-Y midpoint hit-testing), the canvas frame highlights while dragging, and the block is created at the dropped index. Click-to-append still works and routes through the same insert handler.
  • Mobile editor layout. Below 900px the side panels become bottom sheets with a scrim, driven by a floating glass bottom bar (Blocks · Page · Block · Preview) with safe-area insets; canvas padding and block chrome compact accordingly.
  • Canvas width readout (100% / 768 px / 375 px) beside the viewport switch.

Fixed

  • Settings panel rebuilt. "Short URL" was an untypeable controlled input (onChange={() => {}}) — now a proper draft saved on blur. Text fields no longer fire an API save per keystroke: edits stage locally and flush on blur, while switches/selects/colors commit instantly. Tab rail is a styled horizontal scroll, content scrolls independently, and a footer shows save state ("Saving…" / "Changes save on blur / toggle").
  • Phantom page title removed. The canvas no longer injects the slug as a default heading; the profile header renders only when Settings actually define a title, image, or description.
  • Selection chrome moved inside block bounds (tag top-left, toolbar top-right at 8px insets, per the reference) so it no longer overlaps adjacent blocks or clips at canvas edges.

1.1.2 — 2026-07-23

Changed

  • Biolink editor rebuilt to the Studio editor reference. The canvas is the live page at all times — one surface, no renderer switch. The eye toggle is now a true preview mode: it only sets data-preview="1", stripping selection chrome and hiding disabled blocks in place; viewport (desktop/tablet/mobile) is independent of preview. Selecting a block draws the accent outline with a type tag (top-left) and a floating glass toolbar (top-right): drag, move up/down, duplicate, show/hide, delete. Clicking empty canvas or pressing Escape clears the selection; Escape exits preview first. Duplicate clones a block's type, URL, and settings and inserts it directly below the source. Empty canvas uses the reference ring state.

1.1.1 — 2026-07-21

Changed

  • Biolink editor is now WYSIWYG. The desktop/tablet/mobile canvas renders the actual published page — themed background, profile header, and every block via BiolinkBlockRenderer — instead of a list of structural chips. Editing chrome (drag handle, type, click count, enable toggle, delete) appears on hover/selection; clicking a block opens its properties. Disabled blocks stay visible but dimmed with a "Hidden" tag. The eye-icon preview mode remains the chrome-free published view.
  • Live property drafts. Inspector edits render on the canvas as you type, before saving (onDraftChange relay from BlockSettingsForm → Inspector → editor page → CanvasFrame); drafts clear on save, close, or selection change.
  • Page settings drive the canvas. Theme colors, title, description, and avatar from the left Settings panel now visibly restyle the editing canvas, clarifying the mental model: left panel = page, right panel = selected block, canvas = the page itself. The Inspector is retitled "Block properties" and its empty state points page-wide options to the Settings tab.

1.1.0 — 2026-07-21

Added

  • Design-system overlays & data primitives in web/src/components/ui/: ConfirmDialog (promise-based, a11y-first replacement for native window.confirm), Drawer side sheet, DropdownMenu with full keyboard navigation, Popover, DataTable (typed columns, controlled sorting, row selection + bulk-action bar, skeleton/empty states), Pagination, EmptyState, and DiffViewer (LCS unified diff). Storybook stories in OverlaysAndData.stories.tsx; token-driven styles appended to components.css (light + dark, reduced-motion respected).
  • CodeEditor v2: zero-dependency syntax highlighting for html/css/js/json, line-number gutter, inline find (⌘/Ctrl-F) with match counts, JSON format-and-validate, tab indentation — API-compatible with all existing call sites.

Changed

  • All 59 native confirm() dialogs migrated to the design-system confirmDialog, unifying destructive-action UX (danger styling, focus on the safe path, Escape/overlay dismissal) across user, team, and admin screens.
  • Topbar notification panel now uses live data from the internal notifications API (60s polling) with mark-read on open, mark-all-read, and relative timestamps — replacing the hard-coded sample list. "View all" routes to /internal-notifications.
  • Links page now has functional pagination (Pagination footer) and the standardized EmptyState with a create call-to-action.

Fixed

  • Notification bell unread badge previously always showed sample data; it now reflects the authenticated user's real unread count.

Security

  • F-1 — JWT weak-secret hardening. The boot-time check now rejects the shipped .env.example placeholder and common variants (case-insensitive, substring match), and the example value is length-invalid so a copy-paste deploy cannot boot with a publicly-known signing key. Regression tests in internal/config/config_test.go.
  • F-2 — webhook trust boundary. Signature verification now fails closed in production: an enabled gateway with no configured webhook secret rejects events instead of accepting them (development still skips for convenience). Applied across Stripe, Coinbase, Razorpay, Flutterwave, LemonSqueezy, MyFatoorah, Paystack, Plisio, and Crypto.com via a shared requireWebhookSecret helper. The webhook handler now asserts the paid amount against the server-computed plan price before activating a plan, removing amount-tampering as a class. Startup logs any enabled gateway whose secret is unset. Table-driven signature tests and amount-verification tests added.
  • F-5 — SVG uploads removed from the image and file allow-lists (SVG is XML and can carry script). As defense-in-depth, /uploads/* is now served with Content-Security-Policy: default-src 'none'; sandbox, nosniff, and X-Frame-Options: DENY, so no stored file can execute as same-origin script.
  • F-6 — upload MIME sniffing. Uploads are validated against the actual file bytes (http.DetectContentType), required to agree with the client-declared type, across the general upload, file-link, and static-page handlers.
  • Fixed the dead OAuth exempt-path check in CSRFGuard (a length comparison that could never match) — now uses strings.HasPrefix.

Added

  • F-7 / A.3 — full OpenAPI client coverage. openapi.yaml now documents all 120 client-facing routes (up from 55). A CI job (scripts/openapi_coverage.py) fails the build if any client route lacks a spec entry; scripts/gen_openapi_paths.py scaffolds entries from the Go router so coverage can't silently regress. This is the shared dependency for the mobile client, SDK, and MCP surface.
  • F-3 — per-gateway webhook signature tests (valid accepted, invalid rejected, missing-secret dev-skip vs prod-reject).
  • F-4 — E2E tests for the two highest-trust frontend flows: checkout (web/tests/e2e/checkout.spec.ts) and login + 2FA (web/tests/e2e/login.spec.ts), with npm run test:e2e.
  • ADR-0002 documents the scoped/revocable/hashed token design (the agent- surface security prerequisite) and sequences it for v1.1; ROADMAP gains an "Agent surface" section.

Changed

  • Frontend replaced with the "Studio" design system — a hand-authored, token-driven CSS system (OKLCH color, Bounded/Instrument Serif/Inter Tight/ JetBrains Mono, glass chrome); Tailwind removed. docs/DESIGN-SYSTEM.md rewritten for Studio and root docs (README, AGENTS, ARCHITECTURE, SECURITY) reconciled. All prior functional fixes (modal focus, public-URL actions, immutable link type, error toasts, editor preview) were verified to survive the redesign; the E2E suite was re-attached and SVG was re-removed from the file-upload picker (kept aligned with the F-5 server allow-list).
  • B.2.1 / B.2.2 — API reference prepared for mobile hand-off. docs/API.md reconciles the local-dev base URL to :8080 (production stays :18810 behind Caddy) and marks the Admin API section as an internal contract, not part of the published client surface.
  • F-8 — .archives/removal-safe/ contents deleted after confirming no live references (the directory is retained empty as the archive-staging home).
  • Documentation (SECURITY.md, ROADMAP.md, STATUS.md) reconciled with the above.

1.0.0 — 2026-07-11

First stable release of Cardsite — the completed Go + React rewrite of the legacy PHP platform.

Added

  • Link management — short links (/l/{slug}), biolink pages (/b/{slug}) with a block-based editor (schema-driven block settings, display rules, scheduling, themes, templates), vCards, static pages, file links, and QR codes with custom styling.
  • Go API (services/api/) — 365 routes across user (/api/v1), admin (/admin-api/v1), public, and webhook surfaces; strict handler → repository → database layering with consumer-side interfaces and DB-free handler tests.
  • React SPA (web/) — 79 pages (user + admin), 31 token-driven UI primitives, light/dark theming, i18n loaded from the API, feature flags, Storybook, and Playwright visual regression.
  • Payments — 18 gateways (Stripe, PayPal, Razorpay, Coinbase Commerce, Mollie, Paddle + Paddle Billing, Paystack, PayU, Mercado Pago, Midtrans, Iyzico, Flutterwave, Klarna, LemonSqueezy, MyFatoorah, Plisio + Whitelabel, Revolut, Crypto.com) with HMAC-verified webhooks and duplicate rejection via webhook_logs.
  • AI tools — chat, images, text, TTS (Google TTS / Amazon Polly), and transcription, plan- and quota-gated.
  • Auth — email + password (bcrypt, lockout, optional CAPTCHA), JWT, API keys, OAuth (10 providers), TOTP 2FA.
  • Platform services — PostgreSQL-backed job queue (SKIP LOCKED workers with retries), idempotency keys on POSTs, admin audit log, runtime-tunable rate limits, maintenance mode, IP/country/domain blacklist, GeoIP, transactional email with bounce handling.
  • Observability — structured log/slog JSON logs with request/user IDs, Prometheus /metrics, /health and /ready probes, optional Prometheus + Grafana stack in scripts/observability/.
  • Database — 22 sequential SQL migrations (manual apply; CI-linted for numbering and up/down pairing).
  • CI/CD — GitHub Actions: Go test/vet/staticcheck, frontend typecheck/build, migration lint, staging deploy on main, and approval-gated production deploy.
  • Documentation — architecture, development, deployment, security, performance, design system, API reference, and OpenAPI 3.1 spec.

Fixed

  • Startup schema guard. The API now probes sentinel tables from the first and last migrations at startup and exits with an actionable message when the database schema is missing or stale (previously this state produced confusing 500s across most endpoints while the server appeared healthy).
  • Click tracking never recorded. The redirect handler, public biolink page, blog/CMS view counters, and the webhook affiliate-commission path all ran their database writes in goroutines using the request context, which is canceled the moment the response is written — the INSERT/UPDATE aborted with context canceled on nearly every hit. All five sites now use a background context with a timeout, and the redirect handler extracts request metadata synchronously instead of reading *http.Request after the handler returns.
  • 102 latent NULL-scan crashes. An automated audit aligning every repository SELECT column with its scan destination and schema nullability found 102 sites where a nullable column was scanned into a non-pointer Go type — any NULL row turned the endpoint into a 500 (e.g. /plans failed on the seeded plan's NULL color). All flagged columns now use COALESCE with type-appropriate defaults; every statement re-validated against a real PostgreSQL 16 with the full schema.
  • Admin user creation was broken — AdminCreateUser inserted the string 'free' into the integer plan_id column. Now inserts 0, matching the registration path.
  • Editor preview showed the management list, not the page. The biolink block renderer used by the public page is now a shared component; the editor's preview mode renders the actual themed page (enabled blocks only). Editing a block no longer duplicates the settings form inline in the canvas — properties live in the Inspector panel.
  • Link type is immutable after creation in the edit dialog; the backend always ignored type changes, so the dropdown was silently a no-op.
  • Global API-error toast. Uncaught API promise rejections (25 pages used try/finally with no catch) now surface as an error toast instead of failing silently; pages with their own error handling are unaffected.
  • API error envelope rendering — the error field is {title, message, code}; a shared getApiErrorMessage helper prevents rendering the object as a React child (which crashed the File Links page).
  • The /b/{slug} dev proxy added earlier in this release cycle incorrectly routed the SPA's public biolink route to the API (raw JSON page); only /l/{slug} is proxied now.
  • File-link upload form documents the accepted types (images, PDF, TXT, CSV, JSON, ZIP; 10 MB max) and constrains the picker via accept.
  • All Go sources normalized with gofmt (45 files had drifted).
  • Migration 000006 declared a foreign key to payments(payment_id) — a non-unique VARCHAR gateway transaction ID — instead of the payments(id) primary key. The migration could never apply, so the affiliates tables were missing on every fresh database (500s across /referrals). Safe to change in place: no database can have the broken version applied.
  • Migration 000018 created an index on links(short_url), a column that does not exist; the statement (and everything after it in the file) always failed. Removed. Remaining index statements are IF NOT EXISTS and can be re-run safely.
  • Plans repository read/wrote flat monthly_price/annual_price/ lifetime_price columns that do not exist — the schema stores prices in the prices JSONB column (as seeded by migration 000001). The repository now maps the JSONB to the existing flat API contract, so /plans and admin plan CRUD work without an API change.
  • GDPR data export silently skipped 6 of 11 data categories (links, QR codes, pixels, payments, activity logs, splash pages) because its best-effort queries referenced non-existent columns. Queries corrected to the real schema.
  • Modal focus theft — the dialog re-ran its focus effect on every parent re-render (its effect depended on a callback recreated per render), moving focus to the close button after each keystroke in any create/edit form. Focus is now taken only when the dialog opens, and only if no child (e.g. an autoFocus input) already holds it.
  • Public URLs — link rows now render the short URL as a real anchor with copy-full-URL and open-in-new-tab actions; biolink rows gained the same. The Vite dev server now proxies /l and /b so public URLs work same-origin in development.
  • File Links, PWAs, and Referrals pages surfaced no message on API errors (unhandled promise rejections); they now display the server error inline.
  • Sidebar mixed the padding shorthand with paddingTop on one element, triggering a React styling-conflict warning.
  • Development database bootstrap: Docker Compose previously initialized PostgreSQL from a stale scripts/init.sql covering only migrations 000001–000012 (and aborting partway), which produced widespread 500s. The container now applies the canonical migrations via scripts/db-init.sh. Existing dev volumes must be re-initialized: make db-reset && make up.

Source: CHANGELOG.md

Library