feat: There is no way to identify the primary workspace, making it appear essentially random.#53048
Conversation
…pear essentially random. Signed-off-by: krishna2323 <belivethatkg@gmail.com>
Signed-off-by: krishna2323 <belivethatkg@gmail.com>
|
@dubielzyk-expensify @Ollyws One of you needs to 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] |
|
will add the screenshots once we add the api to update the active policy. |
src/libs/actions/Policy/Policy.ts
Outdated
| policyID: newPolicyID, | ||
| }; | ||
|
|
||
| API.write(WRITE_COMMANDS.UPDATE_ACTIVE_POLICY, parameters, { |
There was a problem hiding this comment.
@grgia, what will the api endpoint to update the active policy id? For now I added UPDATE_ACTIVE_POLICY: 'UpdateActivePolicy', in the WRITE_COMMANDS file.
Signed-off-by: krishna2323 <belivethatkg@gmail.com>
|
Let me know when you got screenshots for me to look at 😄 |
Signed-off-by: krishna2323 <belivethatkg@gmail.com>
|
@Expensify/design, please review the video below. Do we want to show some kind of feedback when we make a workspace default in offline mode? Monosnap.screencast.2024-12-13.18-42-41.mp4 |
|
@Expensify/design, please check the comment above ^ |
|
I'm unsure what the right pattern is here, but I feel like we can optimistically save the Default mode and show the badge, assuming it'll update when it's online? Thoughts @Expensify/design and @trjExpensify ? |
|
Yeah, I think the question is which offline pattern to use for this. I think Pattern A ("optimistic without feedback") is fine for this, no need for the pending UI when changed offline. |
|
@Expensify/design, the screenshots are up for review. @Ollyws, this can be reviewed now. I haven't uploaded the video for android native because of build issues, I hope that's not a blocker. |
|
They look good to me 👍 |
Reviewer Checklist
Screenshots/VideosAndroid: Native01_Android_Native.mp4Android: mWeb Chrome02_Android_Chrome.mp4iOS: Native03_iOS_Native.mp4iOS: mWeb Safari04_iOS_Safari.mp4MacOS: Chrome / Safari05_MacOS_Chrome.mp4MacOS: Desktop06_MacOS_Desktop.mp4 |
Ollyws
left a comment
There was a problem hiding this comment.
Code looks good and tests well!
dubielzyk-expensify
left a comment
There was a problem hiding this comment.
LGTM from design standpoint 👍
grgia
left a comment
There was a problem hiding this comment.
Could you fix the new ESLint? Thank you 🙏
Signed-off-by: krishna2323 <belivethatkg@gmail.com>
0bee7ba
|
@grgia ESLint issue is fixed 🙇🏻 |
|
@grgia, friendly bump for a final review. |
grgia
left a comment
There was a problem hiding this comment.
Thank you!! I'll trigger a test build now to double check QA 😁
|
🚧 @grgia has triggered a test build. You can view the workflow run here. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, Desktop, 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/grgia in version: 9.0.81-0 🚀
|
|
🚀 Deployed to production by https://github.com/puneetlath in version: 9.0.81-6 🚀
|
| </View> | ||
| )} | ||
| {!!isDefault && ( | ||
| <Tooltip |
There was a problem hiding this comment.
#54955 was caused because of not specifying number of lines
Explanation of Change
Fixed Issues
$ #52373
PROPOSAL: #52373 (comment)
Tests
defaultbadge is displayed on active policySet as default workspaceis not shown.Set as default workspaceis shown.Set as default workspaceoption > verify active policy is changedStart chat> SelectRoomtabOffline tests
defaultbadge is displayed on active policySet as default workspaceis not shown.Set as default workspaceis shown.Set as default workspaceoption > verify active policy is changedStart chat> SelectRoomtabQA Steps
defaultbadge is displayed on active policySet as default workspaceis not shown.Set as default workspaceis shown.Set as default workspaceoption > verify active policy is changedStart chat> SelectRoomtabPR 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))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
android_chrome.mp4
iOS: Native
ios_native.mp4
iOS: mWeb Safari
ios_safari.mp4
MacOS: Chrome / Safari
web_chrome.mp4
MacOS: Desktop
desktop_app.mp4