From 8f2c85143c08afd3fc85f99bedd93c97dee0d896 Mon Sep 17 00:00:00 2001 From: Eli293 <119442915+Eli293@users.noreply.github.com> Date: Sat, 21 Oct 2023 23:01:45 -0400 Subject: [PATCH] Feat(INVT-CPC-988): Include user friendly action handlers (#562) JIRA: link to jira ticket https://champlainsaintlambert.atlassian.net/browse/CPC-988 ## Context: This change is about re styling the inventory action handlers. ## Changes - Added different animated icons from library set in the index - Added titles when hovering the buttons - This change only affects the styling of the action handlers - Equalized the list borders ## Before and After UI (Required for UI-impacting PRs) InventoryProducts-Before ![image](https://github.com/cgerard321/champlain_petclinic/assets/119442915/2ed38001-c70e-4d6f-a55f-1daddb1a909c) InventoryProducts-After ![image](https://github.com/cgerard321/champlain_petclinic/assets/119442915/c5a45107-8691-4386-8cb8-5829539c4e8f) Inventory-Before ![image](https://github.com/cgerard321/champlain_petclinic/assets/119442915/3ba8eb6b-bb15-4512-8734-75f91f1ede4b) Inventory-After ![image](https://github.com/cgerard321/champlain_petclinic/assets/119442915/8c3f1110-3437-41f9-b6dd-d6cd117234aa) --- .../src/main/resources/static/index.html | 3 +- .../inventory-list.template.html | 39 +++++++++++++-- .../inventory-product-list.template.html | 48 +++++++++++++++---- 3 files changed, 77 insertions(+), 13 deletions(-) diff --git a/api-gateway/src/main/resources/static/index.html b/api-gateway/src/main/resources/static/index.html index ae6a0732f8..1f84eb244d 100755 --- a/api-gateway/src/main/resources/static/index.html +++ b/api-gateway/src/main/resources/static/index.html @@ -14,6 +14,7 @@ PetClinic :: a Spring Framework demonstration + @@ -37,7 +38,7 @@ - + diff --git a/api-gateway/src/main/resources/static/scripts/inventory-list/inventory-list.template.html b/api-gateway/src/main/resources/static/scripts/inventory-list/inventory-list.template.html index 7434da746e..bda18b7d62 100644 --- a/api-gateway/src/main/resources/static/scripts/inventory-list/inventory-list.template.html +++ b/api-gateway/src/main/resources/static/scripts/inventory-list/inventory-list.template.html @@ -2,6 +2,13 @@ .table-striped tbody tr:hover { background-color: #D8D8D8; } + + .btn:hover { + transform: translateY(2px); + box-shadow: 0 0 rgba(0, 0, 0, 2); + border-bottom-width: 1px; + } + @@ -14,7 +21,9 @@

Inventory

Name Type Description - + + + @@ -38,7 +47,13 @@

Inventory

- + + + + @@ -57,12 +72,28 @@

Inventory

- Edit + + + + + + - Delete + + + + + + diff --git a/api-gateway/src/main/resources/static/scripts/inventory-product-list/inventory-product-list.template.html b/api-gateway/src/main/resources/static/scripts/inventory-product-list/inventory-product-list.template.html index e7a43acb4d..9f24bef06b 100644 --- a/api-gateway/src/main/resources/static/scripts/inventory-product-list/inventory-product-list.template.html +++ b/api-gateway/src/main/resources/static/scripts/inventory-product-list/inventory-product-list.template.html @@ -1,5 +1,5 @@