21 Commits
Author SHA1 Message Date
CatoandClaude Opus 5.5 ebe51fa38e feat(auth): every way in on AccountKit's own screens (#289)
* feat(auth): every way in on AccountKit's own screens

Botsmann signed people in against OrangeCat's GoTrue (auth.users). It now
runs on AccountKit (@bitbaum/accountkit 0.23) with AccountKit's own forms:
/auth/signin offers email and password, an emailed sign-in link, a
passkey, recovery through the mailed link and the second factor;
/auth/signup is sign-up; /account carries the account panel ("Sign-in and
security" in the account menu). "Continue with OrangeCat" and the shared
sign-in show when their clients are set, the link and recovery when mail
is. The GoTrue routes (/api/auth/signin, signup, forgot-password,
resend-verification, profile) and pages (callback, forgot-password,
reset-password, verify-email) and the cookie-session client are gone.

AccountKit's tables live in a host accounts database (drizzle/, loki
accounts-db.conf); the data stays in the botsmann supabase schema, which
every route already read with the service-role client. verifyUser now reads
AccountKit's session; /api/user/profile moves onto it too. New accounts get
uuid ids, and migration 013 drops the person columns' keys to auth.users,
which a new person's id is not in. Nothing is deleted. The profile editor
writes AccountKit's name and image.

Existing people keep their rows: scripts/db/accountkit-people.sql lists
everyone who owns rows with their OrangeCat actor id, and
scripts/db/accountkit-import.sql gives each an account under the same id,
linked to OrangeCat by that actor id, never by address (loki
accountkit-supabase.yml rehearses it rolled back, then imports).

Pages were served with public, max-age=3600 to every browser, account pages
included: after sign-out the browser showed its cached /account. /account
and /auth/* are now private, no-store. The account menu's trigger has a name.

tests/__tests__/accounts runs the ways in and the import on the committed
migration; browser-smoke.yml's account job rehearses the import and runs
the browser journey against the production build with AccountKit's real
mail caught by a sink.

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

* fix(auth): send a signed-out visitor to sign in with the router

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

* ci(auth): the shared sign-in's button is matched by how it starts

AccountKit 0.24 names only the providers Morulia publishes, so the label
changes with Morulia.

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

* ci(auth): expect the shared sign-in only once Morulia publishes a provider

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

* ci: run the checks on the journey change

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

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-02 23:27:16 +01:00
a04d484451 refactor(email): SES -> @bitbaum/mail-kit; drop @aws-sdk/client-ses (#178)
The playbook expected no SES call sites, but lib/email/service.ts is live
(consultations route sends welcome + admin mails through it), so a bare dep
removal would have broken the build. Instead the transport is swapped to the
fleet's mail layer:

- EmailService now sends via @bitbaum/mail-kit sendMail; the throw-on-failure
  contract is preserved for the catching caller
- Sender comes from RESEND_FROM (fleet SSOT) with conventionalFrom('Botsmann')
  fallback; FROM_EMAIL and NEXT_AWS_* reads deleted from email config paths
- @aws-sdk/client-ses removed; tests mock @bitbaum/mail-kit instead of SES,
  with a new failed-send assertion


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

Co-authored-by: Mao Nakamoto <41178744+maonakamoto@users.noreply.github.com>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
2026-09-05 10:14:55 +00:00
8582b92f90 refactor(deps): Tailwind 4 (CSS-first) + Zod 4 + ESLint 10 + types/node 26 + ai-kit 0.6.2 (#168)
Tailwind 3.4 -> 4.3:
- tailwind.config.js DELETED; tokens now live in an @theme inline block in
  app/globals.css (semantic names unchanged: action, paper, edge, ink...)
- postcss.config.js -> @tailwindcss/postcss; autoprefixer dropped (built in)
- @tailwind directives -> @import 'tailwindcss'; forms/typography via @plugin
- daisyui removed (no daisyui class used anywhere)
- next/font vars renamed --font-inter/--font-fraunces to break the circular
  var() the old --font-sans binding would create inside @theme
- v4 deleted *-opacity-* utilities: every bg/text/ring-opacity-N rewritten to
  slash syntax (bg-action/90, ring-black/5, ...); dynamic accent tint gets a
  literal class map in lib/config/colors.ts so the scanner sees each class
- dead v3-era aspect-w/h custom utilities removed (unused; v4 has aspect-*)

Zod 3.24 -> 4.5:
- .errors -> .issues everywhere
- z.string().uuid( -> .guid( (v4 uuid() is RFC-variant-strict; DB ids aren't)
- z.record(z.unknown()) -> z.record(z.string(), z.unknown())
- object .default({}) -> .prefault({}) (v4 default takes the full output value)

ESLint 9 -> 10: eslint-plugin-react's version:'detect' calls the removed
context.getFilename; pin settings.react.version='19' AFTER the next configs.

Verify (format+lint+typecheck+selfhost+test+build) green: 272 tests pass.


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

Co-authored-by: Mao Nakamoto <41178744+maonakamoto@users.noreply.github.com>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
2026-08-31 12:45:49 +00:00
346a3ff744 refactor(design): the bot demo was the sixth colour system (#150)
#144 branded the bot page sections. It did not reach the demo underneath
them, so every first-party bot still ran the per-colour palette in its
interactive step -- the buttons, focus rings, progress dots, message bubbles,
dropzone and context panel -- plus the bot switcher in the nav.

The colour came from lib/demo/botDemoConfigs.ts, which carried its own
accentColor per bot (blue, green, red, indigo, amber). That is the sixth
place a colour was chosen, after: globals.css, lib/config/colors.ts,
lib/hooks/navigationConfig.ts, ACCENT_HERO_CLASSES, and data/professionals.ts.

DemoSection and BotSwitcher are used ONLY by the first-party bot pages
(verified: no custom-bot page imports either), so both are now brand:
BRAND_BUTTON, BRAND_FOCUS_RING, BRAND_STARTER, BRAND_CHECKBOX, BRAND_PROGRESS,
BRAND_MESSAGE, BRAND_DROPZONE, BRAND_CONTEXT_PANEL, BRAND_SWITCHER.

accentColor is gone from the demo config, its type, and the whole prop chain.

What still emits raw palette, correctly:
  VISION_STATUS_CONFIG   roadmap status -- completed green, in-progress blue,
                         planned amber, vision purple. Four states that have to
                         stay tellable apart; collapsing them to ochre would
                         destroy the information.
  the /personal templates per-template identity in the memorial/legends
                         product, chosen from an allowlisted surface.

Both live behind lib/config/colors.ts, which the guard already documents as an
exception -- so the guard passing while those classes ship is correct, not a
blind spot. The blind spot was data/professionals.ts, fixed in #149.

verify: format, lint, typecheck, 256 tests, build -- all green. Bot demo
confirmed ochre end to end against a local production build.


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

Co-authored-by: Mao Nakamoto <41178744+maonakamoto@users.noreply.github.com>
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
2026-08-28 10:21:48 +00:00
17689c1358 feat(bots): restore the content for the remaining four bots (#147)
Follows #146, which proved the pattern on Imhotep: recover the copy from
the components deleted in 4600019e, express it with existing section types,
add the nav entry, let the nav-integrity guard verify it. No new components.

  research-assistant   5 -> 8 sections   3,062 -> 4,366 chars  (+43%)
    research-system  the six ways Nerd organises an upload
    scraping         the six sources it watches (ArXiv, Scholar, PubMed,
                     Nature, Science Daily, MIT Tech Review)
    drafts           abstract / literature review / methodology / discussion

  product-manager      5 -> 8 sections   2,539 -> 3,752 chars  (+48%)
    benefits         the four Trident actually delivers
    showcase         feature planning, technical debt, cross-team coordination
    integration      GitHub and Jira, with what each one does

  swiss-german-teacher 5 -> 8 sections   2,793 -> 3,900 chars  (+40%)
    language-learning  vocabulary, conversation, grammar
    communication      email and texting, in the right register
    culture            video, podcasts, articles

artistic-advisor keeps 5 sections: it only ever had 217 lines, so unlike the
others it lost almost nothing. It gains two nav entries for the sections it
does have, instead of a two-item menu.

Nav went from a low of two items per bot to five or six, and every entry
points at a section that renders -- enforced by the guard added in #146.

Copy was rewritten rather than pasted. The originals were written for a
different page structure and carried filler; this keeps the substance and
drops the padding.

verify: format, lint, typecheck, 253 tests, build -- all green. Verified
visually against a local production build.


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

Co-authored-by: Mao Nakamoto <41178744+maonakamoto@users.noreply.github.com>
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
2026-08-28 09:22:50 +00:00
4447a97afb fix(bots): repair 20 dead nav links, restore Imhotep's lost content (#146)
The config-driven refactor (4600019e) deleted ~16,000 lines of bot page
content but left data/bots.ts still advertising it. Every bot's nav kept
linking to sections that no longer existed:

  swiss-german-teacher  communication, culture, waitlist
  research-assistant    scraping, drafts, questions, discovery,
                        integration, roadmap
  medical-expert        harm-reduction
  artistic-advisor      styles, techniques, get-started
  product-manager       workflow, showcase, examples, integration,
                        testimonials, pricing, get-started
  legal-expert          get-started

Twenty menu items that scrolled nowhere, on the live site, for seven months.
Nothing failed because nothing compared data/bots.ts to bot-pages.ts.

Now they do: tests/__tests__/lib/bot-nav-integrity.test.ts asserts every nav
item targets a section the page actually renders, and that ids are unique.
Mutation-verified -- repoint one item at a missing section and it fails and
names it.

legal-expert's 'Get Started' was repointed to the cta section it clearly
meant. The rest are removed, because the sections they named are gone.

Content restored for medical-expert, recovered from the deleted components
and ported as config (no new components needed):
  medbox         MedBox home health lab -- the 6 sensors
  health-topics  the 6 topics Imhotep covers
  regimens       Basic / Advanced, and how they compare to Blueprint

Its page goes from 7 sections to 10, and from 3,833 to 5,380 rendered
characters. The nav gains MedBox and Topics in place of the dead link.

NOT restored: the harm-reduction section, a substance comparison table
covering heroin, methamphetamine, MDMA, LSD and psilocybin. On a site
offering AI health guidance that is a product and possibly a regulatory
decision, not a cleanup one. It stays in git at 4600019e^ pending a call:
  git show 4600019e^:app/bots/medical-expert/components/features/HarmReductionSection.tsx

The other four bots still need their content ported; this is the pattern.

verify: format, lint, typecheck, 253 tests, build -- all green. Verified
visually against a local production build.


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

Co-authored-by: Mao Nakamoto <41178744+maonakamoto@users.noreply.github.com>
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
2026-08-28 10:42:26 +02:00
bb9d9490d0 refactor(design): one colour system on the bot pages (#144)
app/globals.css defines the identity -- editorial ink, one ochre accent --
and says so in a comment: "No generic AI gradient blue/purple." The bot
pages ignored it and ran a parallel palette, so a single viewport of
/bots/legal-expert showed a blue logo, a blue nav button and an ochre CTA
at the same time.

There were four colour sources, not two:
  lib/config/colors.ts        16-colour accent sets
  lib/hooks/navigationConfig  its own 5-colour NAV_COLOR_CLASSES
  ACCENT_HERO_CLASSES         a fifth set (whose green and indigo entries
                              both set chatBg to 'bg-blue-50' -- it was not
                              even self-consistent)
  raw Tailwind greys          text-gray-900 / bg-white / border-gray-200

The six professional bots are Botsmann, so they now wear the brand:
BRAND_ACCENT and BRAND_HERO, plus a single NAV_COLORS scheme. 113 raw
grey/white classes became semantic tokens (text-ink, text-ink-muted,
bg-surface, bg-paper, border-edge). The page ground is bg-paper, matching
the homepage instead of flat white.

The 'B' mark in BotNavigation was literally
`bg-gradient-to-r from-blue-600 to-purple-600` -- the exact thing globals.css
forbids by name. It now renders the shared <Logo>, so it cannot drift again.

Per-bot accentColor is gone from the first-party config and its plumbing.
The per-colour sets STAY for user-created bots: custom_bots.accent_color is
a real column with a CHECK constraint and the owner picks it. That is user
data, not a design token.

Also deleted components/shared/BotPageTemplate.tsx -- nothing imported it.

Not in this change: /try, /enterprise, /bots and /knowledge still carry
blue/purple gradients (72 files match the raw palette). Same class, separate
pass, so this one stays reviewable.

verify: format, lint, typecheck, 240 tests, build -- all green. Verified
visually against a local production build.


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

Co-authored-by: Mao Nakamoto <41178744+maonakamoto@users.noreply.github.com>
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
2026-08-28 08:16:47 +00:00
g-butandClaude Sonnet 4.6 aa515d3d89 chore: fix prettier formatting across 28 files
CI format:check was failing. Auto-formatted all files to match
Prettier config.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-03 09:45:47 +01:00
g-butandClaude Opus 4.6 33c9c835bd fix: apply remaining audit fixes (API standardization, SSOT configs)
Standardize signup route to use jsonSuccess/jsonError helpers, extract
connection status config, clean up StatusBadge/ProviderCard inline maps,
add input validation to knowledge route, fix domain validation.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-02 17:23:17 +01:00
g-butandClaude Opus 4.6 c6f00645a2 feat(config): add Zod environment validation with fail-fast
Created lib/config/env.ts as SSOT for all env vars with Zod schemas
(client + server split). Updated supabase.ts, supabase-server.ts, and
llm-client.ts to use getClientEnv()/getServerEnv() instead of raw
process.env access. Missing required vars now fail with clear messages.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-02 17:23:12 +01:00
g-butandClaude Opus 4.6 57083ad34f refactor(colors): centralize 8 duplicated color mappings into SSOT
Added 9 new mapping exports to lib/config/colors.ts (button, focus-ring,
checkbox, starter, message, dropzone, progress, context-panel, hero,
template-hover). Removed local accentColorClasses definitions from all
8 consumer components.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-02 17:23:12 +01:00
g-butandClaude Opus 4.6 9bf4630fd2 chore: clean up stale docs, fix outdated dates and content
- Archive 10 stale/completed docs to docs/archive/ (MongoDB-era,
  migration plans, stale status snapshots, AGENTS.md.new)
- Rewrite SHARED_CONTEXT.md: remove MongoDB sections, update env vars
  table to Supabase, fix project structure to match reality, fix data
  flow diagrams
- Fix "January 2025" typo → "January 2026" across 6 doc files
- Update governance demo dates from 2023 to 2026
- Fix "launching 2025" → "launching 2026" in techno-capital
- Update bot roadmap timelines and expected launch dates
- Fix demo chat bot status from "coming soon" to "demo available"
- Add missing OPENROUTER_API_KEY to .env.example
- Fix stale path in RALPH.md (src/lib/schemas/ → lib/validations/)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-10 10:22:39 +01:00
g-butandClaude Opus 4.6 be1f76ea9e refactor: fix DRY/SSOT violations and Tailwind build bug
- Fix dynamic Tailwind classes in ProfessionalDemo.tsx that were purged
  at build time by replacing string interpolation with static lookups
- Deduplicate LLM config by importing GROQ/OpenRouter constants from
  API_CONFIG instead of defining them locally in llm-client.ts
- Remove duplicate input type interfaces from types/ that duplicated
  Zod-inferred types in lib/validations/, re-export from SSOT
- Extract shared navigation config (AUTH_NAV_ITEMS) and icon components
  used by both AuthNav and MobileNav into lib/config/navigation.ts

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-09 23:15:08 +01:00
g-butandClaude Opus 4.5 50a04ec062 feat(chat): add model indicator, selector, privacy tiers & auth CTA
Add model visibility and switching UI for AI professionals:
- ModelIndicator: shows current model with icon in chat header
- ModelSelector: dropdown to switch models (auth-gated for guests)
- PrivacyTierInfo: expandable Cloud vs Self-Hosted comparison
- ChatAuthCTA: dismissible guest conversion banner

Config files (SSOT):
- privacy-tiers.ts: tier definitions, model display config
- auth-cta.ts: CTA content for guest/authenticated users

Also increases quick-chat maxTokens from 256 to 1024 to prevent
response cutoff.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-29 10:40:12 +01:00
g-butandClaude Opus 4.5 4600019eb3 refactor(bots): config-driven bot pages architecture
Replace individual static bot pages with a single dynamic [slug]/page.tsx
that renders from centralized configuration. This makes adding new bots
a matter of editing config files only - no new page files needed.

Architecture changes:
- Add lib/config/bot-pages.ts as SSOT for all bot page content
- Add components/shared/sections/ with generic section components
- Add app/bots/[slug]/page.tsx as single dynamic page
- Remove 100+ files from individual bot directories

New section components:
- DisclaimerSection, FeaturesSection, HowItWorksSection
- BenefitsSection, TestimonialsSection, VisionSection
- TechnologySection, CTASection, DemoSectionWrapper

To add a new bot now:
1. Add entry to lib/config/bot-pages.ts (sections + content)
2. Add hero config to data/botHeroConfigs.ts
3. Add demo config to lib/demo/botDemoConfigs.ts
4. Add basic info to data/bots.ts
Done - no new page.tsx files needed!

Files deleted: ~100+ (bot-specific pages/components)
Files added: 11 (config + generic sections)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-28 18:57:33 +01:00
g-butandClaude Opus 4.5 6c25dc8dfe refactor: comprehensive code quality improvements (DRY, SSOT, SoC)
## Broken Links Fixed
- Fix /projects/governance/build link to /contact in HeroSection.tsx

## Console Statements Removed (production code)
- Remove console.log/error from client components
- Replace with silent error handling or UI feedback
- Files: documents/page.tsx, try/page.tsx, settings/page.tsx,
  ConversationList.tsx, ProfessionalDemo.tsx, and more

## Inline Styles Converted to Tailwind
- Replace animation-delay inline styles with Tailwind arbitrary values
- Files: DemoMessage.tsx, DemoChat.tsx, ProfessionalDemo.tsx,
  QuickChat.tsx, demo/page.tsx, HeroSection.tsx

## Governance Types Consolidated (SSOT)
- Create app/projects/governance/types.ts as single source of truth
- Create app/projects/governance/utils.ts for formatting functions
- Remove duplicate EnhancedTransaction from TransactionWithTraceability.tsx
- Update component type files to re-export from SSOT

## Colors Config Extended
- Extend COLOR_CLASSES to support all 16 accent colors
- Fix type mismatch in custom bot pages

## Magic Numbers Extracted
- Add formatBytes utility to lib/format.ts (DRY)
- Add DEMO_MAX_FILE_SIZE to VALIDATION constants
- Update try/page.tsx to use centralized constants

## Minor Fixes
- Fix unused variable warning in CollaborationForm.tsx

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-28 00:24:27 +01:00
g-butandClaude Opus 4.5 b15cdcd432 refactor: consolidate accent colors into SSOT config
- Create lib/config/colors.ts as single source of truth for all colors
- AccentColor (16 colors) for bot templates
- CustomBotAccentColor (5 colors) for custom bots (matches DB constraint)
- Remove hardcoded color maps from QuickChat.tsx
- Derive types from Zod schemas instead of separate definitions
- Add justification comment for any type in supabase mock
- Remove console.error from production code

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-27 23:23:04 +01:00
g-butandClaude Opus 4.5 86aa6bc4d7 refactor: consolidate color constants to lib/config/colors.ts (SSOT)
- Extended colors.ts with ACCENT_COLOR_OPTIONS and COLOR_CLASSES
- Updated colors from purple/orange/yellow to indigo/amber to match usage
- Added composite color classes for themed UI components
- Removed duplicated color definitions from:
  - app/bots/custom/[slug]/page.tsx
  - app/bots/custom/[slug]/edit/page.tsx
  - components/bot-builder/StepPersonality.tsx
  - components/bot-builder/StepReview.tsx

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-23 18:38:10 +01:00
g-butandClaude Opus 4.5 5906f625cd refactor: extract shared components for CLAUDE.md compliance
DRY improvements:
- Add LoadingSpinner component (PageLoading, InlineLoading variants)
- Add centralized color config (ACCENT_BORDER_CLASSES, helpers)
- Add shared icons (CheckIcon, ClockIcon, EditIcon, etc.)

Updated files to use shared components:
- All auth pages now use PageLoading instead of inline spinners
- Profile page uses InlineLoading and centralized accent colors
- Settings page uses shared icons (CheckIcon, ChevronRightIcon)

This reduces code duplication across 17+ files for spinners
and 15+ files for accent color mappings.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-23 17:03:46 +01:00
g-butandClaude Opus 4.5 842673d2ba fix: migrate from deprecated @supabase/auth-helpers-nextjs to @supabase/ssr
- Replace deprecated auth helpers with @supabase/ssr package
- Split supabase utilities into client (supabase.ts) and server (supabase-server.ts) files
- Add SSG-safe mock client to prevent build errors during static generation
- Wrap auth callback page in Suspense boundary for Next.js 14 compatibility
- Add missing route constants (PROFESSIONALS, MY_DATA, ENTERPRISE)
- Fix email config to use fallback defaults during build
- Update waitlist model to use lazy-loaded service client
- Add explicit type annotations to auth context hooks
- Install pdf-parse dependency for document processing

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-23 09:52:46 +01:00
g-butandClaude Opus 4.5 0c2b798cb8 refactor: modularize large components and centralize email config
Component splits (all >400 lines to modular directories):
- AICaseAnalysis.tsx → ai-case-analysis/ (utils, states, report)
- DemoSection.tsx → demo-section/ (steps, navigation, progress)
- WorkspaceDashboard.tsx → workspace-dashboard/ (sections, UI)
- ExampleSection.tsx → example-section/ (tabs for different views)
- AgencyProfile.tsx → agency-profile/ (tabs for overview, etc)
- CitizenProfile.tsx → citizen-profile/ (sections, tabs)
- TransactionWithTraceability.tsx → transaction-traceability/

Email configuration:
- Created lib/config/email.ts with centralized settings
- Replaced hardcoded emails with environment variables
- Added EmailServiceError class for proper error handling
- Updated templates to use centralized config

Added Zod validation schemas for API input validation

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-23 08:39:31 +01:00