Commit History

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

Deep audit fix: add missing model columns (blocked, rating, tokens_used, out_of_scope_message, buy_url, preview_url), fix .get() calls, fix ingest doc creation, add track-click endpoint, add column migrations, fix email crash, fix audit log field names, enrich superadmin author list
868f634

AuthorBot commited on

Wire all frontend features to real backend APIs: widget-config, profile, personality, notifications, smart-links, token-usage, grant-by-email, fix password endpoint
23cc545

AuthorBot commited on

Premium redesign: admin panel, superadmin panel, fix widget API paths, fix analytics 500
d5a8d18

AuthorBot commited on

Fix: analytics uses AnalyticsEvent.timestamp not created_at; fix security import
0f2a261

AuthorBot commited on

Fix: accept any email/username at login, add is_superadmin to response, fix [object Object] error display
adc4a5b

AuthorBot commited on

UX: remove TOTP field from superadmin login (not yet implemented in backend)
69b2da8

AuthorBot commited on

Fix: specify foreign_keys on User.access_records to resolve AmbiguousForeignKeysError
4f5f1e7

AuthorBot commited on

Feat: auto-seed superadmin from SUPER_ADMIN_USER/SUPER_ADMIN_PASS env vars on startup
e6294c3

AuthorBot commited on

Fix: add python-multipart for FastAPI file upload
e391397

AuthorBot commited on

Fix ingest.py: use correct service signatures (chunk_document, summarize_book, file_path args)
745bdc2

AuthorBot commited on

Fix: replace all stale app.services.retriever imports with vector_store
a806a0b

AuthorBot commited on

Fix: add email-validator, remove gradio from requirements
c3be19a

AuthorBot commited on

Fix Dockerfile: use flat app/ structure, remove backend/ paths
2a4848e

AuthorBot commited on

Restructure project for HF Spaces deployment
772f852

AuthorBot commited on

fix: bump FastAPI to 0.115.9 for Gradio 5.9 compatibility
ebc0310

AuthorBot Cursor commited on

refactor: HF routing like RAG 1.2 β€” /ui, /widget, /admin, port 7860
b6b69a1

AuthorBot Cursor commited on

feat: add home page, chat demo, and API docs for HF Spaces
5ee07a1

AuthorBot Cursor commited on