From 28a2db538861903fb70462d6808aaffe468caf20 Mon Sep 17 00:00:00 2001 From: edith <58082567+jellodiil@users.noreply.github.com> Date: Wed, 23 Oct 2024 11:36:35 +0100 Subject: [PATCH 1/3] WEB-7288: Allow AI domain --- app/models/content_module.rb | 2 +- app/models/video_course.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/content_module.rb b/app/models/content_module.rb index ac15863..89ad6ed 100644 --- a/app/models/content_module.rb +++ b/app/models/content_module.rb @@ -29,7 +29,7 @@ class ContentModule validates :lessons, length: { minimum: 1 }, allow_blank: false, lessons: true validates_each :domains do |record, attr, value| value.each do |domain| - record.errors.add(attr, "(#{domain}) not included in the list") unless %w[ios android flutter server-side-swift unity macos professional-growth].include?(domain) + record.errors.add(attr, "(#{domain}) not included in the list") unless %w[ios android flutter server-side-swift unity macos professional-growth ai].include?(domain) end end diff --git a/app/models/video_course.rb b/app/models/video_course.rb index 0a803df..60b655b 100644 --- a/app/models/video_course.rb +++ b/app/models/video_course.rb @@ -29,7 +29,7 @@ class VideoCourse validates :parts, length: { minimum: 1 }, allow_blank: false, parts: true validates_each :domains do |record, attr, value| value.each do |domain| - record.errors.add(attr, "(#{domain}) not included in the list") unless %w[ios android flutter server-side-swift unity macos professional-growth].include?(domain) + record.errors.add(attr, "(#{domain}) not included in the list") unless %w[ios android flutter server-side-swift unity macos professional-growth ai].include?(domain) end end From d365817dca5da7b2482240e42630bdeaf5b914cd Mon Sep 17 00:00:00 2001 From: edith <58082567+jellodiil@users.noreply.github.com> Date: Wed, 23 Oct 2024 11:36:48 +0100 Subject: [PATCH 2/3] WEB-7288: Add slide colour --- app/server/views/styles/abstracts/colors.scss | 4 ++-- app/server/views/styles/components/slide.scss | 5 +++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/app/server/views/styles/abstracts/colors.scss b/app/server/views/styles/abstracts/colors.scss index 051d358..babcf84 100644 --- a/app/server/views/styles/abstracts/colors.scss +++ b/app/server/views/styles/abstracts/colors.scss @@ -39,8 +39,8 @@ $red-lipstick: #962224; $pink-doll: #F26FAA; /* Light Server-Side Swift Colour */ $pink-peony: #A53B6B; /* Dark Server-Side Swift Colour */ -$pink-peach: #E6978A; -$pink-incense: #99584D; +$pink-peach: #E6978A; /* Light AI Colour */ +$pink-incense: #99584D; /* Dark AI Colour */ /* Orange */ diff --git a/app/server/views/styles/components/slide.scss b/app/server/views/styles/components/slide.scss index 2a94d1d..c4c54d3 100644 --- a/app/server/views/styles/components/slide.scss +++ b/app/server/views/styles/components/slide.scss @@ -229,6 +229,11 @@ $slide-ratio: 1.8; @extend .slide-domain; background-color: #AC9FAB; } + + &--ai { + @extend .slide-domain; + background-color: #E6978A; + } } } From efbef1c6c82463754c407745ffb0922ddca6c991 Mon Sep 17 00:00:00 2001 From: edith <58082567+jellodiil@users.noreply.github.com> Date: Wed, 23 Oct 2024 11:42:00 +0100 Subject: [PATCH 3/3] WEB-7289: Fixing TOC numbering width --- app/server/views/styles/components/modular.scss | 1 + 1 file changed, 1 insertion(+) diff --git a/app/server/views/styles/components/modular.scss b/app/server/views/styles/components/modular.scss index 48d809b..1e54bc2 100644 --- a/app/server/views/styles/components/modular.scss +++ b/app/server/views/styles/components/modular.scss @@ -175,6 +175,7 @@ display: flex; justify-content: center; align-items: center; + min-width: 56px; width: 56px; height: 56px; margin-right: 24px;