-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
[Self-guided tours v1] Add self-guided tours in Search Page Empty State #50931
[Self-guided tours v1] Add self-guided tours in Search Page Empty State #50931
Conversation
@rushatgabhane Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
src/CONST.ts
Outdated
@@ -753,6 +753,11 @@ const CONST = { | |||
DELAYED_SUBMISSION_HELP_URL: 'https://help.expensify.com/articles/expensify-classic/reports/Automatically-submit-employee-reports', | |||
// Use Environment.getEnvironmentURL to get the complete URL with port number | |||
DEV_NEW_EXPENSIFY_URL: 'https://dev.new.expensify.com:', | |||
NAVATTIC: { | |||
ADMIN_TOUR: 'http://expensify.navattic.com/kh204a7', | |||
EMPLOYEE_TOUR: 'http://expensify.navattic.com/35609gb', |
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.
EMPLOYEE_TOUR: 'http://expensify.navattic.com/35609gb', | |
EMPLOYEE_TOUR: 'https://expensify.navattic.com/35609gb', |
src/CONST.ts
Outdated
@@ -753,6 +753,11 @@ const CONST = { | |||
DELAYED_SUBMISSION_HELP_URL: 'https://help.expensify.com/articles/expensify-classic/reports/Automatically-submit-employee-reports', | |||
// Use Environment.getEnvironmentURL to get the complete URL with port number | |||
DEV_NEW_EXPENSIFY_URL: 'https://dev.new.expensify.com:', | |||
NAVATTIC: { | |||
ADMIN_TOUR: 'http://expensify.navattic.com/kh204a7', |
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.
ADMIN_TOUR: 'http://expensify.navattic.com/kh204a7', | |
ADMIN_TOUR: 'https://expensify.navattic.com/kh204a7', |
src/languages/es.ts
Outdated
@@ -4291,6 +4291,10 @@ const translations = { | |||
title: 'No hay nada que ver aquí', | |||
subtitle: 'Por favor intenta crear algo usando el botón verde.', | |||
}, | |||
emptyExpenseResults: { | |||
title: "You haven't created any expenses yet", |
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.
title: "You haven't created any expenses yet", | |
title: "Aún no has creado ningún gasto", |
src/languages/es.ts
Outdated
@@ -4291,6 +4291,10 @@ const translations = { | |||
title: 'No hay nada que ver aquí', | |||
subtitle: 'Por favor intenta crear algo usando el botón verde.', | |||
}, | |||
emptyExpenseResults: { | |||
title: "You haven't created any expenses yet", | |||
subtitle: 'Use the green button below to create an expense or take a tour of Expensify to learn more.', |
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.
subtitle: 'Use the green button below to create an expense or take a tour of Expensify to learn more.', | |
subtitle: 'Usa el botón verde de abajo para crear un gasto o realiza un recorrido por Expensify para aprender más.', |
src/languages/es.ts
Outdated
@@ -5593,6 +5597,9 @@ const translations = { | |||
hasMissingInvoiceBankAccount: 'Falta la cuenta bancaria de la factura', | |||
}, | |||
}, | |||
emptySearchView: { | |||
takeATour: 'Take a tour', |
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.
takeATour: 'Take a tour', | |
takeATour: 'Realiza un recorrido', |
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.
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.
Thanks! Updated all except this.
Corrected its style back to the usual style. I will add the tour link to trips in this v1 or a later version after @zsgreenwald adds it to the GitHub issue so that someone OOTL do not see inconsistencies between the plan and the PR. |
I have not found a Figma design for the narrow layout of the search page empty state modal. When the buttons are arranged horizontally on narrow layout, the text “Create Expense” gets cut off. So, I styled them to be laid out vertically on narrow layouts. Let me know if this needs changes. Thanks! |
@c3024 vertical layout looks great! |
Vertical makes sense to me. Are we planning to do that for desktop as well? I ask because on desktop, I think the modals have a max-width of 400px so I'm not sure if they have enough horizontal space to support the two buttons. We shouldn't be making that modal any larger, it should stay capped at 400px width. |
It follows the usual styling adjustments for narrow layouts on Desktop app and Web Chrome also. Screen.Recording.2024-10-17.at.1.38.29.PM.mov |
Got it. I think that's fine given that the button labels are short enough to support two horizontal buttons. Let's just make sure it also works when in Spanish too :) |
@c3024 could you fix travel modal button. It is half in size |
Screen.Recording.2024-10-17.at.6.25.31.PM.mov |
I like the horizontal button layout on desktop + stacked on mobile. But like Shawn said, if we find that the labels get too long in Spanish or something, I think the stacked layout would still work fine on desktop too if we have to go that route. |
No problems with Spanish labels as well. spanishNavattic.mp4 |
Nice! |
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2024-10-17.at.23.22.12.movAndroid: mWeb ChromeiOS: NativeScreen.Recording.2024-10-17.at.23.30.55.moviOS: mWeb SafariScreen.Recording.2024-10-17.at.23.32.15.movMacOS: DesktopScreen.Recording.2024-10-17.at.23.39.02.mov |
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.
LGTM
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.
Simple and quick changes
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.
Checked and it all looks good from a visual standpoint.
✋ 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: 9.0.51-1 🚀
|
🚀 Deployed to production by https://github.com/yuwenmemon in version: 9.0.51-4 🚀
|
🚀 Deployed to production by https://github.com/yuwenmemon in version: 9.0.51-4 🚀
|
Details
This PR adds self guided tours in the empty state view of Search Page.
Fixed Issues
$ #50926
PROPOSAL:
Tests
Test 1:
Test 2:
Offline tests
NA
QA Steps
Same as Tests
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label and/or tagged@Expensify/design
so the design team can review the changes.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
Android: Native
navatticAndroid.mp4
Android: mWeb Chrome
navatticAndroidmWeb.mp4
iOS: Native
navatticiOS.mp4
iOS: mWeb Safari
navatticiOSmWeb.mp4
MacOS: Chrome / Safari
navatticChrome.mp4
MacOS: Desktop
navatticDesktop.mp4