BT Migrate WORKSPACE_TAGS#91265
Conversation
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
|
I've raised this PR. Will check the Codex comments if any in a while. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 54bb0213fa
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
|
@mananjadhav please resolve the conflict |
| | PlatformStackScreenProps<SettingsNavigatorParamList, typeof SCREENS.WORKSPACE.DYNAMIC_WORKSPACE_TAG_CREATE> | ||
| | PlatformStackScreenProps<SettingsNavigatorParamList, typeof SCREENS.SETTINGS_TAGS.DYNAMIC_SETTINGS_TAG_CREATE>; | ||
|
|
||
| function WorkspaceCreateTagPage({route}: WorkspaceCreateTagPageProps) { |
There was a problem hiding this comment.
| function WorkspaceCreateTagPage({route}: WorkspaceCreateTagPageProps) { | |
| function DynamicWorkspaceCreateTagPage({route}: WorkspaceCreateTagPageProps) { |
Could you rename this?
| const {inputCallbackRef} = useAutoFocusInput(); | ||
| const isDynamicFlow = route.name === SCREENS.SETTINGS_TAGS.DYNAMIC_SETTINGS_TAG_CREATE; | ||
| const backPath = useDynamicBackPath(DYNAMIC_ROUTES.SETTINGS_TAG_CREATE.path); | ||
| const isDynamicFlow = route.name === SCREENS.SETTINGS_TAGS.DYNAMIC_SETTINGS_TAG_CREATE || route.name === SCREENS.WORKSPACE.DYNAMIC_WORKSPACE_TAG_CREATE; |
There was a problem hiding this comment.
Do we still need to keep isDynamicFlow? Since we’ve already migrated everything, I don’t think it’s needed anymore because the flow is now fully dynamic. So I think we can remove them
| const backPath = useDynamicBackPath(DYNAMIC_ROUTES.SETTINGS_TAG_CREATE.path); | ||
| const isDynamicFlow = route.name === SCREENS.SETTINGS_TAGS.DYNAMIC_SETTINGS_TAG_CREATE || route.name === SCREENS.WORKSPACE.DYNAMIC_WORKSPACE_TAG_CREATE; | ||
| const backPath = useDynamicBackPath( | ||
| route.name === SCREENS.SETTINGS_TAGS.DYNAMIC_SETTINGS_TAG_CREATE ? DYNAMIC_ROUTES.SETTINGS_TAG_CREATE.path : DYNAMIC_ROUTES.WORKSPACE_TAG_CREATE.path, |
There was a problem hiding this comment.
I also don’t think we need to check SCREENS.SETTINGS_TAGS.DYNAMIC_SETTINGS_TAG_CREATE to distinguish between settings and workspace anymore, since the dynamic flow no longer requires that distinction. Can we merge SETTINGS_TAG_CREATE and WORKSPACE_TAG_CREATE into one, so we only use a single constant?
|
Hi @mananjadhav, I’ve reviewed this PR. I think we may not need to distinguish |
|
That is what I discussed here. |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb ChromeiOS: HybridAppiOS: mWeb SafariMacOS: Chrome / SafariScreen.Recording.2026-05-22.at.11.33.26.mov |
|
🚧 @mjasikowski has triggered a test Expensify/App build. You can view the workflow run here. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
|
|
✋ 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/mjasikowski in version: 9.3.80-0 🚀
Bundle Size Analysis (Sentry): |
|
No help site changes are required for this PR. This PR is a purely internal navigation/routing refactoring — it migrates workspace tags routes from static to dynamic route definitions in I reviewed the existing help site article |
|
Deploy Blocker #91480 was identified to be related to this PR. |
|
🚀 Deployed to production by https://github.com/luacmartins in version: 9.3.81-2 🚀
|
Explanation of Change
Fixed Issues
$ #83833
PROPOSAL:
Tests
Prerequisites
Edit tag list name (
tags-edit/:orderWeight)tags-edit/<orderWeight>(e.g.workspaces/<policyID>/tags/tags-edit/0).tags-edit/).tags-edit/<orderWeight>.Tag settings (
tag/:orderWeight/:tagName)tag/<orderWeight>/<tagName>(e.g.workspaces/<policyID>/tags/tag/0/Meals)./tag/<orderWeight>/).Edit tag name (
tag-edit).../tag/<orderWeight>/<tagName>), tap Edit name (or equivalent).tag-edit(e.g..../tag/0/Meals/tag-edit).tag/<orderWeight>/<tagName>, nottag-edit).tag-edit.Tag GL code (
tag-gl-code)tag-gl-code(e.g..../tag/0/Meals/tag-gl-code).tag-gl-code.Tag approver (
workspace-tag-approver)workspace-tag-approver(e.g..../tag/0/Meals/workspace-tag-approver).workspace-tag-approver.Create tag (
tags/new)tags/new(e.g.workspaces/<policyID>/tags/tags/new).tags/new.Offline tests
Same as Test Steps
QA Steps
Same as Test Steps
// TODO: These must be filled out, or the issue title must include "[No QA]."
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))npm run compress-svg)Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
web-workspace-tags.mov
web-workspace-tags-new.mov