feat(Explorer): Enhance metric extraction, source transparency, and UI display

- **Standardization & Formula Logic:** Fixed NameError/SyntaxError in formula parser; added support for comments and capitalized placeholders.
- **Source URL Tracking:** Extended DB schema and cascade logic to store and track specific source URLs.
- **Frontend & UI:**
  - Added 'Standardized Potential' display in Inspector.
  - Added clickable source link with icon.
  - Fixed Settings tab layout collapse (flex-shrink-0).
- **Export Capabilities:**
  - Single-company JSON export now includes full quantitative metadata.
  - New global CSV export endpoint /api/companies/export.
- **System Integrity:**
  - Fixed Notion sync typo ('Stanardization').
  - Corrected Nginx proxy routing and FastAPI route ordering.
  - Ensured DB persistence via explicit docker-compose volume mapping.
This commit is contained in:
2026-01-24 09:56:59 +00:00
parent 5602f3b60a
commit 57360496f8
11 changed files with 304 additions and 380 deletions

View File

@@ -64,6 +64,8 @@ services:
volumes:
# Sideloading: Source Code (Hot Reload)
- ./company-explorer:/app
# DATABASE (Persistence)
- ./companies_v3_fixed_2.db:/app/companies_v3_fixed_2.db
# Keys
- ./gemini_api_key.txt:/app/gemini_api_key.txt
- ./serpapikey.txt:/app/serpapikey.txt
@@ -72,6 +74,8 @@ services:
- ./Log_from_docker:/app/logs_debug
environment:
- PYTHONUNBUFFERED=1
ports:
- "8000:8000"
# Port 8000 is internal only
# --- B2B MARKETING ASSISTANT ---