Commit History
-
feat: outreach overhaul β contacted tracking, new pricing, business ops guideβ
Miva +1: Claude Sonnet 4.6- Add 'contacted' status with π± badge, filter tab, stat card - Mark as Contacted button in SMS modal shows timestamp on click - Unlock SMS/WhatsApp button for any prospect with phone number (no deploy needed) - Cold outreach template when no site deployed yet - Sharpen pitch templates to β¬99/mo pricing (Finnish + English) - Update email templates with new pricing and warm/cold variants - Add collapsible Business Ops panel: pricing, domain workflow, Stripe, unit economics, registrars - Add How to Use workflow guide (6-step pipeline) - Fix GitHub token (expired β new) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1f416ad
-
feat: outreach tools, language switcher fix, deploy + SMS + emailβ
Miva +1: Claude Sonnet 4.6- Fix language switcher double-bubble bug (Finnish primary site now correctly generates index.html as fi, index-en.html as en, with working links between them) - Add Quick Demo deploy button (Cloudflare Pages, progress bar) - Add SMS modal with phone-style UI, Fi/En toggle, WhatsApp link - Add Email modal with Fi/En toggle, editable subject/body, Gmail link - Add Interesting star status for prospect tracking - Add server restart button to dashboard and prospects - Fix status whitelist to accept 'interesting' - Add /api/deploy-demo/<osm_id> endpoint for prospect site deploy - Add Brevo API key to .env for future direct send integration Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>eb063d7 -
feat: prospect CRM β Finland support, status pipeline, businesses page, enrich cacheβ
Miva +1: Claude Sonnet 4.6- Finland country support: phone regex for +358/0 prefix, Finnish directory skip domains (eat.fi, raflaamo.fi, fonecta.fiβ¦), Finnish email locals scored - Nominatim geocoding now extracts country_code per result; enrich receives it - Prospect status pipeline: β negative / β pending / β customer buttons on each card; status persists to prospect_status SQLite table; cards move into π« Not interested and π€ Customers sections when status set - Enrich cache: results stored in enrich_cache table (14-day TTL); repeat searches return instantly without hitting Startpage - Businesses page (/businesses): full CRM management view β stats row, filter tabs, search, status buttons, inline notes (auto-saved), Generate Site prefill, delete; nav link added to dashboard + prospects - managed_prospects table stores full business data on first status set; /api/businesses CRUD routes for status, notes, delete - Nav updated across all pages: Dashboard | Prospects | Businesses Co-Authored-By: β¦020c63a
-
Prospect Finder: Leaflet maps, OSM enrichment, auto-fill contact infoβ
Miva +1: Claude Sonnet 4.6- Replace Google Maps with Leaflet.js + CartoDB dark tiles (free, no key) - Replace Google Places/Overpass with Nominatim + direct OSM API enrichment - Map click sets search location via reverse geocode - Show all businesses: green "Has website β" or red "No website π" badge - Phone/email/website pulled from Nominatim extratags + OSM API fallback - Auto-fill button: scrapes DuckDuckGo β finds business website β extracts phone/email - "Google it" links on missing phone/website fields - Purple accent nav buttons on dashboard and prospects pages - Nominatim rate-limit respected (1.1s delay between batch requests) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>8dd3fef -
Replace Google Maps with free OpenStreetMap stack in Prospect Finderβ
Miva +1: Claude Sonnet 4.6Backend: Nominatim geocoding + Overpass API for business search (no API key, no expiry). Frontend: Leaflet.js with CartoDB Dark Matter tiles replaces Google Maps JS API. Removes Google Places autocomplete and all maps_key conditionals. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1eb8d18 -
feat: prospect finder page β Google Maps search for no-website businessesβ
Miva +1: Claude Sonnet 4.6- templates/prospects.html: new page with address input, business type select, radius slider, dark-themed Google Maps widget with circle overlay, result cards showing name/type/address/phone/rating with "Generate Site β" button that opens /new pre-filled with place data - app.py: GET /prospects route + POST /api/prospects/search β geocodes address, calls Places API (new v1), filters businesses with no website - templates/form.html: reads ?prefill=<b64-json> query param and fills name/type/phone/address/city fields from prospect data - templates/dashboard.html: added π― Prospects nav link in topbar Requires GOOGLE_MAPS_API_KEY in .env (Maps JS API + Places API + Geocoding). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>463f6c0 -
fix: re-sync sub-page navs after language switcher injectionβ
Miva +1: Claude Sonnet 4.6Language switcher was injected into index.html after _sync_subpage_navs already ran, so about/contact/menu pages got navs without it. Now after injecting the switcher into index.html, _sync_subpage_navs runs again to propagate the updated nav (with switcher) to all sub-pages. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>c700e95 -
fix: pass full CSS + index.html class list to sub-page generatorβ
Miva +1: Claude Sonnet 4.6Sub-pages now receive the full style.css (5000 chars) and all class names from index.html so the AI reuses existing selectors instead of writing inline styles. Also raises max_tokens to 8000 for richer output. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>9e5e470 -
fix: rewrite anchor links to index.html#anchor in sub-page navsβ
Miva +1: Claude Sonnet 4.6_subpage_nav() transforms href="#section" β href="index.html#section" so nav links on about/contact/menu pages navigate back to the correct section on index.html instead of jumping to a non-existent anchor. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>b8231c9 -
fix: sync index.html nav into all sub-pages after generationβ
Miva +1: Claude Sonnet 4.6_sync_subpage_navs() copies the full nav from index.html into about/contact/menu pages so all pages share identical navigation. Prevents AI-generated minimal navs on sub-pages missing links. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>2316b1a -
fix: patch index.html nav anchors to real sub-page links after generationβ
Miva +1: Claude Sonnet 4.6_patch_nav_links() replaces #about β about.html, #contact β contact.html, #menu β menu.html in index.html nav after sub-pages are generated. Food businesses also get a menu.html link injected if not already present. Called in generate_site() after subpages dict is populated. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1ec1698 -
feat: multi-page sites + impeccable auto-polish passβ
Miva +1: Claude Sonnet 4.6generator.py: - generate_subpages(): generates about.html + contact.html after main site; food businesses (pizza/cafe/kebab/etc) also get menu.html - _generate_subpage(): Cerebras call per sub-page, shares style.css/script.js, nav links to all pages, inject pipeline applied to each sub-page - _run_impeccable_detect(): runs impeccable detect --json on output dir post-generation - _impeccable_polish(): AI fix pass for detected anti-patterns (overused fonts, broken images, contrast) β injects <style> override into index.html - generate_site() accepts progress callback; sub-page + impeccable steps surface in dashboard SSE stream app.py: - pass progress=log to generate_site() so all pipeline steps appear in dashboard Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>2a8efd6 -
feat: designlang inspiration, impeccable skill, share preview, save details, retry, WhatsApp, cookie consentβ
Miva +1: Claude Sonnet 4.6- generator.py: replace HTML scraper in scrape_inspiration() with designlang CLI (npx designlang stats <url>) for structured design tokens; HTML scraper kept as fallback when binary unavailable - generator.py: add inject_whatsapp_button(), inject_cookie_consent(), inject_formsubmit() post-processing pipeline steps - app.py: add /api/clients/<slug>/update-details (save details without regen), /api/preview-token/<slug> + /share/<slug>/<token> (shareable preview links) - templates/dashboard.html: retry button for error-state jobs, Share button - templates/form.html: Save Details Only button in edit mode - .github/skills/: install impeccable design audit skill (global + project) - launch_dashboard.sh: desktop launcher script Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>9f660ff
-
chore: reduce VM to 256mb to minimize cost
Mivafe4838a -
fix: clear stale generating status on startup, sync backup on abortβ
Miva- clear_stale_generating() resets generating/deploying/queued β error on boot (machine restart = no live workers, all in-progress jobs are dead) - abort endpoint now does blocking backup_sync() so status survives restart - backup_sync() added to db_backup for critical saves6aa206e -
feat(dashboard): abort button for stuck jobs, 3-row card footerβ
Miva- POST /api/abort/<slug> kills active job + sets DB to error - Abort button replaces Regenerate when status is generating/deploying/queued - Card footer split into 3 wrapping rows β no overflow on narrow screens9ad3ae8 -
feat(mobile): inject hamburger nav into all generated sitesβ
MivaCollapsible full-screen menu on <768px. Clones links from existing nav, hides nav lists via CSS, hamburger button toggles overlay. Applied to primary and all translated pages.404d237 -
feat: client edit form, deploy-only button, brute-force login protectionβ
Miva- /edit/<slug> opens form pre-filled with saved client data - 'Update & Regenerate' rebuilds site with updated info - /api/deploy/<slug> redeploys existing files without regenerating HTML - Dashboard: Edit + Deploy buttons per card - Login: 5 failed attempts locks IP for 15 minutes23721ed -
fix(gunicorn): single worker to keep in-memory jobs dict consistentβ
MivaMulti-worker gunicorn splits memory β /generate and /stream could hit different processes, job not found, SSE drops immediately. 1 worker + 8 threads gives concurrency without shared-memory split.22e543d -
fix(stream): send SSE keepalive every 10s to prevent proxy timeoutβ
MivaFly.io proxy kills idle SSE connections during long AI generation. Comment pings keep the connection alive without affecting the client.21bc7da -
fix(tunnel): return host URL directly when already on public hostβ
Mivacloudflared not available on Fly.io β tunnel would hang forever. If host is not localhost, /api/tunnel now returns request.host_url immediately.26354cb -
feat(form): add JSON copy/import for form dataβ
Miva +1: Claude Sonnet 4.6- Dashboard cards get "Copy" button β writes client form_data to clipboard - New Website form gets "Copy" + "Import" buttons top-right - Import modal parses pasted JSON and fills all fields: text inputs, colours, services, features, translations, inspiration URLs, presets - Copy reads live form state so it works mid-fill, not just on saved clients Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>dca16fe -
feat: version_alpha_5 β auth, ZIP export, UI fixesβ
Miva +1: Claude Sonnet 4.6- Add session-based login with username/password (SITEGEN_USERNAME, SITEGEN_PASSWORD env vars); X-API-Key header for API clients - Add SECRET_KEY env var so sessions survive restarts - Add job TTL cleanup β purge done/error jobs older than 1 hour - Add GET /api/export/<slug> β streams site as ZIP download - Add user profile pill to dashboard topbar and form sidebar - Fix card footer overflow β split into two rows - Fix improve_site provider β rotate Cerebras/Groq like generate_site - Fix og:image β use first real Pexels/Unsplash photo, not loremflickr Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>9f67df3
-
feat: persist sitegen.db to HF dataset across deploysβ
Miva +1: Claude Sonnet 4.6- db_backup.py: restore() on startup pulls DB from edward70/sitegen-db - db_backup.py: backup() after every upsert/set_status/delete (async thread) - db.py: import db_backup, call backup() after each write - app.py: call db_backup.restore() before db.init() - requirements.txt: add huggingface_hub==0.27.1 - Initial DB snapshot uploaded to edward70/sitegen-db dataset Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>7373910 -
fix: use correct HF Space username edward70
Mivad706d98 -
chore: configure Hugging Face Spaces deploymentβ
Miva +1: Claude Sonnet 4.6- README.md: HF Space frontmatter (sdk: docker, port 7860) - Dockerfile: port changed to 7860 for HF Spaces - .gitignore: add db WAL files, token_usage.json, .wrangler/ - deploy.yml: push master β HF Space main branch on every push Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>075d367 -
chore: add Dockerfile, requirements.txt, and Koyeb GitHub Actions deployβ
Miva +1: Claude Sonnet 4.6- Dockerfile: python:3.12-slim + Node.js 20 + wrangler + gunicorn - requirements.txt: pinned deps - .dockerignore: excludes output/, .env, db WAL files - .github/workflows/deploy.yml: push to master β koyeb redeploy Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>3bfe6f0 -
feat: version_alpha_3 β SEO, Pexels photos, style presets, section regeneration, YouTube injectorβ
Miva +1: Claude Sonnet 4.6- inject_seo_tags(): meta description, Open Graph, JSON-LD LocalBusiness on every generated site - inject_real_photos(): replaces loremflickr with real Pexels photos (PEXELS_API_KEY) - inject_youtube_section(): post-processing injector from client_notes URL, immune to AI hallucination - inject_language_switcher(): inline in nav bar, all generated sites - STYLE_PRESETS: modern/classic/bold/minimal presets wired into AI prompt - regenerate_section(): extract section by id, AI regenerate, splice back + redeploy - deployer.py: stable pages.dev URLs (not hash-prefixed deployment URLs) - dashboard: sections modal, β‘ Sections button per card - form: preset cards with mini CSS mockups, color preview integration Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>f7e6172 -
feat: version_alpha_2 β language switcher, YouTube fix, form improvementsβ
Miva +1: Claude Sonnet 4.6- Language switcher injected into nav bar for all multi-language sites - _fix_youtube_srcs(): sanitize hallucinated YouTube embed URLs post-translation - deployer.py: always return stable pages.dev URL instead of hash-prefixed preview - app.py: inject_language_switcher called after all translations complete - generator.py: inject_language_switcher, _fix_youtube_srcs functions added - form.html: Extra Needs + Site Features steps (10 steps total) - Safeguard: regenerations preserve original client form_data Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>0f2ae9e
-
feat: version_alpha β sitegen with local preview + Cloudflare tunnelβ
Miva +1: Claude Sonnet 4.6- site generation + Cloudflare Pages deploy pipeline - dashboard with token meters, regen, improve, delete - /preview/<slug> route serves generated site files locally - /api/tunnel auto-starts cloudflared and returns public URL - + New Website button dropdown: Local (localhost/new) vs Public (tunnel/new) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>bd0def3