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

feat: Remote config feature toggle for ticketing #589

Merged
merged 2 commits into from
Oct 22, 2020

Conversation

cbrevik
Copy link
Contributor

@cbrevik cbrevik commented Oct 22, 2020

Dependent on AtB-AS/atb-bff#43

Changes

  • Added modal to input invite code
  • Call BFF with invite code, get potential beta group id's back
  • If successful, set analytics user property beta_group (concat groups id's so we can support several at once).
  • After setting analytics user property, we close modal and refresh remote config

Screenshots

image

image

@cbrevik cbrevik marked this pull request as ready for review October 22, 2020 18:58
Frem til da kan du kjøpe billett fra{'\n'}
<Text onPress={openOtherTicketingApp} style={styles.underline}>
AtB Mobillett
</Text>
</Text>
<Text style={styles.text}>
Hvis du har en kode for å melde deg inn i beta for billettkjøp -{' '}
<Text
Copy link
Collaborator

Choose a reason for hiding this comment

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

Does this require something for accessibility? Or is the modal itself buggy for screen readers in any case?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The modal might be buggy in any case, sadly. This doesn't excuse not choosing a different implementation - but I think addressing modal accessibility is a different PR

I don't think this requires something else, but maybe @rikkekantega is the best person to answer that?

</View>
<View style={styles.bannerContainer}>
<ShinyTicketBanner
width={windowWidth}
height={windowWidth / 2}
></ShinyTicketBanner>
</View>
<InviteModal ref={modalRef} onEnrolled={onEnrolled} />
Copy link
Collaborator

Choose a reason for hiding this comment

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

why not just use refresh directly?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Aforementioned async bug - it just wouldn't work :/ I can try to reproduce it tomorrow

@cbrevik
Copy link
Contributor Author

cbrevik commented Oct 22, 2020

Still some unanswered questions, but I'm merging to get this in. I'll take a look at accessibility++ tomorrow

@cbrevik cbrevik merged commit cf375ab into master Oct 22, 2020
@cbrevik cbrevik deleted the cbrevik/ticket-feature-toggling branch October 22, 2020 19:27
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.

2 participants