Add record chat sheet with OpenAI streaming

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Claudio Ortolina
2026-02-22 10:13:05 +00:00
parent 5868fa0219
commit 6e6e419801
9 changed files with 621 additions and 114 deletions
@@ -26,6 +26,18 @@
data-slot="icon"
/>
</.button>
<.button
variant="soft"
phx-click={MusicLibraryWeb.Components.RecordChat.open("record-chat-sheet")}
>
<span class="sr-only">{gettext("Chat about album")}</span>
<.icon
name="hero-chat-bubble-left-right"
class="h-5 w-5"
aria-hidden="true"
data-slot="icon"
/>
</.button>
<.button
:if={@record.selected_release_id}
variant="soft"
@@ -327,6 +339,13 @@
musicbrainz_id={@record.musicbrainz_id}
/>
<.live_component
id="record-chat"
sheet_id="record-chat-sheet"
module={MusicLibraryWeb.Components.RecordChat}
record={@record}
/>
<.structured_modal
:if={@live_action == :edit}
id="record-modal"