Commit Graph

3 Commits

Author SHA1 Message Date
c96d97e154 feat: add Umami analytics with tagged events
Add Umami web analytics tracking script to the layout head, and
instrument all interactive elements with event tracking:

Declarative (data-umami-event attributes):
- Category selector: select_category
- Style selector: select_style
- Intensity slider: adjust_intensity
- Prompt toggle: toggle_prompt (with open/close action)

Programmatic (umami.track with metadata):
- convert_click: { style, intensity }
- convert_success: { style, intensity, model }
- convert_error: { style, intensity, error }
- copy_result: { style }
2026-04-13 01:21:20 -04:00
a12afb792e feat: implement English Style Converter
- SvelteKit project scaffolded with TypeScript
- Type definitions for Style, StyleCategory, ConversionRequest, ConversionResponse, LLMConfig
- Style definitions with 6 categories and 25 sub-styles
- Intensity mapping (1-5) with prompt modifier placeholders
- LLM client using OpenAI-compatible API (Ollama default)
- POST /api/convert endpoint with input validation
- Animated loading modal with per-letter animations
- Main page UI with category/style selectors, intensity slider
- Copy to clipboard, collapsible prompt display
- Vitest tests for styles, LLM prompt building, and API validation
- Environment configuration for LLM settings
2026-04-12 21:53:27 -04:00
fcf80638e1 wip: scaffolding + types + styles 2026-04-12 21:22:34 -04:00