# HG changeset patch # User Mike Becker # Date 1748288462 -7200 # Node ID cbbadb493f228b1b55ca651b18a6122213b82fb2 # Parent 34abadbdd0e3d7788fc5f6b3f67140650cc60b6c add "open in project" button - resolves #675 diff -r 34abadbdd0e3 -r cbbadb493f22 src/main/kotlin/de/uapcore/lightpit/Constants.kt --- a/src/main/kotlin/de/uapcore/lightpit/Constants.kt Wed May 21 14:19:07 2025 +0200 +++ b/src/main/kotlin/de/uapcore/lightpit/Constants.kt Mon May 26 21:41:02 2025 +0200 @@ -29,7 +29,7 @@ /** * A data in yyyy-mm-dd format to identify the release. */ - const val VERSION_DATE = "2025-05-18" + const val VERSION_DATE = "2025-05-26" /** * The path where the JSP files reside. diff -r 34abadbdd0e3 -r cbbadb493f22 src/main/kotlin/de/uapcore/lightpit/logic/IssueLogic.kt --- a/src/main/kotlin/de/uapcore/lightpit/logic/IssueLogic.kt Wed May 21 14:19:07 2025 +0200 +++ b/src/main/kotlin/de/uapcore/lightpit/logic/IssueLogic.kt Mon May 26 21:41:02 2025 +0200 @@ -168,8 +168,8 @@ comments, dao.listIssueRelations(issue), dao.listCommitRefs(issue), + pathInfos, relationError, - pathInfos ) if (pathInfos is PathInfosFull) { navigationMenu = projectNavMenu(dao.listProjects(), pathInfos) diff -r 34abadbdd0e3 -r cbbadb493f22 src/main/kotlin/de/uapcore/lightpit/servlet/IssuesServlet.kt --- a/src/main/kotlin/de/uapcore/lightpit/servlet/IssuesServlet.kt Wed May 21 14:19:07 2025 +0200 +++ b/src/main/kotlin/de/uapcore/lightpit/servlet/IssuesServlet.kt Mon May 26 21:41:02 2025 +0200 @@ -99,7 +99,8 @@ dao.listComponents(issue.project), dao.listVariants(issue.project), dao.listUsers(), - issue.project + issue.project, + PathInfosSimple() ) styleSheets = listOf("projects") javascript = "issue-editor" diff -r 34abadbdd0e3 -r cbbadb493f22 src/main/kotlin/de/uapcore/lightpit/viewmodel/Issues.kt --- a/src/main/kotlin/de/uapcore/lightpit/viewmodel/Issues.kt Wed May 21 14:19:07 2025 +0200 +++ b/src/main/kotlin/de/uapcore/lightpit/viewmodel/Issues.kt Mon May 26 21:41:02 2025 +0200 @@ -121,11 +121,11 @@ val comments: List, val currentRelations: List, commitRefs: List, + val pathInfos: PathInfos, /** * Optional resource key to an error message for the relation editor. */ val relationError: String? = null, - val pathInfos: PathInfos? = null ) : View() { val relationTypes = RelationType.entries val commitLinks: List @@ -180,7 +180,7 @@ val variants: List, val users: List, val project: Project, - val pathInfos: PathInfos? = null + val pathInfos: PathInfos ) : EditView() { val versionsUpcoming: List diff -r 34abadbdd0e3 -r cbbadb493f22 src/main/kotlin/de/uapcore/lightpit/viewmodel/PathInfos.kt --- a/src/main/kotlin/de/uapcore/lightpit/viewmodel/PathInfos.kt Wed May 21 14:19:07 2025 +0200 +++ b/src/main/kotlin/de/uapcore/lightpit/viewmodel/PathInfos.kt Mon May 26 21:41:02 2025 +0200 @@ -33,19 +33,19 @@ import de.uapcore.lightpit.entities.Variant import de.uapcore.lightpit.entities.Version -abstract class PathInfos(val issuesHref: String) { +abstract class PathInfos(val issuesHref: String, val inProject: Boolean) { override fun toString(): String { return issuesHref } } class PathInfosSimple(project: Project? = null) - : PathInfos(if (project == null) "issues/" else "projects/${project.node}/issues/-/-/-/") + : PathInfos(if (project == null) "issues/" else "projects/${project.node}/issues/-/-/-/", project != null) data class PathInfosFull( val projectInfo: ProjectInfo, val versionInfo: OptionalPathInfo = OptionalPathInfo.All, val componentInfo: OptionalPathInfo = OptionalPathInfo.All, val variantInfo: OptionalPathInfo = OptionalPathInfo.All, -): PathInfos("projects/${projectInfo.project.node}/issues/${versionInfo.node}/${componentInfo.node}/${variantInfo.node}/") { +): PathInfos("projects/${projectInfo.project.node}/issues/${versionInfo.node}/${componentInfo.node}/${variantInfo.node}/", true) { val project = projectInfo.project } diff -r 34abadbdd0e3 -r cbbadb493f22 src/main/resources/localization/strings.properties --- a/src/main/resources/localization/strings.properties Wed May 21 14:19:07 2025 +0200 +++ b/src/main/resources/localization/strings.properties Mon May 26 21:41:02 2025 +0200 @@ -37,6 +37,7 @@ button.issue.create.another=Create another Issue button.issue.create=New Issue button.issue.edit=Edit +button.issue.open-in-project=Open in Project button.issue.resolve=Resolve button.okay=OK button.project.create=New Project diff -r 34abadbdd0e3 -r cbbadb493f22 src/main/resources/localization/strings_de.properties --- a/src/main/resources/localization/strings_de.properties Wed May 21 14:19:07 2025 +0200 +++ b/src/main/resources/localization/strings_de.properties Mon May 26 21:41:02 2025 +0200 @@ -37,6 +37,7 @@ button.issue.create.another=Weiteren Vorgang erstellen button.issue.create=Neuer Vorgang button.issue.edit=Bearbeiten +button.issue.open-in-project=In Projekt \u00d6ffnen button.issue.resolve=Erledigt button.okay=OK button.project.create=Neues Projekt diff -r 34abadbdd0e3 -r cbbadb493f22 src/main/webapp/WEB-INF/changelogs/changelog-de.jspf --- a/src/main/webapp/WEB-INF/changelogs/changelog-de.jspf Wed May 21 14:19:07 2025 +0200 +++ b/src/main/webapp/WEB-INF/changelogs/changelog-de.jspf Mon May 26 21:41:02 2025 +0200 @@ -28,7 +28,8 @@
  • Pop-Up hinzugefügt, das über eine neue LightPIT-Version informiert.
  • -
  • "Erledigt"-Schaltfläche zur Vorgangsansicht hinzugefügt.
  • +
  • "Erledigt" Schaltfläche zur Vorgangsansicht hinzugefügt.
  • +
  • "In Projekt Öffnen" Schaltfläche zur (globalen) Vorgangsansicht hinzugefügt.
  • Die Standardkategorie für neue Vorgänge in veröffentlichten Versionen ist nun "Fehler" anstelle von "Feature".
  • Fehler in der Deutschen Übersetzung behoben.
diff -r 34abadbdd0e3 -r cbbadb493f22 src/main/webapp/WEB-INF/changelogs/changelog.jspf --- a/src/main/webapp/WEB-INF/changelogs/changelog.jspf Wed May 21 14:19:07 2025 +0200 +++ b/src/main/webapp/WEB-INF/changelogs/changelog.jspf Mon May 26 21:41:02 2025 +0200 @@ -29,6 +29,7 @@
  • Add popup informing about a new LightPIT release.
  • Add convenience RESOLVE button to the issue view.
  • +
  • Add convenience OPEN IN PROJECT button to the global issue view.
  • Change that the default category for new issues in released versions is Bug instead of Feature.
  • Fix errors in the German translation.
diff -r 34abadbdd0e3 -r cbbadb493f22 src/main/webapp/WEB-INF/jsp/issue-form.jsp --- a/src/main/webapp/WEB-INF/jsp/issue-form.jsp Wed May 21 14:19:07 2025 +0200 +++ b/src/main/webapp/WEB-INF/jsp/issue-form.jsp Mon May 26 21:41:02 2025 +0200 @@ -32,10 +32,7 @@ - - - - +
diff -r 34abadbdd0e3 -r cbbadb493f22 src/main/webapp/WEB-INF/jsp/issue-view.jsp --- a/src/main/webapp/WEB-INF/jsp/issue-view.jsp Wed May 21 14:19:07 2025 +0200 +++ b/src/main/webapp/WEB-INF/jsp/issue-view.jsp Mon May 26 21:41:02 2025 +0200 @@ -35,10 +35,7 @@ - - - - + @@ -177,6 +174,11 @@ + + + + +