Commit Graph

8692 Commits

Author SHA1 Message Date
alejandrobailo b64fbe3cbd fix(ui): restore animated gradient background on Lighthouse banner 2026-07-02 15:38:00 +02:00
alejandrobailo 884f2f5891 fix(ui): load Lighthouse models only for connected providers 2026-07-02 15:22:45 +02:00
alejandrobailo 2b57c18c06 fix(ui): contain Mermaid diagrams in Lighthouse chat 2026-07-02 15:22:45 +02:00
alejandrobailo 1ad5aae891 feat(ui): update Lighthouse chat tagline 2026-07-02 15:22:45 +02:00
alejandrobailo 56370c9993 chore(ui): remove unused Lighthouse v1 banner 2026-07-02 15:22:44 +02:00
alejandrobailo c8b7d2a0f2 feat(ui): move Lighthouse banner to top of cloud overview 2026-07-02 15:22:44 +02:00
alejandrobailo aed4dd5990 feat(ui): add AWS onboarding quick prompt 2026-06-30 17:58:02 +02:00
alejandrobailo 2451bfd132 feat(ui): show OpenAI model without selector 2026-06-30 17:35:05 +02:00
alejandrobailo 2845364b7f refactor(ui): move sidebar navigation mode toggle 2026-06-30 17:22:44 +02:00
alejandrobailo 0c2c05a2ea fix(ui): harden Lighthouse chat UI 2026-06-30 17:21:06 +02:00
alejandrobailo 599d962c0a fix(ui): recover Lighthouse chat stream state 2026-06-30 17:20:44 +02:00
alejandrobailo a91e21deb2 fix(ui): align Lighthouse business context limit 2026-06-30 17:20:10 +02:00
alejandrobailo 636cd988d5 fix(ui): complete Lighthouse provider setup 2026-06-30 16:02:33 +02:00
alejandrobailo de5afb3928 test(ui): trim brittle Lighthouse tests 2026-06-30 12:16:51 +02:00
alejandrobailo 3856fb1b80 fix(ui): constrain Lighthouse message overflow 2026-06-30 12:16:35 +02:00
alejandrobailo a705877f83 fix(ui): remove unsupported Lighthouse run cancellation 2026-06-30 12:16:21 +02:00
alejandrobailo 1188b62d22 fix(ui): interleave lighthouse tool activity 2026-06-30 11:25:15 +02:00
alejandrobailo 327760e5ae fix(ui): show Lighthouse provider logos in settings 2026-06-30 11:00:31 +02:00
alejandrobailo aba1dd29ad fix(ui): show Lighthouse provider and model names 2026-06-30 11:00:24 +02:00
alejandrobailo 3eb49f918e refactor(ui): share Lighthouse config redirect helper 2026-06-30 11:00:18 +02:00
alejandrobailo 294dbada5e fix(ui): mark active Lighthouse chat in sidebar 2026-06-30 11:00:13 +02:00
alejandrobailo ee4e24d8b9 fix(ui): stabilize Lighthouse decrypted text rendering 2026-06-30 11:00:06 +02:00
alejandrobailo 56b15e9110 fix(ui): persist Lighthouse model and business context per provider
Route Lighthouse model defaults and business context onto the per-provider
configuration system (PATCH /lighthouse/config/<id>) and drop all use of the
legacy tenant configuration (/lighthouse/configuration, is_active) from the UI.

This fixes the 400 'No active configuration found' error when selecting a
Bedrock model in chat, and partially reverts 58539dced. The chat now resolves
the initial provider by a fixed priority (OpenAI > Bedrock > OpenAI-compatible)
and remembers the chosen model as the provider's default_model. Also narrows
the chat model combobox width.
2026-06-30 10:02:56 +02:00
alejandrobailo 58539dced6 feat(ui): tenant-level model selection and shared business context for Lighthouse 2026-06-29 16:48:34 +02:00
alejandrobailo cc0fb9d2a5 fix(ui): align combobox radius with selects and support aria-label 2026-06-29 16:48:24 +02:00
alejandrobailo 80e2375e93 fix(ui): persist Lighthouse chat URL before notifications 2026-06-29 12:30:14 +02:00
alejandrobailo 3b9ebf3886 test(ui): update launch scan button width assertion to w-full 2026-06-26 14:18:27 +02:00
alejandrobailo 8673680a50 feat(ui): restyle sidebar nav toggle and match scan button width 2026-06-26 14:12:03 +02:00
alejandrobailo de48ae7b09 feat(ui): reset open lighthouse chat from sidebar new-chat 2026-06-26 14:12:03 +02:00
alejandrobailo 805e8af46e feat(ui): animate lighthouse empty-state headings with decrypted text 2026-06-26 14:11:58 +02:00
alejandrobailo 6f3928d09e feat(ui): redesign lighthouse chat composer input 2026-06-26 14:11:53 +02:00
alejandrobailo ccc3c0a4af fix(ui): align sidebar Scan button with main content top 2026-06-26 11:34:30 +02:00
alejandrobailo 11b1646217 chore(ui): rebrand user-facing "Lighthouse" copy to "Lighthouse AI" 2026-06-26 11:09:48 +02:00
alejandrobailo 4818788a5a feat(ui): use Lighthouse icon and "Home" label in sidebar nav toggle 2026-06-26 11:09:41 +02:00
alejandrobailo e62fe59aaa feat(ui): render Lighthouse tool calls as collapsible chain of thought 2026-06-26 11:09:36 +02:00
alejandrobailo 5323b3475e refactor(ui): streamline Lighthouse config and poll connection test 2026-06-25 20:30:37 +02:00
alejandrobailo f518fcd911 test(ui): remove brittle source-string Lighthouse tests 2026-06-25 19:51:19 +02:00
alejandrobailo a54f16fcc5 refactor(ui): componentize Lighthouse v2 chat and config pages 2026-06-25 19:51:12 +02:00
alejandrobailo bf622f8596 refactor(ui): extract shared markdown placeholder escaping 2026-06-25 19:50:52 +02:00
alejandrobailo cc1dd9b581 feat(ui): polish lighthouse v2 chat messages
Collapse the chain-of-thought by default with a pulsing Thinking header,
summarize tool calls as 'N tools called', and hide success outcomes.
Add a copy button and hover timestamps under each message (agent left,
user right).

Stream client: subscribe before POST without the open-event gate
(avoids a deadlock) and set the session URL with history.replaceState
instead of router.push (avoids remounting mid-stream).
2026-06-25 19:04:36 +02:00
alejandrobailo 23b8b6a655 fix(ui): repair lighthouse v2 chat streaming via same-origin SSE proxy
Add a same-origin Next.js route handler that reverse-proxies the Django
SSE stream, so the browser EventSource connects same-origin (no CORS)
and the access token stays server-side.

Drop the unused per-message stream URL and stop revalidating /lighthouse
on session create (the force-dynamic route would otherwise remount the
chat and tear down the EventSource).
2026-06-25 19:04:36 +02:00
alejandrobailo b314712d35 refactor(ui): co-locate lighthouse v2 under its route domain
Move actions/components/lib/types for lighthouse v2 into
app/(prowler)/lighthouse/_{actions,components,lib,types}, matching the
co-located feature architecture used by /alerts. Update importers
(page, settings, sidebar) and add an _actions barrel.

Scope AI Elements per version: keep the legacy primitives under
components/lighthouse-v1/ai-elements, and add clean v2 copies under
_components/ai-elements (no memo/useMemo, per React Compiler).
2026-06-25 19:04:35 +02:00
alejandrobailo 2cb2a13479 fix(ui): confirm before archiving Lighthouse chats 2026-06-25 16:12:44 +02:00
alejandrobailo 6eeadbb32e docs(ui): remove lighthouse changelog entry 2026-06-25 16:04:34 +02:00
alejandrobailo f98efd0dc1 fix(ui): improve lighthouse session history 2026-06-25 16:04:24 +02:00
alejandrobailo bb7eb06746 fix(ui): tune lighthouse chat layout 2026-06-25 16:04:13 +02:00
alejandrobailo 7cb192f69b refactor(ui): simplify lighthouse settings panel 2026-06-25 16:04:01 +02:00
alejandrobailo 81a8e3b9f3 refactor(ui): move lighthouse settings routes 2026-06-25 16:03:50 +02:00
alejandrobailo 15da838fb6 fix(ui): reset Lighthouse chat from sidebar 2026-06-25 13:58:14 +02:00
alejandrobailo 508720679a fix(ui): simplify Lighthouse chat composer 2026-06-25 13:07:31 +02:00