-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Fix Weekly submission frequency not selected by default #37821
Fix Weekly submission frequency not selected by default #37821
Conversation
@allroundexperts 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/VideosAndroid: NativeScreen.Recording.2024-03-09.at.3.15.01.AM.movAndroid: mWeb ChromeScreen.Recording.2024-03-09.at.3.14.01.AM.moviOS: NativeScreen.Recording.2024-03-09.at.3.12.31.AM.moviOS: mWeb SafariScreen.Recording.2024-03-09.at.3.11.40.AM.movMacOS: Chrome / SafariScreen.Recording.2024-03-08.at.4.56.38.PM.movScreen.Recording.2024-03-09.at.3.02.55.AM.movMacOS: DesktopScreen.Recording.2024-03-09.at.3.07.31.AM.mov |
@lakchote Lint issues now! |
On it! |
@lakchote How do I do this? |
|
Hi @lakchote! |
@allroundexperts I don't think so |
Gotcha. Lemme know once ready. |
@allroundexperts waiting for a PR in the API layer to be reviewed and then deployed so you can review. I'll tag you once it's ready for review! |
@allroundexperts all yours |
BUG Screen.Recording.2024-03-09.at.12.48.34.AM.mov |
@allroundexperts did you have it set as daily before? We preserve any previous frequency you had. We only set it to weekly if this is the first time ever you enable the feature |
This was a fresh account (I created this 2 days ago, but never set the frequency) |
Will create a new account and then confirm this again. |
Tested with a fresh account and still the same problem. Screen.Recording.2024-03-09.at.2.17.17.AM.mov |
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.
Looks good!
@arosiclair 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] |
✋ 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 production by https://github.com/luacmartins in version: 1.4.50-5 🚀
|
@@ -78,7 +83,7 @@ function WorkspaceWorkflowsPage({policy, betas, route}: WorkspaceWorkflowsPagePr | |||
hoverAndPressStyle={[styles.mr0, styles.br2]} | |||
/> | |||
), | |||
isActive: policy?.harvesting?.enabled ?? false, | |||
isActive: (policy?.harvesting?.enabled && policy.autoReportingFrequency !== CONST.POLICY.AUTO_REPORTING_FREQUENCIES.INSTANT) ?? false, |
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 we MIGHT want to use policyUtils.isInstantSubmitEnabled
here? This soon will also check that policy?.autoReporting
is set to true
-> Because if policy?.autoReporting
is false
, we don't want to consider that policy "on instant submit"
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.
cc @lakchote
Details
Fixed Issues
$ #37764
PROPOSAL:
Tests
Network
tabSetWorkspaceAutoReporting
and no call toSetWorkspaceAutoReportingFrequency
Offline tests
It should set the
Weekly
submission frequency onDelayed Submission
toggle when you're offline.QA Steps
Same as in tests
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.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: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
Screen.Recording.2024-03-06.at.16.45.35.mov
MacOS: Desktop