From a1456592bdcc4ca0f34b3fe0eaa7e205d4334cb3 Mon Sep 17 00:00:00 2001 From: Chili Palmer Date: Sun, 26 Apr 2026 08:38:26 +0200 Subject: [PATCH] fix: shortcuts back working --- lib/bds/desktop/shell_live.ex | 3 ++ lib/bds/desktop/shell_live/index.html.heex | 2 +- lib/bds/ui/commands.ex | 29 +++++++++-- priv/ui/live.js | 59 ++++++++++++++++++++++ test/bds/desktop/automation_test.exs | 5 ++ test/bds/ui/shell_test.exs | 8 +++ 6 files changed, 100 insertions(+), 6 deletions(-) diff --git a/lib/bds/desktop/shell_live.ex b/lib/bds/desktop/shell_live.ex index 4f6ee76..4aa239d 100644 --- a/lib/bds/desktop/shell_live.ex +++ b/lib/bds/desktop/shell_live.ex @@ -44,6 +44,7 @@ defmodule BDS.Desktop.ShellLive do socket |> assign(:page_title, ShellData.title()) |> assign(:page_language, ShellData.ui_language()) + |> assign(:client_shortcuts, Commands.client_shortcuts()) |> assign(:offline_mode, true) |> assign(:tab_meta, %{}) |> assign(:project_menu_open, false) @@ -940,6 +941,8 @@ defmodule BDS.Desktop.ShellLive do defp translated(text, bindings \\ %{}), do: ShellData.translate(text, bindings, Process.get(:bds_ui_locale)) + defp encoded_shortcuts(shortcuts), do: Jason.encode!(shortcuts) + defp panel_tab_label(:tasks), do: translated("Tasks") defp panel_tab_label(:output), do: translated("Output") defp panel_tab_label(:git_log), do: translated("Git Log") diff --git a/lib/bds/desktop/shell_live/index.html.heex b/lib/bds/desktop/shell_live/index.html.heex index 721b822..792d9ab 100644 --- a/lib/bds/desktop/shell_live/index.html.heex +++ b/lib/bds/desktop/shell_live/index.html.heex @@ -1,4 +1,4 @@ -
+