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

[High] Hide the Trip Room from NewDot unless you are on the newDotTravel beta #50534

Closed
6 tasks done
stitesExpensify opened this issue Oct 9, 2024 · 32 comments
Closed
6 tasks done
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Engineering External Added to denote the issue can be worked on by a contributor Reviewing Has a PR in review Weekly KSv2

Comments

@stitesExpensify
Copy link
Contributor

stitesExpensify commented Oct 9, 2024

If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!


Version Number:
Reproducible in staging?: y
Reproducible in production?: y
If this was caught during regression testing, add the test name, ID and link from TestRail:. n/a
Email or phone of affected tester (no customers): all users on travel beta
Logs: https://stackoverflow.com/c/expensify/questions/4856 n/a
Expensify/Expensify Issue URL: n/a
Issue reported by: @stitesExpensify
Slack conversation: https://expensify.slack.com/archives/C05S5EV2JTX/p1728320141565859

Problem

We are currently focused on travel for OldDot, and have put all NewDot features on hold. We are also not testing travel on NewDot. For this reason, we want to hide the trip room and any other travel related features behind a beta except for the main booking flow.

The name of the beta is BETA_NEW_TRAVEL_PROVISIONING = 'newTravelProvisioning';

Expected Result:

Users should be able to book a trip via newdot (clicking "book travel" and being brought to Spotnana), but they should not see the trip room or any other travel related features.

Workaround:

Users can still use NewDot, it just looks bad and has bugs

Platforms:

Which of our officially supported platforms is this issue occurring on?

  • Android: Native
  • Android: mWeb Chrome
  • iOS: Native
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Add any screenshot/video evidence

View all open jobs on GitHub

Issue OwnerCurrent Issue Owner: @rushatgabhane
@stitesExpensify stitesExpensify added External Added to denote the issue can be worked on by a contributor Engineering Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Oct 9, 2024
@stitesExpensify stitesExpensify self-assigned this Oct 9, 2024
@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Oct 9, 2024
Copy link

melvin-bot bot commented Oct 9, 2024

Triggered auto assignment to Contributor-plus team member for initial proposal review - @DylanDylann (External)

@stitesExpensify
Copy link
Contributor Author

@shubham1206agra any interest on doing this one since you have been working on trip rooms already?

Copy link

melvin-bot bot commented Oct 9, 2024

Triggered auto assignment to @twisterdotcom (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.

@shubham1206agra
Copy link
Contributor

I will do this

@melvin-bot melvin-bot bot removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Oct 10, 2024
@DylanDylann
Copy link
Contributor

@shubham1206agra Any update here?

@rushatgabhane
Copy link
Member

@melvin-bot melvin-bot bot added the Overdue label Oct 16, 2024
@shubham1206agra
Copy link
Contributor

Sorry, right now I am busy. I am really sorry for the delay in reassignment.

@DylanDylann
Copy link
Contributor

@rushatgabhane Any update here?

@rushatgabhane
Copy link
Member

hey, there are many changes.

Question: should we hide travel from search too??

@twisterdotcom
Copy link
Contributor

How do you mean? Like here?
image

If so, no we don't need to. This amalgamtes all trips we scan, not just trips booked via Expensify Travel. It's sort of separate.

@melvin-bot melvin-bot bot added the Overdue label Oct 21, 2024
Copy link

melvin-bot bot commented Oct 21, 2024

@twisterdotcom, @rushatgabhane, @stitesExpensify, @DylanDylann Whoops! This issue is 2 days overdue. Let's get this updated quick!

@twisterdotcom
Copy link
Contributor

How is this going then @rushatgabhane?

@melvin-bot melvin-bot bot removed the Overdue label Oct 21, 2024
@rushatgabhane
Copy link
Member

PR above ^

@twisterdotcom few questions.
If we show the trip in search, then we can still navigate to the trip room by going up the parent threads.
Is this okay?

Screen.Recording.2024-10-24.at.04.40.18.mov

@melvin-bot melvin-bot bot added the Overdue label Oct 28, 2024
@trjExpensify
Copy link
Contributor

👋 @stitesExpensify @Gonals @twisterdotcom @rlinoz - can we kill the newDotSpotnanaTravel beta so the "Book travel" menu item shows again, now that we're building a new beta here to hide the trip rooms only?

This will help with some HybridApp development to action on the redirect when they click the Travel tab in OldApp.

@twisterdotcom
Copy link
Contributor

If we show the trip in search, then we can still navigate to the trip room by going up the parent threads.
Is this okay?

I think this should be fine for now.

@melvin-bot melvin-bot bot removed the Overdue label Oct 29, 2024
@rushatgabhane
Copy link
Member

rushatgabhane commented Oct 29, 2024

but those rooms and transactions shouldn't be visible in LHN and such, right?

@rlinoz
Copy link
Contributor

rlinoz commented Oct 29, 2024

It doesn't look like we are using the newDotSpotnanaTravel beta anywhere https://github.com/search?q=org%3AExpensify+newDotSpotnanaTravel+OR+BETA_NEWDOT_SPOTNANA_TRAVEL&type=code

Am I missing something?

@trjExpensify
Copy link
Contributor

trjExpensify commented Oct 29, 2024

Hm, why is that in Betatify then? 😅 Issue here: https://github.com/Expensify/Expensify/issues/432172

Edit: If it's unused, let's kill it so it's not confusing us.

@rlinoz
Copy link
Contributor

rlinoz commented Oct 29, 2024

Ah I see, I think we never implemented it in the App though, from what I can tell we are hiding the button based on spotnanaTravel beta, which is the same beta we use for the OldApp

function canUseSpotnanaTravel(betas: OnyxEntry<Beta[]>): boolean {
return !!betas?.includes(CONST.BETAS.SPOTNANA_TRAVEL) || canUseAllBetas(betas);
}

...(canUseSpotnanaTravel
? [
{
icon: Expensicons.Suitcase,
text: translate('travel.bookTravel'),
onSelected: () => interceptAnonymousUser(() => Navigation.navigate(ROUTES.TRAVEL_MY_TRIPS)),
},

@trjExpensify
Copy link
Contributor

Ah okay, the Book travel menu item is being hidden based on canUseSpotnanaTravel which is the overall beta for Travel I take it on both OldDot and NewDot?

...(canUseSpotnanaTravel
? [
{
icon: Expensicons.Suitcase,
text: translate('travel.bookTravel'),
onSelected: () => interceptAnonymousUser(() => Navigation.navigate(ROUTES.TRAVEL_MY_TRIPS)),

@mateuuszzzzz, if that's the case. I think we should have that accessible in OldApp to use? Ted, Rodrigo.. can you confirm what the expected behaviour with this spotnanaTravel beta? Is it:

  • When not on the beta: Clicking the Trips Travel tab on OldApp doesn't redirect, it opens the OldApp Trips page.
  • When on the beta: Clicking the Travel tab redirects to NewDot's book travel flow

@trjExpensify
Copy link
Contributor

Ah I see, I think we never implemented it in the App though, from what I can tell we are hiding the button based on spotnanaTravel beta, which is the same beta we use for the OldApp

Jinxxxxxx

@DylanDylann
Copy link
Contributor

@rushatgabhane Any update?

@melvin-bot melvin-bot bot added the Overdue label Nov 1, 2024
Copy link

melvin-bot bot commented Nov 1, 2024

@twisterdotcom, @rushatgabhane, @stitesExpensify, @DylanDylann Whoops! This issue is 2 days overdue. Let's get this updated quick!

Copy link

melvin-bot bot commented Nov 5, 2024

@twisterdotcom, @rushatgabhane, @stitesExpensify, @DylanDylann Still overdue 6 days?! Let's take care of this!

@DylanDylann
Copy link
Contributor

@rushatgabhane Kindly bump

Copy link

melvin-bot bot commented Nov 11, 2024

@twisterdotcom, @rushatgabhane, @stitesExpensify, @DylanDylann 12 days overdue now... This issue's end is nigh!

Copy link

melvin-bot bot commented Nov 12, 2024

@twisterdotcom, @rushatgabhane, @stitesExpensify, @DylanDylann 12 days overdue. Walking. Toward. The. Light...

@stitesExpensify
Copy link
Contributor Author

Hey @rushatgabhane looks like it's been 2 weeks, can you provide an update please?

@melvin-bot melvin-bot bot added Weekly KSv2 and removed Daily KSv2 labels Nov 15, 2024
Copy link

melvin-bot bot commented Nov 15, 2024

This issue has not been updated in over 14 days. @twisterdotcom, @rushatgabhane, @stitesExpensify, @DylanDylann eroding to Weekly issue.

@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Overdue Weekly KSv2 labels Nov 15, 2024
@shubham1206agra
Copy link
Contributor

@stitesExpensify @twisterdotcom Should we close this issue?
Since we now have FE issues off hold, it will be worked on.
And we no longer need a beta to hide the trip room.

@twisterdotcom
Copy link
Contributor

I think that makes sense.

@github-project-automation github-project-automation bot moved this from Medium - NewDot MVP - Feb '25 to Done in [#whatsnext] #travel 2025-02-01 - External Commit Nov 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something is broken. Auto assigns a BugZero manager. Engineering External Added to denote the issue can be worked on by a contributor Reviewing Has a PR in review Weekly KSv2
Development

No branches or pull requests

7 participants