diff --git a/lib/polar_web/live/dashboard/space_live.ex b/lib/polar_web/live/dashboard/space_live.ex index 35f92ff..342c943 100644 --- a/lib/polar_web/live/dashboard/space_live.ex +++ b/lib/polar_web/live/dashboard/space_live.ex @@ -51,10 +51,12 @@ defmodule PolarWeb.Dashboard.SpaceLive do id={"credential_#{credential.id}"} class="relative flex justify-between gap-x-6 px-4 py-5 hover:bg-gray-50 sm:px-6" > - <.link navigate={~p"/dashboard/spaces/#{credential.space_id}/credentials/#{credential.id}"}> -
+
+ <.link navigate={ + ~p"/dashboard/spaces/#{credential.space_id}/credentials/#{credential.id}" + }>
-

<%= credential.name %>

+

<%= credential.name %>

@@ -77,16 +79,16 @@ defmodule PolarWeb.Dashboard.SpaceLive do <% end %>

-
-
- <.link - navigate={~p"/dashboard/spaces/#{credential.space_id}/credentials/#{credential.id}"} - class="hidden rounded-md bg-white px-2.5 py-1.5 text-sm font-semibold text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 hover:bg-gray-50 sm:block" - > - <%= gettext("View credential") %> - -
- + +
+
+ <.link + navigate={~p"/dashboard/spaces/#{credential.space_id}/credentials/#{credential.id}"} + class="hidden rounded-md bg-white px-2.5 py-1.5 text-sm font-semibold text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 hover:bg-gray-50 sm:block" + > + <%= gettext("View credential") %> + +
diff --git a/lib/polar_web/live/dashboard_live.ex b/lib/polar_web/live/dashboard_live.ex index b91021e..1b01014 100644 --- a/lib/polar_web/live/dashboard_live.ex +++ b/lib/polar_web/live/dashboard_live.ex @@ -48,10 +48,10 @@ defmodule PolarWeb.DashboardLive do id={"space_#{space.id}"} class="relative flex justify-between gap-x-6 px-4 py-5 hover:bg-gray-50 sm:px-6" > - <.link navigate={~p"/dashboard/spaces/#{space.id}"}> -
+
+ <.link navigate={~p"/dashboard/spaces/#{space.id}"}>
-

<%= space.name %>

+

<%= space.name %>

@@ -65,16 +65,16 @@ defmodule PolarWeb.DashboardLive do

<%= gettext("Owned by") %> <%= space.owner.email %>

-
-
- <.link - navigate={~p"/dashboard/spaces/#{space.id}"} - class="hidden rounded-md bg-white px-2.5 py-1.5 text-sm font-semibold text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 hover:bg-gray-50 sm:block" - > - <%= gettext("View space") %> - -
- + +
+
+ <.link + navigate={~p"/dashboard/spaces/#{space.id}"} + class="hidden rounded-md bg-white px-2.5 py-1.5 text-sm font-semibold text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 hover:bg-gray-50 sm:block" + > + <%= gettext("View space") %> + +
diff --git a/lib/polar_web/live/root_live.ex b/lib/polar_web/live/root_live.ex index 1cba7ca..acafb96 100644 --- a/lib/polar_web/live/root_live.ex +++ b/lib/polar_web/live/root_live.ex @@ -2,7 +2,6 @@ defmodule PolarWeb.RootLive do use PolarWeb, :live_view alias Polar.Repo - alias Polar.Streams alias Polar.Streams.Version import Ecto.Query, only: [from: 2] diff --git a/test/polar_web/live/dashboard_live_test.exs b/test/polar_web/live/dashboard_live_test.exs index f10ccdb..10baaf6 100644 --- a/test/polar_web/live/dashboard_live_test.exs +++ b/test/polar_web/live/dashboard_live_test.exs @@ -72,7 +72,7 @@ defmodule PolarWeb.DashboardLiveTest do {:ok, lv, _html} = live(conn, ~p"/dashboard") lv - |> element("#space_#{space.id} a", "View space") + |> element("#space_#{space.id} a", space.name) |> render_click() assert_redirect(lv, ~p"/dashboard/spaces/#{space.id}")