diff --git a/lib/livebook/hubs/dockerfile.ex b/lib/livebook/hubs/dockerfile.ex index 908c4bca9..f0718819d 100644 --- a/lib/livebook/hubs/dockerfile.ex +++ b/lib/livebook/hubs/dockerfile.ex @@ -55,7 +55,7 @@ defmodule Livebook.Hubs.Dockerfile do list(Livebook.FileSystem.t()), Livebook.FileSystem.File.t() | nil, list(Livebook.Notebook.file_entry()), - list(Livebook.Session.Data.secrets()) + Livebook.Session.Data.secrets() ) :: String.t() def build_dockerfile(config, hub, hub_secrets, hub_file_systems, file, file_entries, secrets) do base_image = Enum.find(Livebook.Config.docker_images(), &(&1.tag == config.docker_tag)) diff --git a/lib/livebook_web/live/file_select_component.ex b/lib/livebook_web/live/file_select_component.ex index f14e09aee..6a1832606 100644 --- a/lib/livebook_web/live/file_select_component.ex +++ b/lib/livebook_web/live/file_select_component.ex @@ -84,11 +84,12 @@ defmodule LivebookWeb.FileSelectComponent do @impl true def render(assigns) do ~H""" -
+

File system

<.file_system_menu_button + id={"#{@id}-file-system-menu"} file={@file} file_systems={@file_systems} configure_path={@configure_path} @@ -104,7 +105,7 @@ defmodule LivebookWeb.FileSelectComponent do >
- <.menu id="new-item-menu" disabled={@file_system_select_disabled} position={:bottom_right}> + <.menu + id={"#{@id}-new-item-menu"} + disabled={@file_system_select_disabled} + position={:bottom_right} + > <:toggle> <.menu_item> - <.menu_item> - @@ -178,14 +186,24 @@ defmodule LivebookWeb.FileSelectComponent do
- <.new_item_section type="dir" icon="folder-add-fill" myself={@myself} /> - <.new_item_section type="notebook" icon="file-add-line" myself={@myself} /> + <.new_item_section + id={"#{@id}-new-dir-section"} + type="dir" + icon="folder-add-fill" + myself={@myself} + /> + <.new_item_section + id={"#{@id}-new-notebook-section"} + type="notebook" + icon="file-add-line" + myself={@myself} + />
<.live_file_input @@ -200,6 +218,7 @@ defmodule LivebookWeb.FileSelectComponent do > <%= for file_info <- @file_infos, file_info.highlighted != "" do %> <.file + id={"#{@id}-file-#{file_info.id}"} file_info={file_info} myself={@myself} renaming_file={@renaming_file} @@ -211,6 +230,7 @@ defmodule LivebookWeb.FileSelectComponent do
<%= for file_info <- @file_infos, file_info.highlighted == "" do %> <.file + id={"#{@id}-file-#{file_info.id}"} file_info={file_info} myself={@myself} renaming_file={@renaming_file} @@ -240,25 +260,24 @@ defmodule LivebookWeb.FileSelectComponent do ~H"""