Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added feature flag on new-signup flow #447

Closed
wants to merge 3 commits into from

Conversation

shubhamsinghbundela
Copy link
Contributor

@shubhamsinghbundela shubhamsinghbundela commented Jul 14, 2023

Closes #426

What is the change?

Added feature flag on new-signup flow

Before / After Change Screenshots

Before feature flag and after feature flag

chrome_tp53Ln9HYw.mp4

@netlify
Copy link

netlify bot commented Jul 14, 2023

Deploy Preview for staging-my ready!

Name Link
🔨 Latest commit c2123b4
🔍 Latest deploy log https://app.netlify.com/sites/staging-my/deploys/64b1c45f763c8d0008082cb9
😎 Deploy Preview https://deploy-preview-447--staging-my.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@shubhamsinghbundela shubhamsinghbundela self-assigned this Jul 14, 2023
>
{{if (eq @currentStep 'username') 'Submit' 'Next'}}
</Button>
{{#if @dev}}
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we have a correct naming convention for this? @dev don't justify the cause

@@ -65,6 +68,15 @@ export default class NewSignUpController extends Controller {
}

@action async signup() {
let roles;

if (this.dev) {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if (this.dev) {
if (this.isDevMode) {

this.currentStep = this.LAST_STEP;
} else {
this.analytics.trackEvent(NEW_SIGNUP_FLOW.UNABLE_TO_SIGNUP);
if (this.dev) {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if (this.dev) {
if (this.isDevMode) {

} else {
this.analytics.trackEvent(NEW_SIGNUP_FLOW.UNABLE_TO_SIGNUP);
if (this.dev) {
fetch(`${BASE_API_URL}/users/self`, {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are we not using Ember Data

@@ -1,4 +1,4 @@
{{page-title "New Sign Up"}}
{{page-title 'New Sign Up'}}
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why change in quotes?

@@ -11,6 +11,7 @@
<NewSignup::Input
@onClick={{this.changeStepToThree}}
@currentStep={{this.currentStep}}
@dev={{this.dev}}
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Name can be more precise

@@ -21,21 +22,46 @@
<NewSignup::Input
@onClick={{this.changeStepToFour}}
@currentStep={{this.currentStep}}
@dev={{this.dev}}
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here

/>
{{/if}}
{{/if}}

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we change @dev to some more meaningful name

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add role option for a user on a signup flow
2 participants