chore: convert media to live component

This commit is contained in:
2026-05-03 13:09:27 +02:00
parent 9f17954ce3
commit 5bc2b4a338
7 changed files with 528 additions and 637 deletions

View File

@@ -401,8 +401,8 @@ defmodule BDS.UI.ShellTest do
media_editor_ex =
File.read!("/Users/gb/Projects/bDS2/lib/bds/desktop/shell_live/media_editor.ex")
assert template =~ "<MediaEditor.media_editor"
assert media_editor_ex =~ "def build(%{current_tab: %{type: :media, id: media_id}} = assigns)"
assert template =~ "<.live_component module={MediaEditor}"
assert media_editor_ex =~ "defp build_data(socket)"
refute live_ex =~ "defp update_media_editor("
refute live_ex =~ "defp persist_media_editor("