-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Add Download Banner to mWeb #25418
Add Download Banner to mWeb #25418
Conversation
Looks good to me! Not sure if we need a period at the end of "Download the app." or not though? And for the small text below the headline, I wonder if we should tighten up the lineHeight? Maybe try like 1.2 or something? |
@jjcoffee fixed design comments, so this is ready for review! |
Reviewer Checklist
Screenshots/VideosMobile Web - Chromeandroid-chrome-2023-08-23_18.05.01.mp4Mobile Web - Safariios-safari-2023-08-23_17.37.03.mp4 |
@jjcoffee if you can prioritize this that would be amazing! High priority item for the team! 🙇♂️ |
@dylanexpensify Sure, I'm on it! Should be done soon, just having some Android build problems but I think it's sorted now. |
@dylanexpensify I don't have access to the linked issue, are you able to verify for me that there was a copy review there? Just wondering about |
|
@jjcoffee pushed a fix |
@grgia Thanks for the quick fix! Can you confirm if there was a copy review on the original issue (I can't access it to check)? |
@jjcoffee yep, marketing defined the copy! |
@grgia Is it expected behaviour that the banner will re-appear on reload? I'd imagine the intention would be to keep it closed for the duration of the session at least. |
@grgia Apart from the banner re-appering on reload, I've found a couple of issues whilst testing on Android Chrome.
android-signing-in-issue.mp4
android-scroll-issue.mp4It would be good to add a test to verify that the banner stays hidden once closed - on refresh (if we agree on the behaviour here), sign-in and on navigation once signed in. |
@mountiny ready for review now |
@grgia Small one - there's a blue focus line around the screen whilst the banner is displayed (Android Chrome). Disappears after dismissing or tapping on the banner itself. android-chrome-blue-focus-line.mp4 |
@jjcoffee That seems to be due to the tab selector and occurs for the other modals using this pattern |
@grgia I get this when I try and open the download link on Safari iOS. The link opens fine if I copy it from source into Chrome, so might just be an issue with the emulator. |
@jjcoffee yeah the emulators don't have the app store downloaded, but the adHoc web test passes on my physical device! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good and tests well!
Looks good to me too! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -111,7 +117,27 @@ function ConfirmContent(props) { | |||
{_.isString(props.prompt) ? <Text style={[...props.promptStyles, isCentered ? styles.textAlignCenter : {}]}>{props.prompt}</Text> : props.prompt} | |||
</View> | |||
|
|||
{isCentered ? ( | |||
{props.shouldStackButtons ? ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we make an issue to track this change otherwise we never gonna update it 😂
import ONYXKEYS from '../ONYXKEYS'; | ||
import styles from '../styles/styles'; | ||
import CONST from '../CONST'; | ||
import AppIcon from '../../assets/images/expensify-app-icon.svg'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we also make an issue for this? @grgia
@@ -246,6 +246,11 @@ export default { | |||
newFaceEnterMagicCode: ({login}) => `It's always great to see a new face around here! Please enter the magic code sent to ${login}. It should arrive within a minute or two.`, | |||
welcomeEnterMagicCode: ({login}) => `Please enter the magic code sent to ${login}. It should arrive within a minute or two.`, | |||
}, | |||
DownloadAppModal: { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I dont think other keys are capitalized
DownloadAppModal: { | |
downloadAppModal: { |
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
🚀 Deployed to staging by https://github.com/mountiny in version: 1.3.57-0 🚀
|
I created a issue to handle these follow up changes on a lower-priority basis #25820 |
🚀 Deployed to staging by https://github.com/mountiny in version: 1.3.58-0 🚀
|
🚀 Deployed to production by https://github.com/luacmartins in version: 1.3.57-6 🚀
|
🚀 Deployed to production by https://github.com/luacmartins in version: 1.3.58-5 🚀
|
Requirements
Copied from E/E issue comment
Mockup:
Details
Adds a Download the App Banner for mWeb only. This is a part of the SaaStr project.
Fixed Issues
$ https://github.com/Expensify/Expensify/issues/304097
Tests
NATIVE, WEB, DESKTOP
mWEB
mWEB IOS
mWEB Android
Test Dismissing Banner
mWEB Test Other Banners Were Not Affected by Styles
to
to
Offline tests
QA Steps
NATIVE, WEB, DESKTOP
mWEB
mWEB IOS
mWEB Android
Test Dismissing Banner
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)/** comment above it */
this
properly so there are no scoping issues (i.e. foronClick={this.submit}
the methodthis.submit
should be bound tothis
in the constructor)this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Web
Shouldnt Show
Mobile Web - Chrome
Mobile Web - Safari
Desktop
Shouldnt show
iOS
Shouldnt Show
Android
Shouldnt Show