From 5a9e874d529bed2377b79aae39f43e5b2875ce2c Mon Sep 17 00:00:00 2001 From: Matchu Date: Thu, 2 May 2024 13:28:37 -0700 Subject: [PATCH] Remove survey link from NeoPass announcement, schedule it to vanish Survey time is done! We'll keep this message up for a few days for people to get to see the thank-you, then it'll stay up through May 5, then vanish. --- app/helpers/outfits_helper.rb | 5 ++++ app/views/outfits/new.html.haml | 51 ++++++++++++--------------------- 2 files changed, 23 insertions(+), 33 deletions(-) diff --git a/app/helpers/outfits_helper.rb b/app/helpers/outfits_helper.rb index 732e4581..b6dd1c08 100644 --- a/app/helpers/outfits_helper.rb +++ b/app/helpers/outfits_helper.rb @@ -1,4 +1,9 @@ module OutfitsHelper + LAST_DAY_OF_NEOPASS_ANNOUNCEMENT = Date.parse("2024-05-05") + def show_neopass_announcement? + Date.today <= LAST_DAY_OF_NEOPASS_ANNOUNCEMENT + end + def destination_tag(value) hidden_field_tag 'destination', value, :id => nil end diff --git a/app/views/outfits/new.html.haml b/app/views/outfits/new.html.haml index 3f13a7ea..5523fb4b 100644 --- a/app/views/outfits/new.html.haml +++ b/app/views/outfits/new.html.haml @@ -4,41 +4,26 @@ %p#pet-not-found.alert= t 'pets.load.not_found' -%section.neopass-announcement - = image_tag "about/neopass-survey.png", width: 70, height: 70, - srcset: {"about/neopass-survey@2x.png": "2x"}, - class: "neopass-thumbnail" - .neopass-content - %p - %strong - 💭 Can you help us and TNT decide what to build next with NeoPass? +- if show_neopass_announcement? + %section.neopass-announcement + = image_tag "about/neopass-survey.png", width: 70, height: 70, + srcset: {"about/neopass-survey@2x.png": "2x"}, + class: "neopass-thumbnail" + .neopass-content + %p + %strong + 💭 Thank you for sending us your NeoPass feedback! - %p - - if user_signed_in? - - if current_user.uses_neopass? - = link_to "Login with NeoPass", about_neopass_path - is ready—and you're already on it, thank you! 🥰 - - else - = link_to "Login with NeoPass", about_neopass_path - is ready! You can connect via the - #{link_to "Settings page", edit_auth_user_path}. - - else - = link_to "Login with NeoPass", about_neopass_path - is ready! If you're new to Dress to Impress, try logging in right now!! - 🎉 + %p + We're working with TNT now to build new integrations, based on what you + told us! We're glad + = link_to "log in with NeoPass", about_neopass_path + is working well, and we're excited to do the next part! More info soon! - %p - Now that we've built the foundation, TNT are looking for our help deciding what integration to build - next. - = link_to "Would you fill out this survey for us, please?", - "https://docs.google.com/forms/d/e/1FAIpQLSdyi7bZB3-gyztdOVSmikRrfts6KM5mK2r37D0SBla3JO3GbQ/viewform" - We've got some ideas, and we're looking for more! Even if you don't use - NeoPass yet, your input would be super useful. - - %p - Thanks again to everyone for helping us out! We're grateful, as always 💖 - %br - %em —Matchu + %p + Thanks again to everyone for helping us out! We're grateful, as always 💖 + %br + %em —Matchu #outfit-forms - localized_cache :action_suffix => 'outfit_forms_intro' do