From 5d29cc9f3f74a517c1f3c2636c1c95d0a8ede568 Mon Sep 17 00:00:00 2001 From: Adam Jetmar Date: Thu, 17 Oct 2024 13:41:05 +0200 Subject: [PATCH] Add icons to filters --- pkg/models/filters.go | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/pkg/models/filters.go b/pkg/models/filters.go index 4dc8e2e..440059a 100644 --- a/pkg/models/filters.go +++ b/pkg/models/filters.go @@ -24,6 +24,11 @@ type FilterItem struct { } var ( + AnsibleIcon = "/apps/frontend-assets/console-landing/ansible.svg" + OpenShiftIcon = "/apps/frontend-assets/console-landing/openshift.svg" + RHELIcon = "/apps/frontend-assets/learning-resources/RHEL-icon.svg" + RedHatIcon = "/apps/frontend-assets/learning-resources/RH-icon.svg" + FrontendFilters FilterData = FilterData{ Categories: []FiltersCategory{ { @@ -32,17 +37,17 @@ var ( CategoryData: []CategoryGroup{{ Group: "Platforms", Data: []FilterItem{ - {Id: "ansible", CardLabel: "Ansible", FilterLabel: "Ansible"}, - {Id: "openshift", CardLabel: "OpenShift", FilterLabel: "OpenShift"}, - {Id: "rhel", CardLabel: "RHEL", FilterLabel: "RHEL (Red Hat Enterprise Linux)"}, + {Id: "ansible", CardLabel: "Ansible", FilterLabel: "Ansible", Icon: AnsibleIcon}, + {Id: "openshift", CardLabel: "OpenShift", FilterLabel: "OpenShift", Icon: OpenShiftIcon}, + {Id: "rhel", CardLabel: "RHEL", FilterLabel: "RHEL (Red Hat Enterprise Linux)", Icon: RHELIcon}, }, }, { Group: "Console-wide services", Data: []FilterItem{ - {Id: "iam", CardLabel: "Identity and Access Management", FilterLabel: "IAM (Identity and Access Management)"}, - {Id: "settings", CardLabel: "Settings", FilterLabel: "Settings"}, - {Id: "subscriptions-services", CardLabel: "Subscriptions services", FilterLabel: "Subscriptions services"}, + {Id: "iam", CardLabel: "IAM", FilterLabel: "IAM (Identity and Access Management)", Icon: RedHatIcon}, + {Id: "settings", CardLabel: "Settings", FilterLabel: "Settings", Icon: RedHatIcon}, + {Id: "subscriptions-services", CardLabel: "Subscriptions services", FilterLabel: "Subscriptions services", Icon: RedHatIcon}, }, }, },