* wip: prose fields on chatkit DictationField (awaits chatkit 0.45)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmuMRAXYWNkfowAXVfi
* feat(forms): prose fields on chatkit DictationField, with a working microphone
- Bump @bitbaum/chatkit to ^0.45.0.
- One app wrapper, components/forms/TextBox, around DictationField. Used by
the bot builder (name, description, knowledge topic and content, system
prompt), the custom-bot edit page (name, description, system prompt,
greeting), the contact message, the demo intake questions, quick-create
(name, relationship, memories) and the consultation form's
react-hook-form message field ({...register('message')}).
- app/api/transcribe: dictation server leg on ai-kit's speechChain and
transcribe(), rate limited, recordings and transcripts neither stored nor
logged. Every field and every in-page chat points voice at it, so the
microphone works where the browser has no recogniser of its own.
- Permissions-Policy allowed no microphone at all (microphone=()), which
blocked every mic on the site; it now allows the site itself.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmuMRAXYWNkfowAXVfi
---------
Co-authored-by: Claude <noreply@anthropic.com>
Seven hand-built chats (/demo, the professional demos, quick-create, /try,
/my-data documents, custom bots and the guided demo) now share one
EmbeddedChat panel: chatkit's ChatThread and Composer with the microphone,
Copy/Listen, Stop, Retry on a failed turn, starters and suggested replies.
Each surface keeps its own prompt, route and persistence through a small
useChatTurns hook.
Also fixes /demo and the /my-data document chat reading the answer from the
wrong level of the jsonSuccess envelope, which showed empty answers.
Claude-Session: https://claude.ai/code/session_019MDtmuMRAXYWNkfowAXVfi
Co-authored-by: Claude <noreply@anthropic.com>
#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>
#144 put the bot pages on the brand. This does the other 60 files, so the
whole product reads as one thing, and adds the guard that keeps it that way.
~410 raw palette classes became semantic tokens across the public marketing
surface (/try, /enterprise, /about, /knowledge, /personal, /professionals,
/bots, blog, navigation) and the app internals (dashboard, documents, chat,
conversations, onboarding, auth, settings, profile).
Gradient text is gone. Fifteen headings were
`bg-gradient-to-r from-X to-Y bg-clip-text text-transparent`; they are now
solid text-ink or text-action. globals.css says the identity is carried by
typography, and a serif display does not need a gradient to do that.
The 'B' mark was still a blue/purple gradient in BotNavigation's MOBILE menu.
#144 only fixed the desktop header. Both now render the shared <Logo>.
Three defects introduced mid-sweep and corrected, all caught by reading the
diff rather than trusting the regex:
- degenerate gradients (`from-action-tint to-action-tint`) collapsed to solid
- dead hovers (tint on tint) rebased to bg-surface + hover:bg-action-tint
- `to-action\b` matched the prefix of `to-action-hover`, so a collapse left a
stray `bg-action-hover` as a BASE background in 11 places -- those are the
primary, not the hover shade
Deliberately NOT changed:
- components/knowledge/Callout.tsx -- its blue is the `info` half of an
info/warning/error triad. Semantic status colour is a separate scale from
the brand accent, and warning is amber, so ochre-ing info would make the
two nearly indistinguishable.
- the custom-bot surfaces -- custom_bots.accent_color is a real column with
a CHECK constraint and the owner picks it. User data, not a design token.
Never-twice: tests/__tests__/lib/design-tokens.test.ts refuses any raw
brand-palette class, and any bg-clip-text, outside those two documented
exceptions. Mutation-verified -- swap one token back to bg-blue-600 and it
fails and names the file. No allowlist debt: every other file was swept rather
than excused.
verify: format, lint, typecheck, 256 tests, build -- all green. Twelve pages
smoke-tested and checked 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>
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>
- Update app/documents/page.tsx to use formatBytes from lib/format
- Update app/my-data/page.tsx to use formatBytes from lib/format
- Update components/shared/demo/DemoFileUpload.tsx to use formatBytes
- Update workspaceUtils.ts to re-export formatBytes as formatFileSize
DRY: 4 duplicate formatFileSize implementations → 1 SSOT (lib/format.ts)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
## 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>
- Add "Skip and chat directly" button in DemoIntake to reduce friction
- Create /api/demo/parse-pdf endpoint for unauthenticated PDF parsing
- Add PDF upload support to /try page
- Change homepage CTA from "Meet Your Professionals" to "Try Now - Free"
- Add typing indicator with animated bouncing dots in DemoChat
- Fix pdf-parse v2 import (use named export and class API)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Add /api/quick-chat endpoint for professional chat demos
- Add /create page for building custom bots
- Add /enterprise page for B2B landing
- Add /my-data page for user document management
- Add /personal page for memorial/companion bots
- Add demo components (DemoSection, DemoChat, DemoIntake, etc.)
- Add shared components (HowItWorks, PrivacySection, EnterpriseSection)
- Add bot templates and demo configurations
These files enable the professional demo chats and the
full platform experience with custom bot creation.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Add /professionals/[slug] pages as minimal entry points with interactive chat demos
- Add "Learn More" links to connect to detailed /bots/* pages for deeper exploration
- Fix scroll behavior: use preventScroll on focus() calls and scrollTo on container
- Add professionals data with botSlug field for SSOT linking between pages
- Update Footer with correct bot names and links following SSOT principles
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>