-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
feat: rename category #37969
feat: rename category #37969
Conversation
@luacmartins I cannot rename category, got error from backend, could you help?
![]() |
categoriesBlank.mp4When changing a category name there appears a blank field among the categories list. |
src/libs/Navigation/linkingConfig/CENTRAL_PANE_TO_RHP_MAPPING.ts
Outdated
Show resolved
Hide resolved
Reviewer Checklist
Screenshots/VideosAndroid: NativecategoryAndroid.mp4Android: mWeb ChromecategoryAndroidmWeb.mp4iOS: NativecategoryiOS.mp4iOS: mWeb SafaricategoryiOSmWeb.mp4MacOS: Chrome / SafaricategoryChrome.mp4MacOS: DesktopcategoryDesktop.mp4 |
> | ||
<HeaderWithBackButton | ||
title={translate('workspace.categories.editCategory')} | ||
onBackButtonPress={Navigation.goBack} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
onBackButtonPress={Navigation.goBack} | |
onBackButtonPress={() => Navigation.goBack(ROUTES.WORKSPACE_CATEGORY_SETTINGS.getRoute(route.params.policyID, route.params.categoryName))} |
When visiting EditCategoryPage
with deeplink, clicking on the back button dismisses the modal. I think it should go to the CategorySettingsPage
.
cc: @luacmartins
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
^^ @ArekChr
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we can address that as a follow up. @ArekChr please address this in the next PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
addressed this bug here: #38379
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hey guys 👋 , coming from #50078:
There are chances that we navigate back before the Onyx
updates are completed, this will cause previous values to show for a split second and then show new values, we should had waited for the Onyx update
to get completed before navigating back.
Tested with commenting this block here App/src/libs/Navigation/linkingConfig/getAdaptedStateFromPath.ts Lines 185 to 189 in 9a2796e
Apart from this comment here, everything looks good to me. |
Thanks for the review @c3024. I'll merge this PR to get things moving and unblock other issues. @ArekChr please address this navigation issue in the next PR |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
🚀 Deployed to staging by https://github.com/luacmartins in version: 1.4.53-0 🚀
|
🚀 Deployed to production by https://github.com/AndrewGable in version: 1.4.53-2 🚀
|
@luacmartins @c3024 Is |
It seems to be unused in the code, so we could remove it |
...policyCategoryToUpdate, | ||
name: policyCategory.newName, | ||
unencodedName: decodeURIComponent(policyCategory.newName), | ||
pendingAction: CONST.RED_BRICK_ROAD_PENDING_ACTION.UPDATE, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FYI, This PR missed spreading existing pendingFields
of the policy category to update, This discards GL code and Payroll code pendingFields
and caused #45755. More info in this proposal: #45755 (comment)
Details
This PR introduces ability to rename categories
Fixed Issues
$ #35707
PROPOSAL:
Tests
Offline tests
QA Steps
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label so the design team can review the changes.ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Android: Native
android.mov
Android: mWeb Chrome
chrome.mweb.mov
iOS: Native
ios.mov
iOS: mWeb Safari
ios.mweb.mov
MacOS: Chrome / Safari
web.mov
MacOS: Desktop
desktop.mov