HoC 2023 - Add Dance Party AI side-by-side announcement banners#55099
Conversation
There was a problem hiding this comment.
I think eventually we should deprecate this SpecialAnnouncement component and set up the MarketingAnnouncementBanner component to work on the Student homepage similarly to the Teacher homepage and Student logged in courses page.
| ? pegasus('/images/dance-hoc/dance-party-activity-ai-edition.png') | ||
| : pegasus('/images/dance-hoc/dance-party-activity-ai-edition.png'); |
There was a problem hiding this comment.
Am I tired or are this the same? Is there a reason not to simplify this?
There was a problem hiding this comment.
They are the same — I can definitely simplify it in this PR, but this comment gives more context why I didn't (tl:dr is that this component should probs be deprecated so I didn't want to mess anything up trying to refactor it)
There was a problem hiding this comment.
ah got it -- didn't connect that comment to this
There was a problem hiding this comment.
do we plan to revert this change after HoC? If so, I'm fine leaving it like this, but if this is the indefinite state, then I might ask for at least a comment
There was a problem hiding this comment.
Nope, it'll stay this way after HoC. I'll clean it up and leave a comment 🙌
There was a problem hiding this comment.
thank you! sorry for the nitpicking -- I just know I'd have the exact same question if I worked on this file in six months 😅
There was a problem hiding this comment.
Haha no worries at all, I appreciate the thorough review! I just updated it to no longer use logic to determine what to show for teachers or english — can you take another look? Updates are in this commit: fc71173
removed logic to differentiate between teacher and student and made it show for all languages
bethanyaconnor
left a comment
There was a problem hiding this comment.
Thank you! Excited to see all these changes coming together 🎉
* HoC 2023 - Add Dance AI tutorial to marketing website (#55060) * update link on /dance * add tile to /ai * add media-wrapper around img on /dance * HoC 2023 - Code.org - set Dance Party AI hero banner live (#55064) * add responsive styles * update primary link to /dance for soon-hoc * HoC 2023 - Add Dance Party AI skinny banners to code.org (#55091) * add dance_party_ai_skinny_banner.haml view * add banner to /teach * add to /ai/index.haml * add to /ai/how-ai-works * add to /ai/pl/101 * add responsive styles * clean up css * HoC 2023 - Add Dance Party AI side-by-side announcement banners (#55099) * add banner to announcements.json * add strings to marketing_announcements.json * add banner to SpecialAnnouncement.jsx on student homepage * refactor SpecialAnnouncement.jsx component removed logic to differentiate between teacher and student and made it show for all languages * Add tile for self-paced Teaching Interactive Animations and Games PL (#55029) * tile update * new tile page * update image and add aria labels --------- Co-authored-by: Kelby Hawn <9256643+kelbyhawn@users.noreply.github.com> * staging content changes (-robo-commit) * Update en.yml - Add Dance Party: AI Edition strings * staging content changes (-robo-commit) * Revert "HoC 2023 - Code.org - set Dance Party AI hero banner live (#55064)" (#55149) This reverts commit b1c16f1. * manual DTT (Staging > Test) (#55160) * Updated the dance-ai course video. * hoc2023: fix code flip * Fix authored hint lightbulb number circle in RTL (#55087) Fix authored hint lightbulb number circle in RTL * Updates to teacher application emails for 2024-2025 school year (#54998) * Most updates to teacher application emails for 2024-2025 * Finish updates to need_admin_approval email * Minor updates * Updates to accepted email * PR feedback * Small update to wording * minitoolbox open by default (#55151) * [JIMT][Dance AI Modal refactoring] (#55089) * jimt/dance-ai-modal-refactoring - broke up utils.ts file; move types to ai/types * jimt/dance-ai-modal-refactoring - pulled all functions out of DanceAiModal * jimt/dance-ai-modal-refactoring - changed types import * jimt/dance-ai-modal-refactoring - changed types import * jimt/dance-ai-modal-refactoring - renaming of methods * jimt/dance-ai-modal-refactoring - validateAndSetFieldValue now accepts a logger * jimt/dance-ai-modal-refactoring renamed logger -> invalidValueLogger * jimt/dance-ai-modal-refactoring - renamed ai/types -> ai/ai-types * jimt/dance-ai-modal-refactoring - retooled to remove field param in favor of logValues * jimt/dance-ai-modal-refactoring - restores field key * jimt/dance-ai-modal-refactoring - moved ai-types back to types * jimt/dance-ai-modal-refactoring - message/value non-optional and exported * HoC 2023 - Fix Dance AI homepage hero banner (#55154) * add dance ai hero banner to homepage.json again * add styles with z-index fix * Check if levelbuilder is ahead of staging before doing DTS (#55152) --------- Co-authored-by: Jessica Kulwik <jessica@code.org> Co-authored-by: breville <brendan@code.org> Co-authored-by: fisher-alice <107423305+fisher-alice@users.noreply.github.com> Co-authored-by: Bethany Connor <46464143+bethanyaconnor@users.noreply.github.com> Co-authored-by: Mike Harvey <43474485+mikeharv@users.noreply.github.com> Co-authored-by: Brendan Reville <breville@users.noreply.github.com> Co-authored-by: Jim Thomason <jim.thomason@code.org> Co-authored-by: Kelby Hawn <9256643+kelbyhawn@users.noreply.github.com> --------- Co-authored-by: Jessica Kulwik <jessica@code.org> Co-authored-by: Kelby Hawn <9256643+kelbyhawn@users.noreply.github.com> Co-authored-by: Code.org Deploy Systems <dev@code.org> Co-authored-by: Dmytro Antonyuk <137330041+dmantonyuk@users.noreply.github.com> Co-authored-by: Tanya Parker <tanya@code.org> Co-authored-by: Brendan Reville <breville@users.noreply.github.com> Co-authored-by: breville <brendan@code.org> Co-authored-by: fisher-alice <107423305+fisher-alice@users.noreply.github.com> Co-authored-by: Bethany Connor <46464143+bethanyaconnor@users.noreply.github.com> Co-authored-by: Mike Harvey <43474485+mikeharv@users.noreply.github.com> Co-authored-by: Jim Thomason <jim.thomason@code.org>
Add side-by-side announcement banners to the following pages:
Jira ticket: ACQ-1121
Teacher homepage, logged in - studio.code.org/home
Student homepage, logged in - studio.code.org/home
Student Courses page, logged in - studio.code.org/courses
Learn/Courses page, logged out - studio.code.org/courses