-
Notifications
You must be signed in to change notification settings - Fork 3k
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: There is no way to identify the primary workspace, making it appear essentially random. #53048
Conversation
…pear essentially random. Signed-off-by: krishna2323 <[email protected]>
Signed-off-by: krishna2323 <[email protected]>
@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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@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 <[email protected]>
Let me know when you got screenshots for me to look at 😄 |
@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 |
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.
Code looks good and tests well!
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 from design standpoint 👍
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.
Could you fix the new ESLint? Thank you 🙏
Signed-off-by: krishna2323 <[email protected]>
0bee7ba
@grgia ESLint issue is fixed 🙇🏻 |
@grgia, friendly bump for a final review. |
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.
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. |
Explanation of Change
Fixed Issues
$ #52373
PROPOSAL: #52373 (comment)
Tests
default
badge is displayed on active policySet as default workspace
is not shown.Set as default workspace
is shown.Set as default workspace
option > verify active policy is changedStart chat
> SelectRoom
tabOffline tests
default
badge is displayed on active policySet as default workspace
is not shown.Set as default workspace
is shown.Set as default workspace
option > verify active policy is changedStart chat
> SelectRoom
tabQA Steps
default
badge is displayed on active policySet as default workspace
is not shown.Set as default workspace
is shown.Set as default workspace
option > verify active policy is changedStart chat
> SelectRoom
tabPR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)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 and/or tagged@Expensify/design
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: 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