feat: group board filters in a menu
Test and publish / verify (push) Successful in 2m17s

This commit is contained in:
nfel committed 2026-07-29 14:16:25 +03:30
1 parent 5a3ca4eb40
commit 0800487ddd
5 files changed
+70 -44

No files matched your search

+10
View File
@@ -107,6 +107,7 @@ type BoardFilter struct {
AssigneeID int64
Priority string
Active bool
Count int
}
type ReportTotals struct {
@@ -786,6 +787,15 @@ func (s *Server) boardPage(w http.ResponseWriter, r *http.Request) {
if !validBoardPriority(filter.Priority) {
filter.Priority = ""
}
if filter.TagID > 0 {
filter.Count++
}
if filter.AssigneeID > 0 {
filter.Count++
}
if filter.Priority != "" {
filter.Count++
}
filter.Active = filter.TagID > 0 || filter.AssigneeID > 0 || filter.Priority != ""
if filter.Active {
filtered := make([]BoardTask, 0, len(tasks))