From c209563a2668cfca7a29ef67903344c84e97b941 Mon Sep 17 00:00:00 2001 From: Taylor Downs Date: Wed, 6 Nov 2024 07:32:34 +0000 Subject: [PATCH] Better UX for project deletion modal (#2634) * show project name if asking for confirmation --------- Co-authored-by: Stuart Corbishley --- CHANGELOG.md | 2 ++ .../live/components/project_deletion_modal.ex | 10 +++++----- test/lightning_web/live/project_live_test.exs | 4 ++-- 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 67f52574da..5444d5c3e4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -26,6 +26,8 @@ and this project adheres to [#2629](https://github.com/OpenFn/lightning/pull/2629) - JSDoc annotations are removed from code assist descriptions [#2629](https://github.com/OpenFn/lightning/pull/2629) +- Show project name during delete confirmation + [#2634](https://github.com/OpenFn/lightning/pull/2634) ### Fixed diff --git a/lib/lightning_web/live/components/project_deletion_modal.ex b/lib/lightning_web/live/components/project_deletion_modal.ex index 92df5dbbac..7af7b74889 100644 --- a/lib/lightning_web/live/components/project_deletion_modal.ex +++ b/lib/lightning_web/live/components/project_deletion_modal.ex @@ -97,19 +97,19 @@ defmodule LightningWeb.Components.ProjectDeletionModal do
<.p> - Enter the project name to confirm it's deletion + Deleting this project will disable access + for all users, and disable all jobs in the project. The whole project will be deleted + along with all workflows and work order history, <%= human_readable_grace_period() %>. <.p> - Deleting this project will disable access - for all users, and disable all jobs in the project. The whole project will be deleted - along with all workflows and work order history, <%= human_readable_grace_period() %>. + Enter the project name to confirm deletion: <%= @project.name %>