Commit Graph
12 Commits
Author SHA1 Message Date
CatoandClaude e4719fdc80 feat(brand): the cat rotorelief, and Loki's disc, replace the coils (#1476)
The Cat's mark is now a cat's head whose face is one of Duchamp's
rotoreliefs (Anémic Cinéma, 1926): off-centre rings that, turned, read
as a tunnel breathing in and out. Only the rings turn (new motion
'turn', about the face's centre); the head stays still. On its icon tile
the Cat wears Bitcoin orange (new iconInk); elsewhere it is currentColor.

Loki's mark mirrors bitbaum/loki's new rotorelief disc.

The installed OrangeCat icon showed as a blank black tile on an Android
home screen. The manifest was the only one in the fleet listing its SVG
icon first; generate:brand now lists the PNGs first and the SVG last.


Claude-Session: https://claude.ai/code/session_019MDtmreRmsJkmf3AcYy6DS

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-30 09:52:18 +01:00
CatoandClaude 45fd5e076a docs: archive 2025 plans that read as current (#1351)
Forty-five 2025 plans, assessments, design scenarios, status reports and
superseded business docs move to docs/archive/ (same relative path). Each
described a plan or a snapshot as if it were the running system: strict:false,
a five-table schema, an "organization" entity, price_sats, a Gemini /api/chat
widget, a /auth/forgot-password page, Google Places, building group labels and
contract voting flows that never landed.

Fixed in place: NAVIGATION_UX_DESIGN.md (referenced by .claude/rules) gains a
status note naming what shipped and where; GENERIC_API_HANDLERS.md lists the
handler options the code actually takes; datetime_standards.md points at
scripts/dev/; CONTRIBUTING.md describes the auto-merge shipping flow. Inbound
links repointed (SECURITY.md at the root, SUPABASE_SCHEMA_GUIDE.md for schema).


Claude-Session: https://claude.ai/code/session_01PJkbo18cRNXtgPWZN2S9cD

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-19 14:25:12 +02:00
CatoandClaude Opus 5.5 24c3d140ae docs: archive point-in-time records, fix live docs against the tree (#1349)
* docs: archive point-in-time records, drop broken guide symlinks

Status reports, progress trackers, audits, session summaries, completed
migration plans and the 2025 roadmap move to docs/archive/ (same relative
path), with a README saying they describe the day they were written.
.ai-guides/ held only symlinks into a docs/guides/ai/ that no longer
exists, tests/unit/docs/ held a stray copy of an old getting-started page,
and docs/operations/PORT_MANAGEMENT_README.md duplicated port-management.md;
all three are deleted.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PJkbo18cRNXtgPWZN2S9cD

* docs: correct drifted paths, links and versions in current docs

Fix in place the reference docs agents use: point paths at where the code
lives now (src/stores/auth.ts, src/lib/supabase/*, scripts/dev/*,
docs/reference/api/CONVENTIONS.md, the squashed baseline migration),
rewrite the development, features, operations and API index pages to list
documents that exist, say plainly where something is gone (/api/metrics,
the CSP report route, .envrc in the repo, Loki's `migrate` script), and
correct the Next.js major. docs-truth findings: 468 -> 2 (both "Next 30/90
Days" headings in the legal overview, a checker false positive).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PJkbo18cRNXtgPWZN2S9cD

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-19 14:09:06 +02:00
CatoandClaude Opus 5.5 f39bb1beff design: every mark is one file, replaced with one command (#1315)
* design: every mark is one file, replaced with one command

  pnpm run brand:import <slug> <file.svg>

converts any SVG (Figma, Illustrator, Inkscape, an icon set) into
src/config/marks/<slug>.ts, rebuilds the registry, and for this app's own
slug regenerates every static icon. Nothing else changes: the header,
hero, auth page, share cards, studio tiles, pillars and project banners
all render from the registry through one generic <Mark>, and know nothing
about which drawing they show.

- src/config/marks/: one data file per mark (viewBox + stroked/filled
  shapes + motion), a generated index (MARKS, markFor), and generators/
  for the marks drawn by code (OrangeCat's cat coil, Loki's coil). Solon's
  scales were imported through the new command from lucide's SVG.
- <Mark>, <ProjectMark slug> (mark from the registry, else the initial),
  BrandMarkIcon and the share-card mark all render any MarkDefinition.
  PillarMark and sibling-marks.ts are gone.
- Giving any studio project a face is the same command with its fleet
  slug; its tile and banner pick it up.
- The importer keeps geometry and how each shape is painted, drops colours
  and a full-size background, and refuses transforms, clip paths, masks,
  <use>, <text> and <image> with a message saying what to do, rather than
  producing a mark that is quietly wrong.
- The brand test is written against any mark: registry matches the folder,
  every mark is drawable, static icons equal exactly what the generator
  writes. Replacing the drawing never means rewriting the test.
- Brand scripts run with plain node: a dependency-free resolve hook maps @/
  and extensionless imports so they load the app's TypeScript directly.

Verified by swapping in a throwaway SVG end to end (icons regenerated,
background dropped, holes kept, gate green) and restoring the coil.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01M6u11m24oVkG98wAVbN7nf

* fix(home): the badge fits a phone, the headline breaks at its tone, Loki's banner opens Loki

Found reviewing the live site after #1314 deployed:
- the three-part hero badge ran off a 390px screen; on phones it now
  carries the lead phrase alone
- the two-tone headline wrapped mid-phrase on desktop, so the dim tone
  started partway through a line; the tail now takes its own line from sm
- StudioProjectBanner reused the tile's link for its door, which for a
  project funded here is the page itself — Loki's banner had no way to
  open Loki. FleetTile now carries liveUrl, tested.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01M6u11m24oVkG98wAVbN7nf

* fix(brand): the importer strips to a fixed point and refuses non-path data

CodeQL (3 high, incomplete multi-character sanitization): one pass of the
comment/<style> stripping over '<!<!--x-->-- … -->' leaves a fresh '<!--'
behind, and what it hid was then read as markup. The path is narrow — a
crafted SVG given to brand:import — but a mark's path data is written
verbatim into public files (favicon.svg), so it is closed twice:

- stripping repeats until nothing changes;
- every shape's path data must be pure path syntax (commands, numbers,
  separators), or the import is refused with a message. A quote or angle
  bracket can never reach a file, whatever the input looked like.

Tested both: a hidden shape behind a nested comment is not imported (a
single-pass strip imports it), and markup smuggled through a single-quoted
d is refused.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01M6u11m24oVkG98wAVbN7nf

* fix(brand): read SVG comments and ignored blocks in one forward scan

CodeQL still flagged the comment/<style> stripping after a3e2b25: it does
not credit a repeat-until-stable loop, and rightly so in spirit — regex
removal is the wrong tool. withoutIgnoredMarkup() now walks the input once,
skipping comments, CDATA, processing instructions, doctypes and the
never-drawn blocks (defs, title, desc, metadata, style) by position. It
never re-reads what it emitted, so no removal can leave a new opener behind.
The CSS CDATA unwrap is split/join, not a regex replace.

Safety still rests on PATH_DATA: nothing but path syntax reaches a file.
Tests: contents of comments and never-drawn blocks are not imported; tangled
comments yield only path data; the scanner's skips are pinned. Re-importing
Solon's scales gives a byte-identical mark file.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01M6u11m24oVkG98wAVbN7nf

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-11 16:42:46 -07:00
CatoandClaude 095b963ccd design: one mark, a cinematic fold, and the studio on every page (#1314)
The mark is now a coil that is a cat: one continuous stroke wound inward
with two ears on its outer turn — Loki's spiral wearing the cat. Its
geometry lives once, in src/config/brand-mark.ts; BrandMarkIcon, the share
cards, favicon.svg, orange-cat-logo.svg, a real favicon.ico (16/32/48
PNG-ICO), apple-icon.png and the PWA icons are all rendered or generated
from it (pnpm run generate:brand), and a unit test fails on any drift.

Why: three different marks were live — a cat face in the header, a
"window with ears" on every share card, and where favicon.ico should
have been, a 155 KB fav.farm HTML page served as image/x-icon, so the tab
icon was broken in every browser that prefers .ico. The 144px PWA icon
was one byte. Nothing generated those files, so nothing could notice.

The home fold is rebuilt to Loki's and Solon's standard: centred,
viewport-relative two-tone display type, the mark drawing itself in above
the headline, a radial-glow + dot-grid backdrop (tokens only, survives
light mode), one warm action, and real numbers underneath (HomePulse: the
same public-only counts /discover uses, plus the studio's live count from
Loki's fleet map). The three-card row that repeated the hero's own actions
is gone, with its FIRST_MOVES config.

The studio is on the front page (StudioSection: the three pillars with
their real marks, then every live studio product as a tile, each a door),
closes /ecosystem grouped by layer, and a studio project's own page wears
its face (StudioProjectBanner: mark, live door, last moved, siblings). The
list is Loki's fleet map, never a copy; when the map is unreachable the
pillars stand and the grids are absent, and no page fails. Selection and
ordering are pure and tested (studio-fleet.ts).


Claude-Session: https://claude.ai/code/session_01M6u11m24oVkG98wAVbN7nf

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-11 16:15:02 -07:00
CatoandClaude Fable 5.1 9a352d3646 refactor: rename FleetCrown to Loki across the integration (#1016)
The sibling product was renamed on 2026-09-14. Every reference follows:
service and route paths (src/services/loki, /api/integrations/loki),
env keys (LOKI_*), the build-intent audience and timeline source ('loki'),
ecosystem config, docs, tests, and 13 file names.

Tool labels keep "Loki" capitalised: the old name had an internal capital
and passed the "looks like a name" shape test for free; a one-word name
needs listing, so softLower now carries a small PROPER_NOUNS set.

Box and data were moved ahead of this: LOKI_* keys sit beside the old ones
in the app env, the OAuth client is `loki` with the new callback host, and
timeline/metadata rows carrying the old name were rewritten.


Claude-Session: https://claude.ai/code/session_016YJVAanfj8keVSXyZnTemh

Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-13 16:40:27 -07:00
c022bfdf46 docs: sync docs with actual stack (#890)
Truth-sweep of the living docs against repo ground truth (pnpm 11.25.0,
Node 24, Vitest, zod 4, TS 6, Next 16/React 19, self-hosted Supabase with
file-based migrations applied on deploy):

- npm/npx commands -> pnpm / pnpm exec / pnpm dlx; `run X -- --flag`
  loses the `--`; package-lock.json -> pnpm-lock.yaml
- jest -> Vitest (config names, vi.fn/vi.spyOn, reporter examples,
  debug commands, framework mentions)
- retired mcp_supabase_* examples -> current mechanisms: PostgREST
  reads, migrations as supabase/migrations/*.sql applied on deploy,
  box psql for DDL
- version claims: TypeScript 5.x -> 6.x, Node 20 -> 24, Next.js 15 ->
  16, React 18 -> 19; CI described as Node 24 + pnpm
- nonexistent scripts replaced with real ones (test:comprehensive:* ->
  test:*, diag:supabase -> scripts/diagnostics/*, db:migrate/test:
  migration -> deploy-applied migrations / migration-replay.yml)
- infrastructure.md deploy claim fixed: cd.yml deploys main after green
  CI (doc said pushes to main do NOT deploy)
- zod 4 API: z.record now takes key+value schemas


Claude-Session: https://claude.ai/code/session_01WqKqMnHQHSmkGFfc5t7Rxn

Co-authored-by: Georgy Butaev <41178744+g-but@users.noreply.github.com>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
2026-09-04 17:02:55 +00:00
628bf6226f fix: SSOT consolidation, loan API path, stakeholders v1 + SDK
* refactor: SSOT consolidation pass — config, discover, payments, UI primitives

Deep audit remediation across SSOT/DRY/SoC and design-system consistency:

- Add config SSOT modules: discover-tabs, payment-presets, features, env
- Centralize CAT_FREE_DAILY_LIMIT, wired AI providers, credits markup label
- Remove phantom API routes; add WALLETS.ENTITY_VISIBILITY; timeline.write scope
- Unify discover tab mappings; shared waitlist schema; research POST uses parsed.data
- Migrate Card/Badge to semantic tokens; ModelSelector reads AI_MODEL_REGISTRY
- Responsive payment amount grids; reconcile design-system README
- Update docs/AUDIT_REPORT.md with phased roadmap for remaining structural debt

Co-authored-by: Cursor <cursoragent@cursor.com>

* fix(loans): route create/update/delete through /api/loans

Close the loan dual-path: UI hooks and CreateLoanDialog no longer insert or
update loans via browser Supabase. New api-client maps form payloads to the
finance loanSchema, handles partial PUT via fetch-merge, and delegates to the
domain layer behind POST/PUT/DELETE /api/loans.

Pinned by unit tests for payload mapping. createObligationLoan remains on the
browser path until offer-accept moves server-side (tracked in AUDIT_REPORT).

Co-authored-by: Cursor <cursoragent@cursor.com>

* feat: stakeholders v1 API, SDK integration, semantic UI primitives

Unblocks PR #396 CI (slop scan), completes Phase C dialog/select/dropdown
migration, and exposes stakeholder graph + timeline.publish to FleetCrown via
v1 routes, scopes, OpenAPI, and @orangecat/sdk namespaces.

Co-authored-by: Cursor <cursoragent@cursor.com>

---------

Co-authored-by: Georgy Butaev <41178744+g-but@users.noreply.github.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-09 08:10:29 +02:00
Georgy ButaevandClaude Opus 4.8 ae55dc1f80 docs: consolidate taxonomy from ~40 dirs into ~13 coherent areas
The docs tree had sprawled into ~40 overlapping/singleton/empty directories.
Consolidated (history preserved via git rename detection; links rewritten so
no previously-working link broke):

- architecture/ ← adr/, database/, + loose *_ARCHITECTURE / my-cat specs
- development/  ← standards, contributing, guides, examples, templates, components, ai
- operations/   ← devops (+runbooks), deployment, supabase
- design-system/← design, UX, ux-improvements, branding
- reference/    ← api, changelog, content, misc
- forward-looking/ ← planning, improvements, implementation
- archive/2026-h1/ ← point-in-time reports/plans that were loose at docs/ root
- removed empty docs/analysis/; rewrote docs/README.md as a current index

Verified: non-README relative-link health 81→83 OK (0 regressions, same 64
pre-existing-rot broken); all new README links resolve; external refs in
.claude/ + root repointed to moved targets.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-15 11:34:28 +02:00
Georgy ButaevandClaude Opus 4.7 096d6b9ca2 feat(brand): geometric mark + neutral primary + brand SSOT
Mirror x.ai aesthetic: agent-window mark (currentColor strokes), neutral
primary palette, brand strings consolidated in src/config/brand.ts.

- brand.ts: APP_NAME / APP_KICKER / APP_TAGLINE / BRAND_ACCENT_HEX
- BrandMark + BrandMarkIcon: single geometric mark used by header,
  Cat surfaces, favicon, og image
- Logo + CatIcon now thin wrappers around BrandMark / BrandMarkIcon
- :root --primary flipped from Tiffany to near-neutral; tiffany/orange
  remain available as sparse Bitcoin/status accents only
- .oc-chat-* component classes seed the chat-surface SSOT in globals.css
- Static SVGs (favicon + og) match BrandMarkIcon geometry pixel-for-pixel

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-06-03 13:02:02 +02:00
cato 7bd344de18 � PRODUCTION READY: Complete deployment preparation - Security hardening (vulnerabilities 13→1), build fixes (TypeScript/auth), performance optimizations (SWC/caching), 83.3% test success rate, modular architecture - Ready for GitHub→Vercel deployment 2025-06-08 20:33:33 +02:00
cato 3976c6992a feat: implement modular architecture and profile management 2025-04-13 17:00:34 +02:00