-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[$250] Add Expensify Promoting banner to the Company cards page #56485
Comments
Triggered auto assignment to @sakluger ( |
Job added to Upwork: https://www.upwork.com/jobs/~021887624605895025012 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @c3024 ( |
🚨 Edited by proposal-police: This proposal was edited at 2025-02-06 22:26:10 UTC. ProposalPlease re-state the problem that we are trying to solve in this issue.Add Expensify Promoting banner to the Company cards page What is the root cause of that problem?New Feature What changes do you think we should make in order to solve the problem?Create the banner and display in CompanyCardPage App/src/pages/workspace/companyCards/WorkspaceCompanyCardsPage.tsx Lines 150 to 153 in 6ea5d42
with the appropriate design, icon and copy. We can either display this banner always or if user has no card yet or use onyx state to remove the banner once a user clicked learn more or according to any other expectation needed. And on click of learn more button we will check policy?.areExpensifyCardsEnabled and if it is false we will enable expensify card via enableExpensifyCard and (we can use some delay/may beWORKSPACE_ENABLE_FEATURE_REDIRECT_DELAY before navigating) navigate to ROUTES.WORKSPACE_EXPENSIFY_CARD.getRoute(policyID) if the feature is enabled we will only navigateWe will need to update enableExpensifyCard adding a param to disable goBackWhenEnableFeature which we don't need in this caseApp/src/libs/actions/Policy/Policy.ts Lines 2896 to 2898 in 6ea5d42
optionally we can also simply avoid goBackWhenEnableFeature if the current route is not more features page but I think the param is simpler.
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?N / A What alternative solutions did you explore? (Optional) |
ProposalPlease re-state the problem that we are trying to solve in this issue.Add Expensify Promoting banner to the Company cards page What is the root cause of that problem?This is a new feature What changes do you think we should make in order to solve the problem?We need to add the promoting banner here
App/src/libs/actions/Policy/Policy.ts Lines 2896 to 2898 in 6ea5d42
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?This is a new UI, no need the test What alternative solutions did you explore? (Optional)ResultScreen.Recording.2025-02-07.at.10.24.23.movReminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job. |
ProposalPlease re-state the problem that we are trying to solve in this issueAdd Expensify Promoting banner to the Company cards page. What is the root cause of that problem?This is a What changes do you think we should make in order to solve the problem?
Note Test branch: ikevin127-expensifyCardPromotionFind detailed code / logic implementation which covers everything, working exactly as requested in OP. What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?N/A. ResultsMacOS: Chrome
MacOS / mWeb (Scrolling behaviour)Screen.Recording.2025-02-06.at.20.30.13.mov |
Problem
Coming from this internal issue.
We want to make sure we promote the Expensify card to customers who have the company cards or seeking this setup.
Solution
Lets add a promotional banner to the Company cards page:
The copy has already been approved.
When the admin clicks on the
Learn more
button we should take them to Expensify card pageIf the feature is not enabled, also optimistically enable it and call the api to enable the feature. Then navigate to the page
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @c3024The text was updated successfully, but these errors were encountered: