From 98bd554cdc230eab6570d96e7b5364f30d554976 Mon Sep 17 00:00:00 2001 From: Sascha Eggenberger Date: Tue, 19 Dec 2023 16:26:51 +0100 Subject: [PATCH] Simplified badges FF This MR introduces the FF :simplified_badges For testing purposes we moved the changes from GitLab UI https://gitlab.com/gitlab-org/gitlab-ui/-/merge_requests/3307 directly to GitLab as this is a change which spans over the hole product and can make a lot of impacts. Once verified we'll move things to GitLab UI and remove those overrides again from the product. --- .../components/cells/runner_status_cell.vue | 9 ++-- .../components/runner_job_status_badge.vue | 6 +-- .../components/users_table/user_avatar.vue | 9 +++- app/assets/stylesheets/framework/badges.scss | 53 +++++++++++++++++++ app/controllers/admin/users_controller.rb | 4 ++ app/views/layouts/application.html.haml | 3 +- .../development/simplified_badges.yml | 8 +++ .../components/runner_dashboard_link.vue | 2 +- .../runner_job_status_badge_spec.js | 3 +- 9 files changed, 83 insertions(+), 14 deletions(-) create mode 100644 config/feature_flags/development/simplified_badges.yml diff --git a/app/assets/javascripts/ci/runner/components/cells/runner_status_cell.vue b/app/assets/javascripts/ci/runner/components/cells/runner_status_cell.vue index e287e4e17d15be..63957d9b7fc4e5 100644 --- a/app/assets/javascripts/ci/runner/components/cells/runner_status_cell.vue +++ b/app/assets/javascripts/ci/runner/components/cells/runner_status_cell.vue @@ -33,16 +33,13 @@ export default { diff --git a/app/assets/javascripts/ci/runner/components/runner_job_status_badge.vue b/app/assets/javascripts/ci/runner/components/runner_job_status_badge.vue index bed592e3f304cf..0dc23882cdc83a 100644 --- a/app/assets/javascripts/ci/runner/components/runner_job_status_badge.vue +++ b/app/assets/javascripts/ci/runner/components/runner_job_status_badge.vue @@ -26,12 +26,12 @@ export default { switch (this.jobStatus) { case JOB_STATUS_RUNNING: return { - classes: 'gl-text-blue-600! gl-border gl-border-blue-600!', + classes: 'gl-text-blue-600! gl-inset-border-1-gray-400 gl-border-blue-600!', label: I18N_JOB_STATUS_RUNNING, }; case JOB_STATUS_IDLE: return { - classes: 'gl-text-gray-700! gl-border gl-border-gray-500!', + classes: 'gl-text-gray-700! gl-inset-border-1-gray-400 gl-border-gray-500!', label: I18N_JOB_STATUS_IDLE, }; default: @@ -45,7 +45,7 @@ export default { diff --git a/app/assets/javascripts/vue_shared/components/users_table/user_avatar.vue b/app/assets/javascripts/vue_shared/components/users_table/user_avatar.vue index 5d86f90880dd73..5f197066cb544c 100644 --- a/app/assets/javascripts/vue_shared/components/users_table/user_avatar.vue +++ b/app/assets/javascripts/vue_shared/components/users_table/user_avatar.vue @@ -1,5 +1,6 @@