Expensify / App

Welcome to New Expensify: a complete re-imagination of financial collaboration, centered around chat. Help us build the next generation of Expensify by sharing feedback and contributing to the code.
https://new.expensify.com
MIT License
3.36k stars 2.79k forks source link

[$250] Invoicing verify that the user has the feature enabled on the page #49842

Open rezkiy37 opened 3 days ago

rezkiy37 commented 3 days ago

Part of the Invoicing payments project

Main issue: https://github.com/Expensify/Expensify/issues/382977 Project: https://github.com/orgs/Expensify/projects/114/views/3

Feature Description

To wrap WorkspacePageWithSections with AccessOrNotFoundWrapper to avoid giving access of the Invoice page to the user where areInvoicesEnabled is false.

Manual Test Steps

Automated Tests

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021839691254986841972
  • Upwork Job ID: 1839691254986841972
  • Last Price Increase: 2024-09-27
Issue OwnerCurrent Issue Owner: @rezkiy37
melvin-bot[bot] commented 3 days ago

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.

rezkiy37 commented 3 days ago

Hi, I am Michael (Mykhailo) from Callstack, an expert agency and I can work on this issue.

melvin-bot[bot] commented 3 days ago

Job added to Upwork: https://www.upwork.com/jobs/~021839691254986841972

melvin-bot[bot] commented 3 days ago

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

Pujan92 commented 3 days ago

Not sure whether I need to review this PR or not as it has been noticed here while reviewing other PR.

ChavdaSachin commented 2 days ago

Proposal

Please re-state the problem that we are trying to solve in this issue.

To wrap WorkspacePageWithSections with AccessOrNotFoundWrapper to avoid giving access of the Invoice page to the user where areInvoicesEnabled is false.

What is the root cause of that problem?

What alternative solutions did you explore? (Optional)

Reminder: 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.

rezkiy37 commented 11 hours ago

@ChavdaSachin, I've already started to work on the issue - https://github.com/Expensify/App/issues/49842#issuecomment-2379204621. Moreover, I have a draft PR (https://github.com/Expensify/App/pull/49843). Going to open it soon 🙂