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

[No QA] Skip IOU participants step if launched from within chat #2321

Merged
merged 5 commits into from
Apr 22, 2021

Conversation

Maftalion
Copy link
Contributor

@Maftalion Maftalion commented Apr 9, 2021

Details

Fixed Issues

Fixes #2246

Tests

  • Add the following imports in src/pages/home/report/ReportActionCompose.js:
import Navigation from '../../../libs/Navigation/Navigation';
import ROUTES from '../../../ROUTES';
  • Add the following to the menuItems in src/pages/home/report/ReportActionCompose.js:
{
    icon: Paperclip,
    text: 'Request Money',
    onSelected: () => {
        Navigation.navigate(
            ROUTES.getIouRequestRoute(this.props.reportID),
        );
    },
},
{
    icon: Paperclip,
    text: 'Split Bill',
    onSelected: () => {
        Navigation.navigate(
            ROUTES.getIouSplitRoute(this.props.reportID),
        );
    },
},
  • Replace IOU_REQUEST and IOU_BILL with the following in src/ROUTES.js:
    IOU_REQUEST: 'iou/request/:reportID',
    getIouRequestRoute: reportID => `iou/request/${reportID}`,
    IOU_BILL: 'iou/split/:reportID',
    getIouSplitRoute: reportID => `iou/split/${reportID}`,
  • Go into any chat, click the "+" icon and click one of the above menu items
  • Go through the IOU steps and confirm IOUParticipants step was skipped
  • Then remove this.props.reportID from the navigation request above and go through the flow again, this time confirming that the IOUParticipants step does appear.

QA Steps

Same as above.

Tested On

  • Web
  • Mobile Web
  • Desktop
  • iOS
  • Android

Screenshots

Web

Screen.Recording.2021-04-20.at.1.01.57.AM.mov

Mobile Web

Screen.Recording.2021-04-20.at.1.01.08.AM.mov

Desktop

Screen.Recording.2021-04-20.at.1.04.32.AM.mov

iOS

Screen.Recording.2021-04-20.at.12.54.35.AM.mov

Android

Screen.Recording.2021-04-20.at.1.16.12.AM.mov

@Maftalion Maftalion requested a review from a team as a code owner April 9, 2021 16:39
@MelvinBot MelvinBot requested review from thienlnam and removed request for a team April 9, 2021 16:39
@Maftalion Maftalion marked this pull request as draft April 9, 2021 16:41
thienlnam
thienlnam previously approved these changes Apr 9, 2021
Copy link
Contributor

@thienlnam thienlnam left a comment

Choose a reason for hiding this comment

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

Changes look good! I also went ahead and added the imports to the description

@trjExpensify
Copy link
Contributor

👋 Just a heads up that IOUConfirm #2120 has recently merged 👍

@Maftalion Maftalion marked this pull request as ready for review April 20, 2021 08:20
@Maftalion Maftalion changed the title WIP: Skip IOU participants step if launched from within chat Skip IOU participants step if launched from within chat Apr 20, 2021
login: personalDetails.login,
text: personalDetails.displayName,
alternateText: personalDetails.login,
icons: [personalDetails.avatar],
Copy link
Contributor

Choose a reason for hiding this comment

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

There should now be an avatarThumbnail on personalDetails which is an 80x80 version of the image, can we double check to make sure we're using those instead of full sized? You might also need to update getPersonalDetailsForLogins

Copy link
Contributor

Choose a reason for hiding this comment

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

Good spot @thienlnam.

I could be wrong, but I think that might be out of scope for this issue as participant Avatars were implemented in a previous issue. If we spot that the incorrect size is used though, I'll be happy to create a new issue for this.

Copy link
Contributor

Choose a reason for hiding this comment

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

That's fair, let's go ahead with that then if the incorrect sizes are showing up

thienlnam
thienlnam previously approved these changes Apr 20, 2021
Copy link
Contributor

@Julesssss Julesssss left a comment

Choose a reason for hiding this comment

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

Noticed a couple of small things

Copy link
Contributor

@Julesssss Julesssss left a comment

Choose a reason for hiding this comment

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

Ah, actually could you keep the new dynamic routes, please. We'll use both the old static and new dynamic roites.

@Julesssss Julesssss merged commit d72f37a into Expensify:main Apr 22, 2021
@OSBotify
Copy link
Contributor

🚀 Deployed to staging 🚀

platform result
🤖 android 🤖 success ✅
🖥 desktop 🖥 success ✅
🍎 iOS 🍎 success ✅
🕸 web 🕸 success ✅

@isagoico
Copy link

@Julesssss / @thienlnam This one doesn't look QAable by us. Can you let me know if this is internal QA or if there are QA steps that can be executed by Applause? Thanks in advance

@thienlnam
Copy link
Contributor

Hey @isagoico, our bad - looks like the routes for these options to be shown aren't actually enabled yet so this is not something that can be tested yet

@Julesssss Julesssss changed the title Skip IOU participants step if launched from within chat [No QA] Skip IOU participants step if launched from within chat Apr 23, 2021
@OSBotify
Copy link
Contributor

OSBotify commented May 8, 2021

🚀 Deployed to production in version: 1.0.39-5🚀

platform result
🤖 android 🤖 failure ❌
🖥 desktop 🖥 success ✅
🍎 iOS 🍎 success ✅
🕸 web 🕸 success ✅

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.

Skip IOU participants step if launched from within chat
6 participants