more filters are now automatically shown when one is in use

Mon, 05 Aug 2024 19:44:16 +0200

author
Mike Becker <universe@uap-core.de>
date
Mon, 05 Aug 2024 19:44:16 +0200
changeset 314
8a8b1c5d168b
parent 313
7cfe88b8e219
child 315
4fe3f61744cf

more filters are now automatically shown when one is in use

fixes #406

src/main/kotlin/de/uapcore/lightpit/viewmodel/Issues.kt file | annotate | diff | comparison | revisions
src/main/webapp/WEB-INF/changelogs/changelog-de.jspf file | annotate | diff | comparison | revisions
src/main/webapp/WEB-INF/changelogs/changelog.jspf file | annotate | diff | comparison | revisions
src/main/webapp/WEB-INF/jspf/issue-filter.jspf file | annotate | diff | comparison | revisions
--- a/src/main/kotlin/de/uapcore/lightpit/viewmodel/Issues.kt	Mon Aug 05 19:38:47 2024 +0200
+++ b/src/main/kotlin/de/uapcore/lightpit/viewmodel/Issues.kt	Mon Aug 05 19:44:16 2024 +0200
@@ -228,6 +228,8 @@
     val sortSecondary: IssueSorter.Criteria = evalSort(http, "secondary", IssueSorter.Criteria(IssueSorter.Field.ETA))
     val sortTertiary: IssueSorter.Criteria = evalSort(http, "tertiary", IssueSorter.Criteria(IssueSorter.Field.UPDATED, false))
 
+    val anyListFilterActive = status.isNotEmpty() || category.isNotEmpty() || assignee.isNotEmpty()
+
     fun containsAssignee(user: User?): Boolean = assignee.contains(user?.id?:-1)
 
     private fun evalSort(http: HttpRequest, prio: String, defaultValue: IssueSorter.Criteria): IssueSorter.Criteria {
--- a/src/main/webapp/WEB-INF/changelogs/changelog-de.jspf	Mon Aug 05 19:38:47 2024 +0200
+++ b/src/main/webapp/WEB-INF/changelogs/changelog-de.jspf	Mon Aug 05 19:44:16 2024 +0200
@@ -30,6 +30,7 @@
     <li>Neue globale Vorgangsseite hinzugefügt.</li>
     <li>Filter für Bearbeiter hinzugefügt.</li>
     <li>Filter für Vorgangsphasen hinzugefügt.</li>
+    <li>Erweiterte Filter werden nun autoamtisch angezeigt, wenn einer von ihnen in Verwendung ist.</li>
     <li>Automatische Zuweisung von Vorgängen bezieht neben der Leitung für eine Komponente nun auch die Leitung des Projektes ein.</li>
     <li>Der "OK" Button im Vorgangseditor führt nun zurück zur Vorgangsübersicht.</li>
     <li>Ein neuer "Speichern" Button im Vorgangseditor führt, wie zuvor, zurück zur Vorgangsansicht.</li>
--- a/src/main/webapp/WEB-INF/changelogs/changelog.jspf	Mon Aug 05 19:38:47 2024 +0200
+++ b/src/main/webapp/WEB-INF/changelogs/changelog.jspf	Mon Aug 05 19:44:16 2024 +0200
@@ -30,6 +30,7 @@
     <li>Add new Issues page to globally list all issues across all projects.</li>
     <li>Add filter for assignee.</li>
     <li>Add filter for issue phases.</li>
+    <li>Advanced filter are now automatically shown when one of them is used.</li>
     <li>Automatic assignment of issue now uses the project lead as fallback when no component lead is available.</li>
     <li>The "OK" button in the issue editor now leads to the issue overview.</li>
     <li>A new "Save" button in the issue editor retains the old behavior and returns to the issue viewer.</li>
--- a/src/main/webapp/WEB-INF/jspf/issue-filter.jspf	Mon Aug 05 19:38:47 2024 +0200
+++ b/src/main/webapp/WEB-INF/jspf/issue-filter.jspf	Mon Aug 05 19:44:16 2024 +0200
@@ -27,7 +27,8 @@
             <fmt:message key="issue.filter.blocking"/>
         </label>
         <label>
-            <input id="show-more-filters" type="checkbox" onclick="toggleFilterDetails()">
+            <input id="show-more-filters" type="checkbox" onclick="toggleFilterDetails()"
+                <c:if test="${viewmodel.filter.anyListFilterActive}">checked</c:if> >
             <fmt:message key="issue.filter.more"/>
         </label>
     </div>

mercurial