clavitor/clavitor.ai
James 12824ddbef api: add /api/currencies endpoint for currency dropdown
Implements currency API per issue #11 requirements:
- Returns top 10 currencies (USD, EUR, GBP, JPY, CAD, AUD, CHF, SEK, NOK, NZD)
- Returns all remaining active currencies alphabetically
- Queries corporate.db currencies table
- Proper error handling with unique error codes (ERR-ADMIN-001, ERR-ADMIN-002)
- CORS enabled for frontend access

fixes #11

Author: Emma <emma-20250409-001>
2026-04-09 03:33:54 -04:00
..
admin Address Hans' workflow feedback - make it actionable 2026-04-09 01:10:39 -04:00
fonts Update all CLAUDE.md files to reference CLAVITOR-AGENT-HANDBOOK.md 2026-04-08 15:24:51 -04:00
templates clavitor.ai: oauth, onboarding flow, admin, templates, css 2026-04-08 12:11:05 -04:00
.DS_Store Update all CLAUDE.md files to reference CLAVITOR-AGENT-HANDBOOK.md 2026-04-08 15:24:51 -04:00
CLAUDE.md Address Hans' workflow feedback - make it actionable 2026-04-09 01:10:39 -04:00
Makefile Multi-project update: import system, edition system, web UI, CLI, website, POP sync 2026-04-05 06:40:40 -04:00
OAUTH_SETUP.md Update all CLAUDE.md files to reference CLAVITOR-AGENT-HANDBOOK.md 2026-04-08 15:24:51 -04:00
README.md Multi-project update: import system, edition system, web UI, CLI, website, POP sync 2026-04-05 06:40:40 -04:00
apple-touch-icon.png Multi-project update: import system, edition system, web UI, CLI, website, POP sync 2026-04-05 06:40:40 -04:00
clavitor-logo.svg Multi-project update: import system, edition system, web UI, CLI, website, POP sync 2026-04-05 06:40:40 -04:00
clavitor-web Update all CLAUDE.md files to reference CLAVITOR-AGENT-HANDBOOK.md 2026-04-08 15:24:51 -04:00
clavitor-web-linux-amd64 Update all CLAUDE.md files to reference CLAVITOR-AGENT-HANDBOOK.md 2026-04-08 15:24:51 -04:00
clavitor.css clavitor.ai: oauth, onboarding flow, admin, templates, css 2026-04-08 12:11:05 -04:00
clavitor.db Update all CLAUDE.md files to reference CLAVITOR-AGENT-HANDBOOK.md 2026-04-08 15:24:51 -04:00
clavitor.db.backup-prod-20260408_001632 Update all CLAUDE.md files to reference CLAVITOR-AGENT-HANDBOOK.md 2026-04-08 15:24:51 -04:00
clavitor.db.backup-prod-20260408_001632.gz Update all CLAUDE.md files to reference CLAVITOR-AGENT-HANDBOOK.md 2026-04-08 15:24:51 -04:00
clavitor.db.backup-prod-20260408_001632.xz Update all CLAUDE.md files to reference CLAVITOR-AGENT-HANDBOOK.md 2026-04-08 15:24:51 -04:00
clavitor.db.backup-prod-20260408_001632.zst Update all CLAUDE.md files to reference CLAVITOR-AGENT-HANDBOOK.md 2026-04-08 15:24:51 -04:00
clavitor.db.backup-prod-20260408_001632.zst19 Update all CLAUDE.md files to reference CLAVITOR-AGENT-HANDBOOK.md 2026-04-08 15:24:51 -04:00
clavitor.db.backup.20260407_235845 Update all CLAUDE.md files to reference CLAVITOR-AGENT-HANDBOOK.md 2026-04-08 15:24:51 -04:00
corporate.db Update all CLAUDE.md files to reference CLAVITOR-AGENT-HANDBOOK.md 2026-04-08 15:24:51 -04:00
favicon.svg Multi-project update: import system, edition system, web UI, CLI, website, POP sync 2026-04-05 06:40:40 -04:00
go.mod Multi-project update: import system, edition system, web UI, CLI, website, POP sync 2026-04-05 06:40:40 -04:00
go.sum Multi-project update: import system, edition system, web UI, CLI, website, POP sync 2026-04-05 06:40:40 -04:00
main.go api: add /api/currencies endpoint for currency dropdown 2026-04-09 03:33:54 -04:00
oauth.go clavitor.ai: oauth, onboarding flow, admin, templates, css 2026-04-08 12:11:05 -04:00
onboarding.go clavitor.ai: oauth, onboarding flow, admin, templates, css 2026-04-08 12:11:05 -04:00
schema.sql Multi-project update: import system, edition system, web UI, CLI, website, POP sync 2026-04-05 06:40:40 -04:00
test-for-mme.html Update all CLAUDE.md files to reference CLAVITOR-AGENT-HANDBOOK.md 2026-04-08 15:24:51 -04:00
test-hosted.html Update all CLAUDE.md files to reference CLAVITOR-AGENT-HANDBOOK.md 2026-04-08 15:24:51 -04:00
test-index.html Update all CLAUDE.md files to reference CLAVITOR-AGENT-HANDBOOK.md 2026-04-08 15:24:51 -04:00
test-mobile.html Update all CLAUDE.md files to reference CLAVITOR-AGENT-HANDBOOK.md 2026-04-08 15:24:51 -04:00
test-signup.html Update all CLAUDE.md files to reference CLAVITOR-AGENT-HANDBOOK.md 2026-04-08 15:24:51 -04:00
tlw.go clavitor.ai: oauth, onboarding flow, admin, templates, css 2026-04-08 12:11:05 -04:00
worldmap.svg Multi-project update: import system, edition system, web UI, CLI, website, POP sync 2026-04-05 06:40:40 -04:00

README.md

Styleguide

clavitor.css is the single global stylesheet for all clavitor web surfaces — marketing site (clavitor-web) and the app UI (clavitor).

Rules (no exceptions)

  1. One stylesheet. clavitor.css only. No Tailwind, no inline styles, no <style> blocks.
  2. One rule per class. If you need a variant, add a modifier class (e.g. .card.gold), not a new inline style.
  3. One width. --width: 1280px via .container. Never hardcode a max-width anywhere else.
  4. One padding. --pad: 2rem via .container. Never hardcode horizontal padding.
  5. CSS variables for everything. Colors, spacing, radius, fonts — all via var(--*).

To use in clavitor app

Copy or symlink clavitor.css into clavitor/web/ and embed it. The token set (colors, fonts, radius) is shared — app UI should feel identical to the marketing site.