ember-learn / ember-website

The emberjs.com website.
https://emberjs.com/
MIT License
87 stars 186 forks source link

Octanify <EmberSurvey> component (Part 2 of 2) #741

Closed ijlee2 closed 3 years ago

ijlee2 commented 3 years ago

Background

Over the next month or so, we'll upgrade ember-source from v3.20 to v3.24 and ensure that we follow recommended practices in Ember Octane.

Description

Parts 1 and 2, together, involve creating a component called <CtaEmberCommunitySurvey>. This is a Glimmer component that will eventually replace <EmberSurvey> (a classic component).

Motivation

Please see the Motivation section in Part 1.

TODOs

Note, this issue is blocked by Part 1.

To help with code review, please create 1 commit for each TODO item (a total of 4 commits).

czikarito commented 3 years ago

Hi @ijlee2! quick question

when a user clicks on the link to the survey page

By survey page link you mean passed @surveyRoute (/ember-community-survey-2020 in the example above)?

ijlee2 commented 3 years ago

@czikarito Yep, that's correct.

I was thinking of the case, when a user enters the URL https://emberjs.com/ember-community-survey-2020 in their browser (and assuming that we passed the argument @surveyRoute="ember-community-survey-2020" to the component in app/templates/application.hbs), we shouldn't show them the survey reminder since they are already on the survey page.

(As an aside, the <EmberSurvey> component took a slightly different approach by showing a different message when the user is on the survey page.)