diff --git a/src/components/Finding.vue b/src/components/Finding.vue
index 6d68748..1f680b4 100644
--- a/src/components/Finding.vue
+++ b/src/components/Finding.vue
@@ -14,12 +14,14 @@ import VCodeBlock from '@wdns/vue-code-block';
import { onMounted } from 'vue';
import { useTheme } from 'vuetify';
-const { meta_x, meta_v } = useMagicKeys()
+const { meta_o, meta_c, meta_f } = useMagicKeys()
onMounted(() => init())
const emit = defineEmits(["vector-updated"]);
const { global } = useTheme()
+const fixDialog = ref(false)
const triageDialog = ref(false)
+const branchChoice = ref('')
const response = ref('')
const justification = ref('')
const justificationText = ref('')
@@ -35,6 +37,10 @@ const props = defineProps({
type: Object,
required: true,
},
+ branches: {
+ type: Array,
+ required: true,
+ },
currentTriage: {
type: Object,
required: true,
@@ -618,8 +624,9 @@ function saveVector() {
cvssDialog.value = false
}
-watch([meta_x], () => { triageDialog.value = true })
-watch([meta_v], () => { cvssDialog.value = true })
+watch([meta_f], () => { fixDialog.value = true })
+watch([meta_o], () => { triageDialog.value = true })
+watch([meta_c], () => { cvssDialog.value = true })
watch([
activeTab,
v31MetricsAV,
@@ -722,6 +729,79 @@ watch([
+
+
+
+ Fix
+
+ ⌘F
+
+
+
+
+
+
+
+
+
+
+
+
+
+ PR details
+
+
+
+ Repo details
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Triage
- ⌘X
+ ⌘O
diff --git a/src/pages/IssuePage.vue b/src/pages/IssuePage.vue
index 107f915..5fb0ae7 100644
--- a/src/pages/IssuePage.vue
+++ b/src/pages/IssuePage.vue
@@ -19,6 +19,7 @@ const initialState = {
info: "",
loading: false,
finding: null,
+ branches: [],
currentTriage: null,
}
@@ -47,6 +48,7 @@ class Controller {
})
}
state.finding = data.finding
+ state.branches = [...new Set([data.finding?.spdx?.repo?.defaultBranch, data.finding?.spdx?.repo?.defaultBranch].filter(i => !!i))]
state.currentTriage = data.finding.triage.sort((a, b) =>
a.lastObserved - b.lastObserved
).pop()
@@ -152,58 +154,57 @@ onBeforeRouteUpdate(async (to, from) => {
-
-
-
-
- Issue Details
-
-
-
-
-
-
- Dependency Graph
-
-
+
+
+
+
+
+
+ Issue Details
+
+
-
-
-
- Artifacts
-
-
+
+
+
+ Dependency Graph
+
+
-
-
-
- Related
-
-
-
+
+
+
+ Artifacts
+
+
-
-
-
-
+
+
+
+ Related
+
+
+
+
+
@@ -257,6 +258,7 @@ onBeforeRouteUpdate(async (to, from) => {
!!i))]
state.queueTotal = data.findingCount
state.currentTriage = data.finding.triage.sort((a, b) =>
a.lastObserved - b.lastObserved
@@ -154,78 +156,90 @@ onMounted(() => {
-
-
-
-
- Issue Details
-
-
-
-
-
-
- Dependency Graph
-
-
+
+
+
+
+
+
+ Issue Details
+
+
-
-
-
- Artifacts
-
-
+
+
+
+ Dependency Graph
+
+
-
-
-
- Related
-
-
-
+
+
+
+ Artifacts
+
+
-
-
-
- of {{ state.queueTotal }}
-
-
+
+
+
+ Related
+
+
+
+
+
+
+
+
+
+
+
+ of {{ state.queueTotal }}
+
+
+
+
+
-
{