From 3e5422b90a09d1ed2cfffae56abf8dbe361f6c27 Mon Sep 17 00:00:00 2001 From: sowgro Date: Wed, 2 Apr 2025 23:27:27 -0400 Subject: [incomplete] rearrange code to begin need-list abstraction --- .../components/cupboard/cupboard.component.html | 88 ++++++++++++++-------- 1 file changed, 58 insertions(+), 30 deletions(-) (limited to 'ufund-ui/src/app/components/cupboard/cupboard.component.html') diff --git a/ufund-ui/src/app/components/cupboard/cupboard.component.html b/ufund-ui/src/app/components/cupboard/cupboard.component.html index 37954bb..bdc8a0e 100644 --- a/ufund-ui/src/app/components/cupboard/cupboard.component.html +++ b/ufund-ui/src/app/components/cupboard/cupboard.component.html @@ -3,36 +3,64 @@

Cupboard

- - - -
- -
-
-

Create Need

-
-
-
-
-
-
-
-
-
-
- -
- -
- -
-
-
- -
-
+
+
+
+ +
+
+
+
+ + + + + +
+
+

Search Results({{needs.length - (searchResults | async)?.length}} needs filtered):

+

All Needs

+

No Results Found

+ +
- + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -- cgit v1.2.3 From ad651c44ce2515d497c8e5214147c69126e25903 Mon Sep 17 00:00:00 2001 From: sowgro Date: Thu, 3 Apr 2025 19:48:54 -0400 Subject: abstraction working with search and sort --- .../src/app/components/cupboard/cupboard.component.html | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'ufund-ui/src/app/components/cupboard/cupboard.component.html') diff --git a/ufund-ui/src/app/components/cupboard/cupboard.component.html b/ufund-ui/src/app/components/cupboard/cupboard.component.html index bdc8a0e..969b232 100644 --- a/ufund-ui/src/app/components/cupboard/cupboard.component.html +++ b/ufund-ui/src/app/components/cupboard/cupboard.component.html @@ -14,23 +14,23 @@
- - +
-

Search Results({{needs.length - (searchResults | async)?.length}} needs filtered):

-

All Needs

-

No Results Found

+

Search Results({{needs.length - searchResults.length}} needs filtered):

+

All Needs

+

No Results Found

- + -- cgit v1.2.3 From 6a5033afc3c8e0d5d12d709b35b306b6ea1f70e8 Mon Sep 17 00:00:00 2001 From: sowgro Date: Thu, 3 Apr 2025 23:11:05 -0400 Subject: Implemented action buttons with ng-template!!! --- .../src/app/components/cupboard/cupboard.component.html | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'ufund-ui/src/app/components/cupboard/cupboard.component.html') diff --git a/ufund-ui/src/app/components/cupboard/cupboard.component.html b/ufund-ui/src/app/components/cupboard/cupboard.component.html index 969b232..cd387a3 100644 --- a/ufund-ui/src/app/components/cupboard/cupboard.component.html +++ b/ufund-ui/src/app/components/cupboard/cupboard.component.html @@ -24,13 +24,23 @@ -

Search Results({{needs.length - searchResults.length}} needs filtered):

All Needs

No Results Found

- + + + + + + -- cgit v1.2.3 From 43b036dc8ac03100787ec691a4f4ebe3670f861f Mon Sep 17 00:00:00 2001 From: sowgro Date: Thu, 3 Apr 2025 23:22:16 -0400 Subject: code cleanup --- ufund-ui/src/app/components/cupboard/cupboard.component.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ufund-ui/src/app/components/cupboard/cupboard.component.html') diff --git a/ufund-ui/src/app/components/cupboard/cupboard.component.html b/ufund-ui/src/app/components/cupboard/cupboard.component.html index cd387a3..c055c31 100644 --- a/ufund-ui/src/app/components/cupboard/cupboard.component.html +++ b/ufund-ui/src/app/components/cupboard/cupboard.component.html @@ -40,7 +40,7 @@ deleteDelete Need
- + -- cgit v1.2.3 From a5567b2ed092af3a50da75eef28d46c06760a266 Mon Sep 17 00:00:00 2001 From: sowgro Date: Fri, 4 Apr 2025 10:48:31 -0400 Subject: Improve add to basket feedback --- ufund-ui/src/app/components/cupboard/cupboard.component.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ufund-ui/src/app/components/cupboard/cupboard.component.html') diff --git a/ufund-ui/src/app/components/cupboard/cupboard.component.html b/ufund-ui/src/app/components/cupboard/cupboard.component.html index c055c31..71c258e 100644 --- a/ufund-ui/src/app/components/cupboard/cupboard.component.html +++ b/ufund-ui/src/app/components/cupboard/cupboard.component.html @@ -18,7 +18,7 @@ {{SortingAlgorithms[algorithm].display[sortMode === 'Ascending' ? 0 : 1]}} - @@ -30,8 +30,8 @@

No Results Found

- - + + + +
@@ -34,7 +37,7 @@ {{inBasket(usersService.getBasket() | async, need)? "check": "add" }}Add To Basket - +
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -- cgit v1.2.3 From b578584a1208178100bf90e8b06971772c7fc00f Mon Sep 17 00:00:00 2001 From: sowgro Date: Fri, 4 Apr 2025 21:55:12 -0400 Subject: Fix many bugs and code clean up --- ufund-ui/src/app/components/cupboard/cupboard.component.html | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'ufund-ui/src/app/components/cupboard/cupboard.component.html') diff --git a/ufund-ui/src/app/components/cupboard/cupboard.component.html b/ufund-ui/src/app/components/cupboard/cupboard.component.html index 3873719..cd8fec2 100644 --- a/ufund-ui/src/app/components/cupboard/cupboard.component.html +++ b/ufund-ui/src/app/components/cupboard/cupboard.component.html @@ -4,7 +4,7 @@ - +
@@ -33,16 +33,16 @@

No Results Found

- - - -- cgit v1.2.3