Feature #10449
openBranding Working Screen
40%
Subtasks
Related issues
Updated by Thirupathirao Uppu 30 days ago
- % Done changed from 0 to 40
Companies Screen — Create — Built company list + create pages with live subdomain availability check, optional admin password fields, success dialog with login URL + temp password copy
Companies Screen — Edit — Built edit company page (name, subdomain, domain, colors, etc.) + Reset Admin Password section below the form
Backend: New API endpoints — GET/PUT /companies/:id, POST /companies/:id/reset-password (platform-key protected, no token needed)
Bug: normalizeSubdomain converting spaces to hyphens — Fixed to strip spaces entirely; suthrasolar was stored as suthra-solar causing all API calls to return 404
Bug: normalizeOptionalDomain storing full URL as custom domain — Fixed to strip http://, ports, paths — stores bare hostname only
Bug: Route ordering — createCompany, getAllCompanies, reset-password were behind authenticateToken; moved before it so they only need platform key
Bug: Temp password hidden — provisionCompany now always returns temporaryPassword in the success response so admin can copy it
Bug: Login invalid credentials (suthrasolar) — Reset password to Admin@123; synced supportEmail into user's email array so both sai@yopmail.com and sai@suthrasolar.com work for login
Bug: Wrong logo on tenant login page — TenantLogo was falling back to Regal Solar logo for tenants with no logo; now shows company initials avatar instead
AppForSolar architecture analysis — Full comparative analysis of BE + FE; documented tenant resolution, auth flow, route protection patterns, and gaps vs Regal
Companies hidden from sidebar — Removed menu entry; pages still accessible via direct URL