From 33329c3aa11b32456019fe4504a5debb48785830 Mon Sep 17 00:00:00 2001 From: Olivier Vernin Date: Wed, 6 Nov 2024 17:27:25 +0100 Subject: [PATCH] feat: allow to filter reports by scmid Signed-off-by: Olivier Vernin --- src/components/scm/_filter.vue | 125 +++++++++++++++++++++++++++++ src/components/scm/_summary.vue | 52 ++++++++++++ src/views/pipeline/ReportsView.vue | 17 +++- 3 files changed, 191 insertions(+), 3 deletions(-) create mode 100644 src/components/scm/_filter.vue create mode 100644 src/components/scm/_summary.vue diff --git a/src/components/scm/_filter.vue b/src/components/scm/_filter.vue new file mode 100644 index 000000000..1652f0f36 --- /dev/null +++ b/src/components/scm/_filter.vue @@ -0,0 +1,125 @@ + + + diff --git a/src/components/scm/_summary.vue b/src/components/scm/_summary.vue new file mode 100644 index 000000000..5fe727732 --- /dev/null +++ b/src/components/scm/_summary.vue @@ -0,0 +1,52 @@ + + + \ No newline at end of file diff --git a/src/views/pipeline/ReportsView.vue b/src/views/pipeline/ReportsView.vue index 8ce616352..f040c1a8f 100644 --- a/src/views/pipeline/ReportsView.vue +++ b/src/views/pipeline/ReportsView.vue @@ -19,7 +19,8 @@ - + + @@ -33,6 +34,8 @@ import SideNavigation from '../../components/SideNavigation.vue'; import HeadNavigation from '../../components/HeadNavigation.vue'; import PipelineReports from '../../components/pipeline/reports.vue'; +import PipelineSCMSFilter from '../../components/scm/_filter.vue'; + export default { name: 'PipelineReportsView', components: { @@ -40,6 +43,7 @@ export default { SideNavigation, HeadNavigation, PipelineReports, + PipelineSCMFilter: PipelineSCMSFilter, }, data: () => ({ links:[ @@ -48,7 +52,14 @@ export default { to: "https://www.updatecli.io", icon: "mdi-arrow-right-circle", }, - ] - }) + ], + scmid: "", + }), + + methods: { + updateSCMID(scmid) { + this.scmid = scmid; + }, + } }