-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
[NO QA]: Feed Settings #48185
[NO QA]: Feed Settings #48185
Conversation
@ZhenjaHorbach 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] |
# Conflicts: # src/SCREENS.ts # src/libs/API/parameters/index.ts # src/libs/Navigation/linkingConfig/FULL_SCREEN_TO_RHP_MAPPING.ts # src/types/onyx/CompanyCards.ts # src/types/onyx/index.ts
@narefyev91 |
@Expensify/design can i get your eyes here please - standard components - but not worse to double check. |
For "Delete transactions" - would a toggleRow make more sense basically enabling or disabling that feature? cc @Expensify/design @trjExpensify @JmillsExpensify |
@ZhenjaHorbach hey - you can start reviewing this one. Appreciated! |
@shawnborton I think that does make more sense to me. Something like this perhaps? |
Exactly, that looks great to me! Thoughts @joekaufmanexpensify ? |
Reviewer Checklist
Screenshots/VideosAndroid: Nativeandroid.mp4Android: mWeb Chromeandroid-web.moviOS: Nativeios.moviOS: mWeb Safariios-web.movMacOS: Chrome / Safariweb.movMacOS: Desktopdesktop.mov |
Good with me! @dannymcclain mind linking the figma file where that mock came from? I can get this updated in the doc, and then also the V2 doc that uses this pattern too. |
Sweet, TY! Will get this updated in the docs. |
# Conflicts: # src/ROUTES.ts # src/pages/workspace/companyCards/WorkspaceCompanyCardsPage.tsx
@shawnborton could you please review? |
Looks good to me! |
It looks good! But I think we need to update the hint text. Currently it says:
But that's not super helpful for a toggle—it made sense when this control was a select though. I think it needs to say something like this:
|
Yep, that makes sense to me. |
src/pages/workspace/companyCards/WorkspaceCompanyCardsSettingsPage.tsx
Outdated
Show resolved
Hide resolved
Changes looks good to me ! |
@dannymcclain one other Q on the mockup above. Is it expected that delete is using the green trash can icon? In the doc right now we're using the minus circle icon there in the icon color. So curious if that was an intentional change? |
@joekaufmanexpensify Nice catch—it wasn't originally intentional (I was just going by what I was seeing in this PR), but I actually do think the trashcan icon might make more sense here? Because if you remove a card feed, aren't you essentially completely deleting it? Like you'd have to go all the way back through the set up process to get it back, right? If that's the case, I think the trashcan works and follows what we use for "destructively removing" other things in the product. As far as the color, I was just using the default color that we currently have in the product right now for option rows. I know we've talked about updating the color many times, but since I still saw green in the product, I went with it. I am not married to any of these choices that I've made! cc @Expensify/design in case anyone feels strongly that I've strayed from The Path™ |
Yeah, all of that checks out to me Danny. The trash can is pretty consistent with what we use everywhere else in the product too I suppose. |
(Oops, fat fingered that comment button) |
Sounds good! Good to use the trashcan icon. For the color, I had thought based on this we were still planning to update all of the icons to use the As of right now, both docs use the |
Yeah that one keeps coming up, I'm not entirely sure where we landed with it. I like just sticking to the default colors we have in product for these UI pieces for now? |
@ZhenjaHorbach updated copy and add closing modal before navigating back |
There are no more questions from my side ! |
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.
Thanks!
# Conflicts: # src/languages/en.ts # src/languages/es.ts # src/pages/workspace/companyCards/WorkspaceCompanyCardsPage.tsx
@robertjchen resolved merge conflicts - let's wait checks and ready to go |
@narefyev91 Perfect, thanks for the quick turnaround! 🙇 |
✋ 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/robertjchen in version: 9.0.28-0 🚀
|
🚀 Deployed to production by https://github.com/roryabraham in version: 9.0.28-3 🚀
|
const [cardFeeds] = useOnyx(`${ONYXKEYS.COLLECTION.SHARED_NVP_PRIVATE_DOMAIN_MEMBER}${workspaceAccountID}`); | ||
// const [lastSelectedFeed] = useOnyx(`${ONYXKEYS.COLLECTION.LAST_SELECTED_FEED}${policyID}`); | ||
const lastSelectedFeed = 'cdfbmo'; | ||
const feedName = cardFeeds?.companyCardNicknames[lastSelectedFeed] ?? ''; |
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.
Card feed name field was blank on feed settings page when the feed name is the default. We should have show the default feed name in the field for the fallback, this caused #51570
const policy = usePolicy(policyID); | ||
const workspaceAccountID = policy?.workspaceAccountID ?? -1; | ||
// const [lastSelectedFeed] = useOnyx(`${ONYXKEYS.COLLECTION.LAST_SELECTED_FEED}${policyID}`) | ||
const [cardFeeds] = useOnyx(`${ONYXKEYS.COLLECTION.SHARED_NVP_PRIVATE_DOMAIN_MEMBER}${workspaceAccountID}`); |
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.
When the Onyx data is loading, we need to implement a loading indicator to avoid displaying undefined that causing this issue
Details
Feed settings
Add this code inside src/pages/workspace/companyCards/WorkspaceCompanyCardsPage.tsx to add mock data for settings
Fixed Issues
$ #47378
PROPOSAL:
Tests
Offline tests
QA Steps
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.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.mov
Android: mWeb Chrome
android-web.mov
iOS: Native
ios.mov
iOS: mWeb Safari
ios-web.mov
MacOS: Chrome / Safari
web.mov
MacOS: Desktop
desktop.mov