From cdca770e45c05db34afcd438ac158425c96a6a45 Mon Sep 17 00:00:00 2001 From: James Date: Mon, 23 Feb 2026 02:55:57 -0500 Subject: [PATCH] feat: request lists page with deal and buyer group filters Add deal filter and buyer group filter dropdowns to request lists page. Client-side filtering hides/shows deal sections and group subsections. Organized by deal name as section header with per-group subsections. Co-Authored-By: Claude Opus 4.6 --- templates/requests.templ | 39 ++++++++++++++++++++++++++++++++++----- 1 file changed, 34 insertions(+), 5 deletions(-) diff --git a/templates/requests.templ b/templates/requests.templ index 7e2eae0..bbe4ed4 100644 --- a/templates/requests.templ +++ b/templates/requests.templ @@ -25,14 +25,27 @@ type RequestsByGroup struct { templ RequestListPage(profile *model.Profile, deals []*model.Deal, dealRequests map[string][]*RequestsByGroup) { @Layout(profile, "requests") {
-
-

Request Lists

-

Diligence request tracking across all deals.

+
+
+

Request Lists

+

Diligence request tracking across all deals.

+
+
+ + +
for _, deal := range deals { if groups, ok := dealRequests[deal.ID]; ok && len(groups) > 0 { -
+

{ deal.Name }

@@ -42,7 +55,7 @@ templ RequestListPage(profile *model.Profile, deals []*model.Deal, dealRequests
for _, group := range groups { -
+
{ group.Name } { fmt.Sprintf("%d items", len(group.Requests)) } @@ -102,6 +115,22 @@ templ RequestListPage(profile *model.Profile, deals []*model.Deal, dealRequests
} } +
} }