Spaces:
Running
Running
axeronis commited on
Commit ·
400a0b9
1
Parent(s): 5413eaa
fix: Google Auth Register Bug + Lead Qualification Fields Display
Browse files
backend/app/services/ai_core/lead_analyzer.py
CHANGED
|
@@ -797,6 +797,15 @@ async def analyze_lead_impl(
|
|
| 797 |
|
| 798 |
# Check if all fields filled and send notification
|
| 799 |
await check_and_notify_qualification_complete(session, lead, tenant)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 800 |
session.add(lead)
|
| 801 |
await session.commit()
|
| 802 |
|
|
|
|
| 797 |
|
| 798 |
# Check if all fields filled and send notification
|
| 799 |
await check_and_notify_qualification_complete(session, lead, tenant)
|
| 800 |
+
|
| 801 |
+
# MIRROR to Summary JSON (ensure UI sees it in summary tab)
|
| 802 |
+
if lead.ai_summary_json:
|
| 803 |
+
# We copy to a specific key 'qualification' OR top-level if suitable.
|
| 804 |
+
# Let's put it in 'qualification' key to keep it structured
|
| 805 |
+
summary = lead.ai_summary_json
|
| 806 |
+
summary['qualification'] = lead.qualification_data
|
| 807 |
+
lead.ai_summary_json = summary
|
| 808 |
+
|
| 809 |
session.add(lead)
|
| 810 |
await session.commit()
|
| 811 |
|
frontend/app/register/page.tsx
CHANGED
|
@@ -246,8 +246,6 @@ export default function RegisterPage() {
|
|
| 246 |
setError('')
|
| 247 |
try {
|
| 248 |
// Initialize Google Sign-In
|
| 249 |
-
const { googleAuth } = await import('@/contexts/AuthContext').then(m => ({ googleAuth: null }))
|
| 250 |
-
|
| 251 |
// Use Google Identity Services
|
| 252 |
const google = (window as any).google
|
| 253 |
if (!google) {
|
|
|
|
| 246 |
setError('')
|
| 247 |
try {
|
| 248 |
// Initialize Google Sign-In
|
|
|
|
|
|
|
| 249 |
// Use Google Identity Services
|
| 250 |
const google = (window as any).google
|
| 251 |
if (!google) {
|