From c46c909056c01e48755fabb96b7471bdb2924d1b Mon Sep 17 00:00:00 2001 From: "Elias W. BA" Date: Wed, 6 Nov 2024 08:28:35 +0200 Subject: [PATCH] Fix Projects Table Sorting Directions Icons (#2631) * Fix sorting direction icons --- CHANGELOG.md | 2 ++ lib/lightning_web/live/dashboard_live/components.ex | 4 ++-- test/lightning_web/live/dashboard_live_test.exs | 4 ++-- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c42d073e8c..73cda6607f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -29,6 +29,8 @@ and this project adheres to ### Fixed +- Fix sorting directions icons in projects table in the project dashboard page + [#2631](https://github.com/OpenFn/lightning/pull/2631) - Fixed an issue where code-completion prompts don't load properly in the inspector [#2629](https://github.com/OpenFn/lightning/pull/2629) - Fixed an issue where namespaces (like http.) don't appear in code assist diff --git a/lib/lightning_web/live/dashboard_live/components.ex b/lib/lightning_web/live/dashboard_live/components.ex index 398ad499d2..1aea94dd61 100644 --- a/lib/lightning_web/live/dashboard_live/components.ex +++ b/lib/lightning_web/live/dashboard_live/components.ex @@ -123,7 +123,7 @@ defmodule LightningWeb.DashboardLive.Components do end def user_projects_table(assigns) do - next_sort_icon = %{asc: "hero-chevron-down", desc: "hero-chevron-up"} + next_sort_icon = %{asc: "hero-chevron-up", desc: "hero-chevron-down"} assigns = assign(assigns, @@ -210,7 +210,7 @@ defmodule LightningWeb.DashboardLive.Components do <%= if project.last_activity do %> <%= Lightning.Helpers.format_date( project.last_activity, - "%d/%b/%Y %H:%M:%S" + "%d/%m/%Y %H:%M:%S" ) %> <% else %> No activity diff --git a/test/lightning_web/live/dashboard_live_test.exs b/test/lightning_web/live/dashboard_live_test.exs index 04f0368daf..4149cd9ef5 100644 --- a/test/lightning_web/live/dashboard_live_test.exs +++ b/test/lightning_web/live/dashboard_live_test.exs @@ -344,7 +344,7 @@ defmodule LightningWeb.DashboardLiveTest do ) formatted_date = - Lightning.Helpers.format_date(max_updated_at, "%d/%b/%Y %H:%M:%S") + Lightning.Helpers.format_date(max_updated_at, "%d/%m/%Y %H:%M:%S") assert has_element?( view, @@ -374,7 +374,7 @@ defmodule LightningWeb.DashboardLiveTest do |> Enum.max(fn -> nil end) if last_activity do - Lightning.Helpers.format_date(last_activity, "%d/%b/%Y %H:%M:%S") + Lightning.Helpers.format_date(last_activity, "%d/%m/%Y %H:%M:%S") else "No activity" end