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

Fetch/Display Mobile App QR Code #880

Merged
merged 1 commit into from
Nov 28, 2022
Merged

Conversation

joeyorlando
Copy link
Contributor

@joeyorlando joeyorlando commented Nov 22, 2022

What this PR does:
Adds support for fetching/displaying QR code that will (eventually) be used to link the mobile app to your OnCall instance.

https://www.loom.com/share/aa12bfd7f5b846459f5976161d4550ad

Checklist

  • Tests updated
  • CHANGELOG.md updated
  • Documentation added

@joeyorlando joeyorlando force-pushed the jorlando/mobile-app-qr-code branch 9 times, most recently from b6d1377 to a012484 Compare November 24, 2022 11:38
@joeyorlando joeyorlando changed the title Fetch/Display Mobile App QR Code + 1st UI Integration Test Fetch/Display Mobile App QR Code Nov 24, 2022
@teodosii teodosii force-pushed the jorlando/mobile-app-qr-code branch from 67c900f to a3df014 Compare November 24, 2022 13:30
@joeyorlando joeyorlando force-pushed the jorlando/mobile-app-qr-code branch from 6e6209d to 10faa57 Compare November 28, 2022 16:13
@joeyorlando joeyorlando marked this pull request as ready for review November 28, 2022 16:18
onClick: () => void;
};

// TODO: right now this shows a confirmation pop-up modal on top of the user settings modal, do we want to maybe change this?
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@teodosii UX related question to point out

{activeTab === UserSettingsTab.MobileAppVerification && (
<MobileAppVerification userPk={id} phone={storeUser.unverified_phone_number || '+'} />
)}
{/* TODO: we should probably hide this tab when a user (ie. Admin) is viewing the user settings for another user. Would it make sense for an Admin to be able to link their mobile app to another user's profile */}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

general question/comment. should we hide this tab when a user is viewing the settings for another user? I don't think it makes sense to allow user's to link their own mobile app to the profile of another user. Thoughts?

@action
getCurrentUser() {
return this.items[this.currentUserPk as User['pk']];
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

we already have a UserStore.currentUser getter.. this didn't seem to be referenced anywhere in the codebase (nor in oncall-private), I think it's safe to remove

@joeyorlando joeyorlando force-pushed the jorlando/mobile-app-qr-code branch from 5585ae2 to 5a4fc90 Compare November 28, 2022 17:48
@joeyorlando
Copy link
Contributor Author

@teodosii there is still some minor styling polishing I believe, but I'll go ahead and merge this and we can follow up in a subsequent PR with that (+ address the two questions I had)

@joeyorlando joeyorlando merged commit eb97797 into dev Nov 28, 2022
@joeyorlando joeyorlando deleted the jorlando/mobile-app-qr-code branch November 28, 2022 17:54
brojd pushed a commit that referenced this pull request Sep 18, 2024
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