From 6e7988567bc66c573247393d584b29a2362f8b1a Mon Sep 17 00:00:00 2001 From: kraleppa Date: Thu, 27 Nov 2025 13:26:36 +0100 Subject: [PATCH 1/3] Not displaying error in case of dead LiveView --- .../app/debugger/async_jobs/web/async_jobs_live.ex | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/live_debugger/app/debugger/async_jobs/web/async_jobs_live.ex b/lib/live_debugger/app/debugger/async_jobs/web/async_jobs_live.ex index 671aac5cf..86c7bd694 100644 --- a/lib/live_debugger/app/debugger/async_jobs/web/async_jobs_live.ex +++ b/lib/live_debugger/app/debugger/async_jobs/web/async_jobs_live.ex @@ -148,6 +148,12 @@ defmodule LiveDebugger.App.Debugger.AsyncJobs.Web.AsyncJobsLive do |> noreply() end + def handle_async(:fetch_async_jobs, {:ok, {:error, :not_alive_or_not_a_liveview}}, socket) do + socket + |> assign(:async_jobs, AsyncResult.ok([])) + |> noreply() + end + def handle_async(:fetch_async_jobs, {:ok, {:error, reason}}, socket) do socket |> assign(:async_jobs, AsyncResult.failed(AsyncResult.loading(), reason)) From d52ca9013223f2e8e697c132a8eb1f56deda3532 Mon Sep 17 00:00:00 2001 From: kraleppa Date: Thu, 27 Nov 2025 13:26:47 +0100 Subject: [PATCH 2/3] Change message on empty list --- .../app/debugger/async_jobs/web/async_jobs_live.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/live_debugger/app/debugger/async_jobs/web/async_jobs_live.ex b/lib/live_debugger/app/debugger/async_jobs/web/async_jobs_live.ex index 86c7bd694..c8fd9dac2 100644 --- a/lib/live_debugger/app/debugger/async_jobs/web/async_jobs_live.ex +++ b/lib/live_debugger/app/debugger/async_jobs/web/async_jobs_live.ex @@ -81,7 +81,7 @@ defmodule LiveDebugger.App.Debugger.AsyncJobs.Web.AsyncJobsLive do <%= async_jobs_failed(@async_jobs) %>
- No async jobs found + No active async jobs found
<.async_job :for={async_job <- async_jobs} From 8617e061e5a51327a7f0a3813ac0316e4825bf8c Mon Sep 17 00:00:00 2001 From: Hubert Kasprzycki Date: Mon, 1 Dec 2025 11:11:43 +0100 Subject: [PATCH 3/3] Fix e2e test --- test/e2e/async_jobs_test.exs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/e2e/async_jobs_test.exs b/test/e2e/async_jobs_test.exs index 35e1633cf..76223b986 100644 --- a/test/e2e/async_jobs_test.exs +++ b/test/e2e/async_jobs_test.exs @@ -98,7 +98,7 @@ defmodule LiveDebugger.E2E.AsyncJobsTest do defp async_job_name(name), do: css("#async-jobs p.font-medium", text: name) - defp no_async_jobs(), do: css("#async-jobs", text: "No async jobs found") + defp no_async_jobs(), do: css("#async-jobs", text: "No active async jobs found") defp node_module_info(text), do: css("#node-inspector-basic-info-current-node-module", text: text)