144 Commits

Author SHA1 Message Date
gpt-engineer-app[bot] 6ac2e6d7e7 Changes 2026-01-11 08:20:15 +00:00
gpt-engineer-app[bot] e6df39a3e4 Wire up password change
Add password change API method and integrate into SecurityPage by wiring form fields, validation, and API call to /users/me/password, replacing mock/stub logic with real endpoint handling.

X-Lovable-Edit-ID: edt-19aca63f-7777-44a3-887e-98303dc46028
2026-01-11 08:17:16 +00:00
gpt-engineer-app[bot] b37bafd216 Changes 2026-01-11 08:17:15 +00:00
gpt-engineer-app[bot] d7c5bb209c Code edited in Lovable Code Editor
Edited UI in Lovable
2026-01-11 07:03:52 +00:00
gpt-engineer-app[bot] 5be609ca8c Add robust dev fetch logging
Improve ApiDevTools to log fetch errors with stack traces during development, fix UUID generation fallback for environments lacking crypto.randomUUID, and ensure errors are surfaced in the browser console for easier debugging. Includes fallback generateUUID and preserved patching with proper catch blocks.

X-Lovable-Edit-ID: edt-83e14dbc-6e2d-4ff9-9d17-d881d62d7da6
2026-01-11 06:16:04 +00:00
gpt-engineer-app[bot] 8d01998550 Changes 2026-01-11 06:16:04 +00:00
gpt-engineer-app[bot] 16cb343bb5 Fix ApiDevTools isDev duplicate
Resolve TS2451 redeclare by removing duplicate isDev, fix fetch patch scope, and restore proper closure. Also improve login error logging to show dev details without breaking prod.

X-Lovable-Edit-ID: edt-ee281f89-34b9-41ce-ae0a-1ed1dcece8ab
2026-01-11 05:54:31 +00:00
gpt-engineer-app[bot] c8fce6e4bd Changes 2026-01-11 05:54:30 +00:00
gpt-engineer-app[bot] f173b9d403 Improve dev logs on login
Enable ApiDevTools to reliably log API requests on login by refining fetch interception (only log /api/* calls, support dev mode), and adjust login error handling to surface dev-friendly messages.

X-Lovable-Edit-ID: edt-f0cc8901-1c2f-4253-819a-332460757b44
2026-01-11 05:52:19 +00:00
gpt-engineer-app[bot] 783a0257ea Changes 2026-01-11 05:52:19 +00:00
gpt-engineer-app[bot] 3768f78247 Fix font import order
Move Google font @import to the top of index.css so it precedes Tailwind directives and avoid CSS parse error.

X-Lovable-Edit-ID: edt-61ca6e61-d390-47b8-8731-1cb35a116ac9
2026-01-11 05:45:45 +00:00
gpt-engineer-app[bot] fe9c9fb9e2 Changes 2026-01-11 05:45:45 +00:00
gpt-engineer-app[bot] 1e0a4e4c13 Make dev tools visible on login
Expose API dev console on public pages by ensuring ApiDevTools runs in dev mode across all routes, and fix hook usage to render only in development. This includes wiring the dev console to public layout (login screen) and correcting the development-mode guard to avoid React hook issues.

X-Lovable-Edit-ID: edt-a9ff8f85-ee99-48e3-aa63-c62578cf7dab
2026-01-11 05:44:51 +00:00
gpt-engineer-app[bot] c42580686e Changes 2026-01-11 05:44:51 +00:00
gpt-engineer-app[bot] afc87a45f4 Fetch orgs from API in TopBar
Replace mock org data with real data from API; fix API response handling to use organizations() correctly and render in dropdown. Adjust imports and remove unused mock data.

X-Lovable-Edit-ID: edt-f32c8098-c5cb-42f7-b2d1-8a073115526e
2026-01-08 03:42:45 +00:00
gpt-engineer-app[bot] 7a6cebe207 Changes 2026-01-08 03:42:45 +00:00
gpt-engineer-app[bot] 76eba5479d Add profile loading skeletons
Enhance Profile page to show loading skeletons while fetching user data and organizations, improving UX during asynchronous calls.

X-Lovable-Edit-ID: edt-3830b509-c8d0-4931-bba7-790c60032d4a
2026-01-07 14:38:48 +00:00
gpt-engineer-app[bot] 252196098e Changes 2026-01-07 14:38:47 +00:00
gpt-engineer-app[bot] e80f18a444 Fix fetch orgs auth gating
Ensure profile page fetches organizations only after user is available to attach bearer token
This PR guards the /organizations call behind a user presence check to avoid 401 due to missing auth token on initial render.

X-Lovable-Edit-ID: edt-b4dabc36-942c-4632-a80d-4f981ad3d194
2026-01-07 14:35:54 +00:00
gpt-engineer-app[bot] 510fde1fce Changes 2026-01-07 14:35:53 +00:00
gpt-engineer-app[bot] 62f7bc248a Migrate to Bearer tokens
Switch API client to use Bearer token authentication with centralized api.ts, remove session-token logic, and update AuthContext to rely on token-based flow. Introduce token storage, propagate token via Authorization header, and keep login/logout flows intact.

X-Lovable-Edit-ID: edt-da01510b-c831-4a48-9b71-708de445097d
2026-01-07 14:29:40 +00:00
gpt-engineer-app[bot] 06c23ad1dc Changes 2026-01-07 14:29:40 +00:00
gpt-engineer-app[bot] 654840efed Build passkey add wizard UI
Add a new AddPasskeyWizard component and wire it into SecurityPage.
- Introduced AddPasskeyWizard.tsx to guide users through naming, registering, and confirming a passkey with a simulated flow.
- Integrated wizard into SecurityPage: removed inline placeholder and wired AddPasskeyWizard with stateful open/close handling.
- Replaced previous inline UI to use the new wizard for adding passkeys.

X-Lovable-Edit-ID: edt-32783fa6-048e-4efe-898a-544ef48530d1
2026-01-06 16:20:09 +00:00
gpt-engineer-app[bot] 6345b44eeb Changes 2026-01-06 16:20:08 +00:00
gpt-engineer-app[bot] f75c789fae Show API headers in dev tools
Add requestHeaders capture and display in the in-page API DevTools, including logging headers for each fetch to /api/*, and render them in the detail view alongside request body and response data.

X-Lovable-Edit-ID: edt-e077c0aa-43b2-48c6-952e-fc734b08627e
2026-01-06 16:09:38 +00:00
gpt-engineer-app[bot] 3c4081ace0 Changes 2026-01-06 16:09:38 +00:00
gpt-engineer-app[bot] d4aaa56cc4 Wire up profile page to API
- Add API integration for current user data and organizations
- Update ProfilePage to render real user data and orgs from /api/v1/users/me and /users/me/organizations
- Adjust api.ts types to align with new user fields (email_verified, is_active, is_verified) andOrganizationsResponse
- Remove mock/demo UI in favor of live data display and editing flow

X-Lovable-Edit-ID: edt-9178366f-2fd0-459c-bf17-2ec1e2f5529b
2026-01-06 16:06:54 +00:00
gpt-engineer-app[bot] 096f1afbd2 Changes 2026-01-06 16:06:53 +00:00
gpt-engineer-app[bot] 0917a48289 Enhance API DevTools detail
Improve the bottom developer panel to show full HTTP response details including status code, status text, and clearer error display. Logs now capture statusText and responseHeaders; detail view presents status, URL, request/response bodies, and error messages with improved formatting.

X-Lovable-Edit-ID: edt-3c93d8dc-a6c5-4aea-96a1-b7225379617d
2026-01-06 15:53:51 +00:00
gpt-engineer-app[bot] d1139dfab0 Changes 2026-01-06 15:53:50 +00:00
gpt-engineer-app[bot] 10ed1949d0 Code edited in Lovable Code Editor
Edited UI in Lovable
2026-01-06 15:45:46 +00:00
gpt-engineer-app[bot] 37e8c3ac22 Define API base in config
Add src/config.ts with API baseUrl defaulting to environment var VITE_API_BASE_URL or '/api/v1'. Wire api.ts to use config.api.baseUrl instead of hardcoded base.

X-Lovable-Edit-ID: edt-474d2059-e9f4-4467-8d13-d089d07abac8
2026-01-06 15:42:41 +00:00
gpt-engineer-app[bot] 58d5b5ebff Changes 2026-01-06 15:42:41 +00:00
gpt-engineer-app[bot] ed6e2da748 Add API DevTools panel
Implement a bottom-of-page development window ApiDevTools that intercepts fetch calls to /api/*, logs requests/responses, and displays them with a toggle to view details. Integrated as ApiDevTools component and wired into App.tsx to appear in development.

X-Lovable-Edit-ID: edt-9d4ce476-9631-4b5f-a429-df2bf2bee545
2026-01-06 15:39:16 +00:00
gpt-engineer-app[bot] 0364b8e6b9 Changes 2026-01-06 15:39:14 +00:00
gpt-engineer-app[bot] 490afee707 Wire login flow
Wire up login API integration with real API client and AuthContext; replace mock login with session-based login, connect login page to /api/v1/auth/login, and route post-login to profile. Update App routing to use AppRoutes wrapper and integrate auth context.

X-Lovable-Edit-ID: edt-2c1a2967-d81b-4437-a449-5bbbf890b803
2026-01-06 15:33:03 +00:00
gpt-engineer-app[bot] 8fd8b30456 Changes 2026-01-06 15:33:03 +00:00
gpt-engineer-app[bot] dc7cd400a5 Rename to Gatehouse
Update branding and visuals to reflect Gatehouse branding across layouts, navigation, and pages; replace Authy2 references with Gatehouse, adopt Gatehouse logo, and apply enterprise-style design system.

X-Lovable-Edit-ID: edt-8c42331f-7e14-427e-8490-86d7aaab17ee
2026-01-06 15:17:10 +00:00
gpt-engineer-app[bot] 596c77a6da Changes 2026-01-06 15:17:10 +00:00
gpt-engineer-app[bot] c855594680 Enhance auth pages
Extend registration, verify email, and forgot password flows with richer UI components, client-side validation, and placeholder behaviors. Add PasswordStrengthMeter and BannerAlert components, integrate updated styling, and align forms with new spec (registration, email verification, and password reset). Update ForgotPassword, Register, and VerifyEmail pages to reflect improved UX and mock flows.

X-Lovable-Edit-ID: edt-140074ae-8fad-4c73-81c7-dd8a6399b195
2026-01-06 14:59:48 +00:00
gpt-engineer-app[bot] 8c2e001d1e Changes 2026-01-06 14:59:47 +00:00
gpt-engineer-app[bot] 1697e719c9 Refactor UI skeleton setup
- Streamlines frontend skeleton: adds public/authenticated layouts, routing scaffolding, and placeholder pages; introduces design-system CSS and Tailwind config tweaks; implements initial sidebar/topbar structure with role-aware sections and placeholder navigation.

X-Lovable-Edit-ID: edt-6ca8f250-b21a-40be-87b6-6428a4d60117
2026-01-06 14:46:24 +00:00
gpt-engineer-app[bot] 0104839c11 Changes 2026-01-06 14:46:23 +00:00
Lovable bebc3a2029 template: new_style_vite_react_shadcn_ts 2025-01-01 00:00:00 +00:00