From 6040175eb02f56a6da86f90a8a79840abd4774bc Mon Sep 17 00:00:00 2001 From: isc-akadoo Date: Fri, 27 Sep 2024 08:58:00 -0400 Subject: [PATCH 1/4] Added link back to IRIS management portal --- CHANGELOG.md | 4 +++ cls/SourceControl/Git/WebUIDriver.cls | 8 +++++ csp/gitprojectsettings.csp | 31 +++++++++++++++++-- .../share/git-webui/webui/css/git-webui.css | 20 +++++++++--- .../share/git-webui/webui/img/home.svg | 3 ++ .../share/git-webui/webui/js/git-webui.js | 31 ++++++++++++++----- .../share/git-webui/webui/css/git-webui.less | 23 +++++++++++--- .../src/share/git-webui/webui/img/home.svg | 3 ++ .../src/share/git-webui/webui/js/git-webui.js | 28 ++++++++++++++--- 9 files changed, 127 insertions(+), 24 deletions(-) create mode 100644 git-webui/release/share/git-webui/webui/img/home.svg create mode 100644 git-webui/src/share/git-webui/webui/img/home.svg diff --git a/CHANGELOG.md b/CHANGELOG.md index 052a2e6f..d8c53359 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,9 +7,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [2.5.1] - Unreleased +### Added +- Added link back to IRIS management portal from Settings, Git WebUI pages (#449) + ### Fixed - Changed prompts in configure from 0/1 to no/yes (#461) - Added warnings when user is using incompatible git version (#488) +- Fixed the back button navigation between WebUI and Settings page (#361) ## [2.5.0] - 2024-09-24 diff --git a/cls/SourceControl/Git/WebUIDriver.cls b/cls/SourceControl/Git/WebUIDriver.cls index 5aead7ab..4e4352bb 100644 --- a/cls/SourceControl/Git/WebUIDriver.cls +++ b/cls/SourceControl/Git/WebUIDriver.cls @@ -22,6 +22,8 @@ ClassMethod HandleRequest(pagePath As %String, InternalName As %String = "", Out set responseJSON = ..GetPackageVersion() } elseif $extract(pagePath, 6, *) = "git-version" { set responseJSON = ..GetGitVersion() + } elseif $extract(pagePath,6,*) = "home"{ + set responseJSON = ..GetHomeURL() } else { set %response.Status = ##class(%CSP.REST).#HTTP404NOTFOUND set responseJSON = {"error":("invalid URI: " _ pagePath)} @@ -340,4 +342,10 @@ ClassMethod GetGitVersion() As %Library.DynamicObject quit {"version": (version)} } +ClassMethod GetHomeURL() As %SystemBase +{ + set homeURL = "/csp/sys/UtilHome.csp" + quit {"url": (homeURL)} +} + } diff --git a/csp/gitprojectsettings.csp b/csp/gitprojectsettings.csp index c116f6e7..a5c772ed 100644 --- a/csp/gitprojectsettings.csp +++ b/csp/gitprojectsettings.csp @@ -40,6 +40,9 @@ body { #webuiURL { display: none; } +#homeURL { + display: none; +} .custom-switch { padding: 0.4rem 0.5rem 0 2.75rem; @@ -73,6 +76,7 @@ body { set version = ##class(SourceControl.Git.Utils).GetPackageVersion() set webuiURL = "/isc/studio/usertemplates/gitsourcecontrol/webuidriver.csp/"_namespace_"/?CSPSHARE=1" set webuiURL = ##class(SourceControl.Git.WebUIDriver).GetURLPrefix(%request, webuiURL) + set homeURL = "/csp/sys/UtilHome.csp" set settings = ##class(SourceControl.Git.Settings).%New() if $Data(%request.Data("gitsettings",1)) { @@ -128,12 +132,17 @@ body {

-
+

Git Project Settings

Package version: #(version)#

-
+
+ +
+ #(homeURL)# +
@@ -542,6 +551,17 @@ body {