[No QA] [Workspace Feeds] Clean up for workspace feeds#48323
[No QA] [Workspace Feeds] Clean up for workspace feeds#48323mountiny merged 5 commits intoExpensify:mainfrom
Conversation
|
@allgandalf 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] |
|
@allgandalf are you on this or @DylanDylann should take over? |
|
based on this comment on slack, i guess they are taking this one, but if they are busy i have no problem reviewing this |
Reviewer Checklist
Screenshots/VideosAndroid: NativeAndroid: mWeb ChromeScreen.Recording.2024-08-30.at.22.44.49.moviOS: NativeScreen.Recording.2024-08-30.at.23.03.14.moviOS: mWeb SafariScreen.Recording.2024-08-30.at.22.43.38.movMacOS: Chrome / SafariScreen.Recording.2024-08-30.at.22.31.40.movMacOS: DesktopScreen.Recording.2024-08-30.at.22.38.20.mov |
| title={translate(`workspace.expensifyCard.frequency.${settlementFrequency}`)} | ||
| shouldShowRightIcon={settlementFrequency !== CONST.EXPENSIFY_CARD.FREQUENCY_SETTING.DAILY} | ||
| // interactive={!isSettlementFrequencyBlocked} | ||
| interactive={!isSettlementFrequencyBlocked} |
There was a problem hiding this comment.
NAB: Maybe add disabled props
| interactive={!isSettlementFrequencyBlocked} | |
| interactive={!isSettlementFrequencyBlocked} | |
| disabled={isSettlementFrequencyBlocked} | |
There was a problem hiding this comment.
@DylanDylann It adds the opacity, I'm not sure that it's the expected behaviour
There was a problem hiding this comment.
Yeah, It's only my suggestion and also be a minor thing
There was a problem hiding this comment.
I don't think the disabled prop is necessary in this case
|
Adding |
…ncyPage if monthly option isn't allowed
src/pages/workspace/expensifyCard/WorkspaceCardSettingsPage.tsx
Outdated
Show resolved
Hide resolved
src/pages/workspace/expensifyCard/issueNew/IssueNewCardPage.tsx
Outdated
Show resolved
Hide resolved
src/pages/workspace/expensifyCard/issueNew/IssueNewCardPage.tsx
Outdated
Show resolved
Hide resolved
|
@dubielzyk-expensify since the rest of the team will most likely be out for the labour day, can you confirm checking the screenshots in the checklist look good? Specifically the padding on the page with settlement frequency being disabled (user cant change it) Thanks! |
dubielzyk-expensify
left a comment
There was a problem hiding this comment.
Looks good to me!
|
@mountiny I've applied your feedback, please take another look |
| title={translate(`workspace.expensifyCard.frequency.${settlementFrequency}`)} | ||
| shouldShowRightIcon={settlementFrequency !== CONST.EXPENSIFY_CARD.FREQUENCY_SETTING.DAILY} | ||
| // interactive={!isSettlementFrequencyBlocked} | ||
| interactive={!isSettlementFrequencyBlocked} |
There was a problem hiding this comment.
I don't think the disabled prop is necessary in this case
|
✋ 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/mountiny in version: 9.0.28-0 🚀
|
|
🚀 Deployed to production by https://github.com/roryabraham in version: 9.0.28-3 🚀
|
| const submit = () => { | ||
| Card.issueExpensifyCard(policyID, CONST.COUNTRY.US, data); | ||
| Navigation.navigate(ROUTES.WORKSPACE_EXPENSIFY_CARD.getRoute(policyID ?? '-1')); | ||
| Navigation.navigate(backTo ?? ROUTES.WORKSPACE_EXPENSIFY_CARD.getRoute(policyID ?? '-1')); |
There was a problem hiding this comment.
We shouldn't navigate to the backTo param if we started issuing the card from the member's details page but changed the card holder. After changing the card holder it does not make sense to return to the previous card holder details page.
Coming from #56009
| const issueCard = () => { | ||
| const activeRoute = Navigation.getActiveRoute(); | ||
| Navigation.navigate(ROUTES.WORKSPACE_EXPENSIFY_CARD_ISSUE_NEW.getRoute(policyID, activeRoute)); | ||
| }; |
There was a problem hiding this comment.
We should have cleared the ISSUE_NEW_EXPENSIFY_CARD_FORM data when issuing a card. Not doing so caused #66841

Details
Fixed Issues
$ #47308
PROPOSAL: N/A
Tests
Pre-steps:
workspaceFeedbeta enabledPart 1
Settings.isMonthlySettlementAllowedflag in card settings is true for you make sure you can seeMonthlyoption in Settlement frequency.isMonthlySettlementAllowedflag is false Settlement frequency should be not interactive for you.Part 2
Offline tests
Same as in the Tests section
QA Steps
Same as in the Tests section
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.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
MacOS: Chrome / Safari
2.mp4