-
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
[Self-guided tours][V3] Add tour link to FAB #51136
Conversation
I like that, this way it also won't compete with the green icon we use for creating a workspace from the global create menu right? |
Yeah, though there's a question of whether we should use the same treatment for that too? Actually. Let's just quickly take this to Slack before posting the final mocks here. |
PR ready with udpated styles from slack Hovered |
src/pages/home/sidebar/SidebarScreen/FloatingActionButtonAndPopover.tsx
Outdated
Show resolved
Hide resolved
Looks great from a visual perspective 👍 |
Reviewer Checklist
Screenshots/VideosAndroid: Nativev3Android.mp4Android: mWeb Chromev3AndroidmWeb.mp4iOS: Nativev3iOS.mp4iOS: mWeb Safariv3iOSmWeb.mp4MacOS: Chrome / Safariv3Chrome.mp4MacOS: Desktopv3Desktop.mp4 |
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!
Just to confirm - does the tour open up in a new tab/new window? I think so, but just want to double check. |
New Tab |
Sweet thanks for confirming! |
Design-wise this looks good to me 👍 |
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.
This is mostly same as the v2 review here #51153 (review)
@mountiny changes done. we should merge this PR first because v2 relies on it |
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 think we can go with this one now!
* Selector to get the value of selfTourViewed from the Onyx store | ||
* | ||
* `undefined` means the value is not loaded yet | ||
* `true` means the user has completed the NewDot onboarding flow |
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.
* `true` means the user has completed the NewDot onboarding flow | |
* `true` means the user has seen the navattic tour already |
* | ||
* `undefined` means the value is not loaded yet | ||
* `true` means the user has completed the NewDot onboarding flow | ||
* `false` means the user has not completed the NewDot onboarding flow |
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.
* `false` means the user has not completed the NewDot onboarding flow | |
* `false` means the user has not seen the navattic tour yet |
✋ 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.58-0 🚀
|
#52095 looks like a regression coming from this PR. Would be great if anyone can please take a look @rushatgabhane @c3024 |
export default withOnyx<FloatingActionButtonAndPopoverProps & RefAttributes<FloatingActionButtonAndPopoverRef>, FloatingActionButtonAndPopoverOnyxProps>({ | ||
allPolicies: { | ||
key: ONYXKEYS.COLLECTION.POLICY, | ||
selector: policySelector, | ||
}, | ||
isLoading: { | ||
key: ONYXKEYS.IS_LOADING_APP, | ||
}, | ||
quickAction: { | ||
key: ONYXKEYS.NVP_QUICK_ACTION_GLOBAL_CREATE, | ||
}, | ||
quickActionReport: { | ||
key: ({quickAction}) => `${ONYXKEYS.COLLECTION.REPORT}${quickAction?.chatReportID}`, | ||
}, | ||
quickActionPolicy: { | ||
key: ({quickActionReport}) => `${ONYXKEYS.COLLECTION.POLICY}${quickActionReport?.policyID}`, | ||
}, | ||
personalDetails: { | ||
key: ONYXKEYS.PERSONAL_DETAILS_LIST, | ||
}, | ||
session: { | ||
key: ONYXKEYS.SESSION, | ||
}, | ||
hasSeenTrackTraining: { | ||
key: ONYXKEYS.NVP_HAS_SEEN_TRACK_TRAINING, | ||
}, |
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 have started experiencing this #51242 again and i beleive withOnyx -> useOnyx migration in this PR caused it
🚀 Deployed to production by https://github.com/Julesssss in version: 9.0.58-2 🚀
|
Details
Fixed Issues
$ #50926
PROPOSAL: N.A.
Tests
Admin
Other onboarding purpose
Old accounts that have not completed onboarding ever.
If a user has never completed onboarding, then they won't see the tour link in FAB.
They should see in search page tho.
Old accounts that have completed onboarding should be able to see tour link.
Offline tests
QA Steps
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
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
Screen.Recording.2024-10-28.at.06.38.36.mov
MacOS: Chrome / Safari
Screen.Recording.2024-10-26.at.09.21.06.mov
Hovered
Without hover
MacOS: Desktop