From 2e4a364d9e95f6d82811b7d1dc839554cfd29271 Mon Sep 17 00:00:00 2001 From: Annabel Dunstone Gray Date: Wed, 18 Oct 2023 12:41:15 -0600 Subject: [PATCH 01/21] Update profile page layout Changelog: changed --- .../pages/users/activity_calendar.js | 2 +- .../javascripts/pages/users/user_tabs.js | 4 +- .../profile/components/user_achievements.vue | 2 +- .../stylesheets/page_bundles/profile.scss | 214 +++++++------- app/views/users/_follow_user.html.haml | 4 +- app/views/users/_overview.html.haml | 34 ++- app/views/users/_profile_basic_info.html.haml | 6 - app/views/users/_view_gpg_keys.html.haml | 1 + .../users/_view_user_in_admin_area.html.haml | 1 + app/views/users/show.html.haml | 266 +++++++++++++++--- locale/gitlab.pot | 12 + 11 files changed, 385 insertions(+), 161 deletions(-) delete mode 100644 app/views/users/_profile_basic_info.html.haml diff --git a/app/assets/javascripts/pages/users/activity_calendar.js b/app/assets/javascripts/pages/users/activity_calendar.js index 13bba06d425bbf..1bd3c25a89a4a1 100644 --- a/app/assets/javascripts/pages/users/activity_calendar.js +++ b/app/assets/javascripts/pages/users/activity_calendar.js @@ -72,7 +72,7 @@ export default class ActivityCalendar { this.clickDay = this.clickDay.bind(this); this.currentSelectedDate = ''; this.daySpace = 1; - this.daySize = 15; + this.daySize = 13; this.daySizeWithSpace = this.daySize + this.daySpace * 2; this.monthNames = [ __('Jan'), diff --git a/app/assets/javascripts/pages/users/user_tabs.js b/app/assets/javascripts/pages/users/user_tabs.js index 79eb3902116f36..a2df8be1bb7015 100644 --- a/app/assets/javascripts/pages/users/user_tabs.js +++ b/app/assets/javascripts/pages/users/user_tabs.js @@ -71,7 +71,7 @@ const CALENDAR_TEMPLATE = ` `; -const CALENDAR_PERIOD_6_MONTHS = 6; +// const CALENDAR_PERIOD_6_MONTHS = 6; const CALENDAR_PERIOD_12_MONTHS = 12; /* computation based on * width = (group + 1) * this.daySizeWithSpace + this.getExtraWidthPadding(group); @@ -286,7 +286,7 @@ export default class UserTabs { static getVisibleCalendarPeriod($calendarWrap) { const width = $calendarWrap.width(); return width < OVERVIEW_CALENDAR_BREAKPOINT - ? CALENDAR_PERIOD_6_MONTHS + ? CALENDAR_PERIOD_12_MONTHS : CALENDAR_PERIOD_12_MONTHS; } } diff --git a/app/assets/javascripts/profile/components/user_achievements.vue b/app/assets/javascripts/profile/components/user_achievements.vue index 7ce6b61c4aca7c..75ab11c9c9c1e0 100644 --- a/app/assets/javascripts/profile/components/user_achievements.vue +++ b/app/assets/javascripts/profile/components/user_achievements.vue @@ -72,7 +72,7 @@ export default { diff --git a/app/assets/javascripts/profile/components/overview_tab.vue b/app/assets/javascripts/profile/components/overview_tab.vue index 8cfa3fb3eea188..3d622957a414b5 100644 --- a/app/assets/javascripts/profile/components/overview_tab.vue +++ b/app/assets/javascripts/profile/components/overview_tab.vue @@ -55,8 +55,8 @@ export default {