You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Payment due] [$250] Wrong navigation occurs when we create a category with the name 'new' #48604
So, in both cases if category name is new then CATEGORY_SETTINGS page route will look like - settings/:policyID/categories/new
which is the exact route of CATEGORY_CREATE page
What alternative solutions did you explore? (Optional)
We could edit SETTINGS_CATEGORY_CREATE , SETTINGS_CATEGORIES_SETTINGS , SETTINGS_CATEGORIES_SETTINGS and SETTINGS_CATEGORY_CREATE if we do not wish to edit SETTINGS_CATEGORY_SETTINGS and WORKSPACE_CATEGORY_SETTINGS or any similar change could be applied.
As we can see if the existing category has the name "new", it will open the page to create a new category.
What changes do you think we should make in order to solve the problem?
In other flows, such as tag and tax, the routes to the create a new item are /tags/new, /taxes/new, but the routes to edit existing item are /tag/:tagName, /tax/:taxName. So we can apply the same to category (convert categories to category) flow by updating:
changed the title [-]Wrong navigation occurs when we create a category with the name 'new'[/-][+][$250] Wrong navigation occurs when we create a category with the name 'new'[/+]on Sep 10, 2024
📣 @dominictb 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app!
Offer link Upwork job
Please accept the offer and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review 🧑💻
Keep in mind: Code of Conduct | Contributing 📖
P.S. Is everyone reading this sure this is really a near-term priority? Be brave: if you disagree, go ahead and close it out. If someone disagrees, they'll reopen it, and if they don't: one less thing to do!
changed the title [-][$250] Wrong navigation occurs when we create a category with the name 'new'[/-][+][Payment due] [$250] Wrong navigation occurs when we create a category with the name 'new'[/+]on Oct 7, 2024
Activity
melvin-bot commentedon Sep 4, 2024
Triggered auto assignment to @dylanexpensify (
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.ChavdaSachin commentedon Sep 5, 2024
Proposal
Please re-state the problem that we are trying to solve in this issue.
Clicking on category named
newonWORKSPACE_CATEGORIESpage, App navigates to wrong pageWhat is the root cause of that problem?
RCA for this issue is -
when clicked on a category on
WORKSPACE_CATEGORIESpage, App tries to navigate toCATEGORY_SETTINGSpage usingApp/src/ROUTES.ts
Lines 734 to 737 in 6760f96
App/src/ROUTES.ts
Lines 405 to 408 in 6760f96
So, in both cases if category name is
newthenCATEGORY_SETTINGSpage route will look like -settings/:policyID/categories/newwhich is the exact route of
CATEGORY_CREATEpageApp/src/ROUTES.ts
Lines 413 to 416 in 6760f96
So, when we click on category named
newwe actually navigate toCATEGORY_CREATEpageSimilar problem will arise in case of category named
settingsWhat changes do you think we should make in order to solve the problem?
CATEGORY_SETTINGSpage route in such way it does not clash with any other path.App/src/ROUTES.ts
Lines 735 to 736 in 6760f96
App/src/ROUTES.ts
Lines 406 to 407 in 6760f96
What alternative solutions did you explore? (Optional)
SETTINGS_CATEGORY_CREATE,SETTINGS_CATEGORIES_SETTINGS,SETTINGS_CATEGORIES_SETTINGSandSETTINGS_CATEGORY_CREATEif we do not wish to editSETTINGS_CATEGORY_SETTINGSandWORKSPACE_CATEGORY_SETTINGSor any similar change could be applied.dominictb commentedon Sep 5, 2024
Proposal
Please re-state the problem that we are trying to solve in this issue.
What is the root cause of that problem?
App/src/ROUTES.ts
Line 756 in 6760f96
and when editing the existing category, we open:
App/src/ROUTES.ts
Line 735 in 6760f96
What changes do you think we should make in order to solve the problem?
/tags/new,/taxes/new, but the routes to edit existing item are/tag/:tagName,/tax/:taxName. So we can apply the same to category (convertcategoriestocategory) flow by updating:App/src/ROUTES.ts
Line 735 in 6760f96
and
App/src/ROUTES.ts
Line 406 in 6760f96
App/src/ROUTES.ts
Line 418 in 6760f96
App/src/ROUTES.ts
Line 760 in 6760f96
App/src/ROUTES.ts
Line 764 in 6760f96
App/src/ROUTES.ts
Line 768 in 6760f96
by using
categoryinstead ofcategoriesfor more consistent.What alternative solutions did you explore? (Optional)
[-]Wrong navigation occurs when we create a category with the name 'new'[/-][+][$250] Wrong navigation occurs when we create a category with the name 'new'[/+]melvin-bot commentedon Sep 10, 2024
Job added to Upwork: https://www.upwork.com/jobs/~021833438666330489454
melvin-bot commentedon Sep 10, 2024
Triggered auto assignment to Contributor-plus team member for initial proposal review - @shubham1206agra (
External)dylanexpensify commentedon Sep 10, 2024
external
6 remaining items
melvin-bot commentedon Sep 10, 2024
📣 @dominictb 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app!
Offer link
Upwork job
Please accept the offer and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review 🧑💻
Keep in mind: Code of Conduct | Contributing 📖
dylanexpensify commentedon Sep 18, 2024
Merged!
dominictb commentedon Sep 30, 2024
@dylanexpensify PR deployed to production on Sep 20. Should be ready for payment now. Please add [HOLD for payment Sep 28].
melvin-bot commentedon Oct 4, 2024
This issue has not been updated in over 15 days. @blimpich, @shubham1206agra, @dylanexpensify, @dominictb eroding to Monthly issue.
P.S. Is everyone reading this sure this is really a near-term priority? Be brave: if you disagree, go ahead and close it out. If someone disagrees, they'll reopen it, and if they don't: one less thing to do!
[-][$250] Wrong navigation occurs when we create a category with the name 'new'[/-][+][Payment due] [$250] Wrong navigation occurs when we create a category with the name 'new'[/+]dylanexpensify commentedon Oct 7, 2024
Payment summary:
Contributor: @dominictb $250 via Upwork
Contributor+: @shubham1206agra $250 via Upwork
Please apply/request!
dylanexpensify commentedon Oct 7, 2024
@shubham1206agra please accept offer 🙇♂️
@dominictb payment sent!
shubham1206agra commentedon Oct 7, 2024
@dylanexpensify Accepted offer
dylanexpensify commentedon Oct 8, 2024
Done!