The Unified and Autonomous Development Platform
refactor(web): rename 'fix' button to 'createIssue' and update functionality
Robin Shen0da6774e4b35
diff --git a/server-core/src/main/java/io/onedev/server/web/asset/icon/fix.svg b/server-core/src/main/java/io/onedev/server/web/asset/icon/fix.svgdeleted file mode 100644index 7778d78a34..0000000000--- a/server-core/src/main/java/io/onedev/server/web/asset/icon/fix.svg+++ /dev/null@@ -1 +0,0 @@-<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1785244848552" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="24023" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><path d="M171.968 254.72l139.968 139.968h82.752V311.936L254.72 171.968a32 32 0 0 1 8.832-51.52c55.04-26.24 112.64-34.24 172.8-23.936 60.16 10.304 111.808 37.056 154.944 80.192a281.408 281.408 0 0 1 80.256 154.944c8.96 52.48 4.032 103.104-14.912 151.744l240.64 240.64c23.936 23.936 35.904 52.8 35.904 86.656 0 33.792-11.968 62.72-35.84 86.592-23.936 23.936-52.864 35.904-86.656 35.904-33.856 0-62.72-11.968-86.656-35.84l-240.64-240.64c-48.64 18.88-99.2 23.808-151.744 14.848a281.408 281.408 0 0 1-154.944-80.256 281.408 281.408 0 0 1-80.192-154.88 281.408 281.408 0 0 1 23.936-172.864 32 32 0 0 1 51.52-8.832z m49.984 291.328a218.88 218.88 0 0 0 120.512 62.4 218.88 218.88 0 0 0 134.4-18.624 32 32 0 0 1 36.48 6.208l256 256a56.32 56.32 0 0 0 41.344 17.152 56.32 56.32 0 0 0 41.344-17.152 56.32 56.32 0 0 0 17.152-41.344 56.32 56.32 0 0 0-17.152-41.408l-256-256a32 32 0 0 1-6.208-36.416c20.48-42.816 26.624-87.616 18.624-134.4a218.88 218.88 0 0 0-62.4-120.512 218.88 218.88 0 0 0-120.512-62.4 219.52 219.52 0 0 0-89.984 2.752L449.28 276.032a32 32 0 0 1 9.408 22.656v128a32 32 0 0 1-32 32h-128a32 32 0 0 1-22.656-9.408L162.304 335.552a219.52 219.52 0 0 0-2.752 89.984c8.064 46.784 28.8 86.976 62.4 120.512z" p-id="24024"></path></svg>\ No newline at end of filediff --git a/server-core/src/main/java/io/onedev/server/web/page/project/builds/detail/BuildDetailPage.html b/server-core/src/main/java/io/onedev/server/web/page/project/builds/detail/BuildDetailPage.htmlindex 6425f3109a..47243bb740 100644--- a/server-core/src/main/java/io/onedev/server/web/page/project/builds/detail/BuildDetailPage.html+++ b/server-core/src/main/java/io/onedev/server/web/page/project/builds/detail/BuildDetailPage.html@@ -15,7 +15,7 @@<a wicket:id="setDescription" class="btn btn-icon btn-light btn-hover-primary btn-xs mr-1" t:data-tippy-content="Set description"><wicket:svg href="info" class="icon"/></a><a wicket:id="uploadArtifacts" class="btn btn-icon btn-light btn-hover-primary btn-xs mr-1" t:data-tippy-content="Upload artifacts"><wicket:svg href="upload" class="icon"/></a><a wicket:id="terminal" t:data-tippy-content="Open terminal of current running step" class="subscription-required btn btn-icon btn-light btn-hover-primary btn-xs mr-1"><wicket:svg href="terminal" class="icon"/></a>- <a wicket:id="fix" t:data-tippy-content="Create issue to fix build failure with AI" class="btn btn-xs btn-light btn-hover-primary btn-icon mr-1"><wicket:svg href="fix" class="icon"></wicket:svg></a>+ <a wicket:id="createIssue" t:data-tippy-content="Create an issue for this failure" class="btn btn-xs btn-light btn-hover-primary btn-icon mr-1"><wicket:svg href="bug" class="icon"></wicket:svg></a></div></div><div class="card-toolbar">diff --git a/server-core/src/main/java/io/onedev/server/web/page/project/builds/detail/BuildDetailPage.java b/server-core/src/main/java/io/onedev/server/web/page/project/builds/detail/BuildDetailPage.javaindex 9b38b66f12..62dc404f92 100644--- a/server-core/src/main/java/io/onedev/server/web/page/project/builds/detail/BuildDetailPage.java+++ b/server-core/src/main/java/io/onedev/server/web/page/project/builds/detail/BuildDetailPage.java@@ -431,11 +431,11 @@ public abstract class BuildDetailPage extends ProjectPage});- add(new AjaxLink<Void>("fix") {+ add(new AjaxLink<Void>("createIssue") {@Overridepublic void onClick(AjaxRequestTarget target) {- getAssistant().show(target, "Create an issue to fix this build and assign to yourself. Display in " + getSession().getLocale().getDisplayLanguage());+ getAssistant().show(target, "Create an issue for the build failure. Display in " + getSession().getLocale().getDisplayLanguage());}@Override