Repository navigation
fix: show lock icon on tag GL code field when connected to accounting - #102501
Conversation
MenuItem only renders the trailing icon when shouldShowRightIcon is true. Gating that on !hasAccountingConnections hid the lock exactly when the workspace is connected to accounting. $ Expensify#102485
|
@DylanDylann Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
Reviewer Checklist
Screenshots/Videos
Android: HybridAppAndroid: mWeb ChromeiOS: HybridAppiOS: mWeb SafariMacOS: Chrome / Safari |
dylanexpensify
left a comment
There was a problem hiding this comment.
Looks good from a product perspective 👍
Curious though, @Expensify/design are we standardizing on a tool tip for all locked items?
|
Why does the field need a lock icon if it's already read-only? Isn't it being non-editable enough? |
|
@dannymcclain The row is already non-tappable when accounting is connected, and that part did not change. What disappeared is the lock, which is the only cue that the field is owned by the accounting connection rather than just a row that does not open. The lock is the existing pattern. Without it, the field looks accidentally read-only, which is what #102485 reported. This PR only restores that icon. interactive is still false when accounting is connected. If we want connected GL code fields to have no lock at all, that should be a separate design change, not part of this regression fix. cc: @DylanDylann |
Yeah that makes sense to me. Down to proceed here. |
|
conversation here: https://expensify.slack.com/archives/C01GTK53T8Q/p1790646913227189 |
|
🚧 blimpich 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! 🧪🧪
|
…lock-icon fix: show lock icon on tag GL code field when connected to accounting (cherry picked from commit b594885) (cherry-picked to staging by blimpich)
|
🚀 Cherry-picked to staging by https://github.com/blimpich in version: 9.4.95-1 🚀
|
|
No help site update is needed. This bug fix only makes the existing lock icon show on the tag GL Code field when accounting is connected, and no sentence in Create and manage expense tags is made incorrect by it. |
|
🔁 Filed a Staging retest request for deploy blockers #102485 after this PR was cherry-picked to staging. |
|
🚀 Cherry-picked to staging by https://github.com/blimpich in version: 9.4.95-1 🚀
|
|
No help site update is needed. This bug fix only makes the lock icon show on a tag's GL Code field when accounting is connected, and no sentence in Create and manage expense tags is made incorrect by it. |
|
🚀 Deployed to production by https://github.com/Julesssss in version: 9.4.95-4 🚀
|
|
🚀 Cherry-picked to staging by https://github.com/blimpich in version: 9.4.96-0 🚀
|
|
No help site update is needed. This PR only restores the missing lock icon on the tag GL code row for workspaces with an accounting connection; the row was already non-editable, and no sentence in Create and manage expense tags becomes incorrect. |
|
🚀 Cherry-picked to staging by https://github.com/blimpich in version: 9.4.99-0 🚀
|
|
No help site update is needed. This bug fix restores the lock icon on the tag GL Code row for workspaces connected to accounting, and no existing article sentence describes that icon or becomes incorrect. |
|
🚀 Deployed to production by https://github.com/Julesssss in version: 9.4.99-2 🚀
Bundle Size Analysis (Sentry): |

$ #102485
Explanation of Change
When a workspace is connected to accounting, the tag GL code field is locked and should show a lock icon.
MenuItemonly renders the trailing icon whenshouldShowRightIconis true. The GL code row passed the lock throughiconRight, butshouldShowRightIconwascanWriteTags && !hasAccountingConnections, which is false exactly when accounting is connected, so the lock never rendered.This sets
shouldShowRightIcontocanWriteTags.iconRightandinteractiveare unchanged, so the row stays non-tappable when accounting is connected and still shows a chevron when it is not.Fixed Issues
$ #102485
PROPOSAL:
Tests
Offline tests
QA Steps
// TODO: These must be filled out, or the issue title must include "[No QA]."
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectionAvatar, 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.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