Commit History

Docs: add AI agent mandatory protocol + change log to ARCHITECTURE.md
8d445ea

AuthorBot commited on

Docs: add ARCHITECTURE.md β€” complete AI-readable codebase reference
8867a15

AuthorBot commited on

Refactor: complete 10/10 modularity β€” superadmin/routers/, core/startup/, pipeline/generation.py, slim main.py
f05fb3c

AuthorBot commited on

Refactor: 10/10 modularity β€” pipeline/ package, admin/routers/ split, guards single source of truth
685ab2e

AuthorBot commited on

Overhaul: Python-first intent (3-tier), hybrid rewriter, improved system prompt, chunk dedup, LRU cache, natural upsell (button-only CTA)
70337a5

AuthorBot commited on

Fix: save buy_url during book upload so chatbot shows Buy button; remove nonexistent price field
29f9383

AuthorBot commited on

Fix: book readiness check uses chunk_count+chroma_id as real truth; add stuck-book detection + Re-upload button in admin
1c77285

AuthorBot commited on

Fix: replace Celery dispatch with asyncio.create_task for ingestion - books now properly marked ready + chatbot responds correctly
9eb7e65

AuthorBot commited on

Fix: datetime naive/aware crash across embed-token, access-repo, superadmin, expiry-task + friendly no-subscription UI
0cadd33

AuthorBot commited on

Improve: Create Author flow - success modal with details + redirect to Grant Access with pre-filled email
2bbde84

AuthorBot commited on

Fix: CSP connect-src for jsdelivr + better create author error display
6d85d9d

AuthorBot commited on

Fix: session persistence on refresh - don't clear tokens on network/server errors
ba2f394

AuthorBot commited on

Add: Create Author UI modal in SuperAdmin panel with plan selection
0c80c73

AuthorBot commited on

Add: SuperAdmin create author endpoint (POST /api/super/authors) with optional plan + fix register ValueError 500
ea890f6

AuthorBot commited on

Fix: add datetime/timezone import to tracker (preventative)
0f06ce6

AuthorBot commited on

Fix: missing timezone import in superadmin grants + naive/aware datetime comparison crash
90769e9

AuthorBot commited on

Fix: CSP expanded to allow Google Fonts and jsdelivr CDN used by admin SPA
5ae645d

AuthorBot commited on

Fix: Make TOTP optional when not configured β€” prevents locking out existing SuperAdmins
b9169bd

AuthorBot commited on

Fix: JSONResponse args reversed causing all exception handlers to crash with TypeError
8471fa1

AuthorBot commited on

Production hardening: JWT blacklist, TOTP, Pydantic schemas, Prometheus, SSRF fix, CSP, Redis auth, Celery backup β€” 35 items across P0-P5
131d826

AuthorBot commited on

Enforce strict SuperAdmin vs Author panel separation.
6e276e0

AuthorBot Cursor commited on

Fix token display for unsubscribed authors and add SuperAdmin author removal.
cf196a9

AuthorBot Cursor commited on

Unify token tracking, smart links, and personality settings across admin and chat.
a825fee

AuthorBot Cursor commited on

Fix logout on page refresh by restoring sessions via refresh token and cookies.
ccbebe0

AuthorBot Cursor commited on

Harden chatbot against jailbreaks, prompt injection, piracy requests, and response leaks.
ba51f8f

AuthorBot Cursor commited on

Enforce brief sales-focused chatbot rules with spoiler guard and buy CTAs.
701aaf2

AuthorBot Cursor commited on

Restructure chat flow: hello shows clickable book list, then engaging Q&A.
0daa940

AuthorBot Cursor commited on

Humanize bot responses for greetings, catalog questions, and empty RAG retrieval.
2bb94f4

AuthorBot Cursor commited on

Fix revoke subscription hang caused by blocking SMTP email send.
2e8c5a3

AuthorBot commited on

Fix auth session expiry with shared auto-refresh client for admin panels.
e70f2c6

AuthorBot commited on

Fix chat session init crash and improve embed reliability
2b2591e

AuthorBot commited on

fix: naive vs aware datetime error in grants/extend/embed-token, grant button loading state + 15s timeout + token display modal
7e0e662

AuthorBot commited on

feat: Per-user auto embed token, full Token Management SA page, fix extend on expired subs, add /grants + /reset-tokens + /embed-token endpoints
8916c9a

AuthorBot commited on

Fix CSS: sidebar now scrollable with thin scrollbar, tooltips drop DOWN instead of up to stay in viewport
05614e4

AuthorBot commited on

CRITICAL: safe rollback in get_db - session.rollback() was masking HTTPException(401) when no transaction active, causing bare 500 responses
b5db918

AuthorBot commited on

Add QoL info tooltips to SuperAdmin panel, match admin panel design
1105a2b

AuthorBot commited on

CRITICAL FIX: use HTTPException(401) instead of custom InvalidTokenError in get_current_user - FastAPI handles HTTPException natively in dependency injection, custom exceptions were escaping to bare 500
630918d

AuthorBot commited on

Major hardening: bulletproof superadmin router with try/except on every endpoint, fix exception handler names, validate tokens before dashboard, add QoL info tooltips to all admin pages
7d736db

AuthorBot commited on

Fix SuperAdmin 500 errors: harden get_current_user against null/undefined/expired tokens, return 401 instead of 500; harden SuperAdmin apiGet/apiPost with defensive JSON parsing and 401/403 redirect to login; fix grant_access serialization
ed8ccd5

AuthorBot commited on

Fix grant_access return: was returning raw SQLAlchemy model, now returns JSON-serializable dict matching AccessGrantResponse schema
0db8e87

AuthorBot commited on

Enhance embed page: step-by-step widget guide, live preview buttons, platform instructions (WordPress/Squarespace/Webflow/Shopify/HTML), dynamic theme/position selector, fix widget preview URL
ab02f37

AuthorBot commited on

Fix 500 errors: analytics/funnel used non-existent event_type, analytics/intents used non-existent metadata_json. Add defensive JSON parsing to all API helpers to prevent 'Unexpected token' errors
8ef4618

AuthorBot commited on

Phase 1.2+5.1+6.2+6.5: Book cover upload with resizing, conversion funnel analytics, intent distribution, backup system, CI/CD pipeline
e00a1e3

AuthorBot commited on

Convert ALL middleware to pure ASGI: eliminate BaseHTTPMiddleware completely to fix request body consumption bug causing 500 on ALL endpoints
59a89d6

AuthorBot commited on

Fix SecurityHeadersMiddleware: rewrite as pure ASGI to avoid BaseHTTPMiddleware request body consumption bug
660ca76

AuthorBot commited on

CRITICAL: Fix </script> inside template literal breaking ALL JS after embed code generator, fix invalid dummy bcrypt hash causing login 500 errors
5c4e634

AuthorBot commited on

Phase 4+5: Fix rate limiter paths (/api/v1 -> /api/chat|auth|admin), add SecurityHeadersMiddleware (HSTS, XSS, CSRF, CSP), fix QA export auth, fix route ordering
41f0eee

AuthorBot commited on

Fix critical bugs: remove duplicate showModal/closeModal override, fix FastAPI route ordering conflicts (sessions/search before sessions/{id}, qa/import+export before qa/{id}), add missing visitor_name/turn_count to session list response
e759455

AuthorBot commited on

Phase 1.3+3.2: Integrate Custom Q&A into RAG pipeline (Jaccard similarity), add message feedback (πŸ‘πŸ‘Ž) and session rating endpoints for widget
d95db15

AuthorBot commited on

Phase 1: Add Conversations Viewer, Custom Q&A Manager, Export Center β€” 15 new API endpoints, 3 new admin pages, CustomQA model, message annotations, flagging, search, CSV import/export
d09ea19

AuthorBot commited on