-
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
Add ability to bulk select cards from the same bank in the Card filter on the Search page #53231
Comments
Triggered auto assignment to @trjExpensify ( |
@Kicu would you or someone from SWM want to take this one? |
Taking assignment on this one |
Hey! I’m Jakub Szymczak from Software Mansion, an expert agency, and I’d like to work on this issue! |
Awesome, let us know if you have any questions. |
Are there any designs for this? I don't see the image that Carlos posted :( @JmillsExpensify |
@SzymczakJ you can find the Figma file here |
For testing purposes, how to create a domain feed? |
For information, @SzymczakJ was able to get through this based on this comment |
Sorry I was OOO on Friday and I forgot to mention it. I should be able to put up a draft PR today. |
Now when I think of it, in case a user is a workspace admin, shouldn't he be able to see all workspace cards, not only the cards that he is assigned to(he has an onyx data of that). |
Yea, I think admins should see all cards. Please confirm @JmillsExpensify |
Currently, we are fetching all card feeds data on |
Yes, admins should see all cards. |
Another questions @luacmartins:
My proposition would be to ignore showing card feeds in point 1. and 2. and just show all the cards that belong to the selected card feeds. In short words make it an option to bulk select cards on card filters page, but don't preserve it over saving and showing search results. WDYT |
Curious what Carlos thinks, though adding my thoughts for two of the questions:
Given that this is simply a way to bulk select cards, I would think that we'd print all cards. Basically as if someone entered all the cards in the search router manually.
Yes, similar to above, let's show all the cards as if you searched them |
I know that you wanted cardFeeds selection and indvidual card selection to be separate(according to the description quote)
But wouldn't it make more sense to indicate the user which cards are already chosen, so he knows that he doesn't need to tick them. That's how it would look like: Screen.Recording.2024-12-03.at.14.51.40.mov |
That makes sense. I can work on creating that command.
I agree with Jason, I think we'd just show all the selected cards.
Same as above. Although, I wonder if we'll run into performance issues if a user selects a feed with a huge list of cards.
For this, I think we can just add a condition to check if every card on a feed is selected and if so, also select the feed in the list
I agree with this. @JmillsExpensify wdyt? |
Created an issue to create the read command here |
I'll put the PR into internal review tomorrow. |
Nice! @SzymczakJ I'm starting to work on the command to fetch the card/feeds. Which Onyx keys are you subscribing to? Just |
I'm basing my work on |
Btw, catching up now on the above |
This consideration is a bit tricky, as consider this case:
In this case, you actually didn't unselect the card, because |
That's the way I'm currently handling this: Screen.Recording.2024-12-05.at.11.35.14.movWhen user selects card feed -> we select all the cards |
@Expensify/design we had chatted about this one last week, and I believe some of you had concerns with this approach.
Is that still the case, or we're good to move forward with this? |
Personally, this is what I expected and I think it's fine. Curious for design team's thoughts as well! |
I feel like I was the one who originally pushed back on that idea. I still think it's weird having a radio option that controls other, separate radio options below it. But maybe that's just me—if everyone else is happy with that behavior I'm fine to move forward with it. Let's wait for @Expensify/design to weigh in though. |
This behaviour is also my expectation |
I don't feel too strongly really, I see Danny's point but I also think what I am seeing in the video doesn't feel terribly weird and seems to make sense to me. |
Ok cool - we can wait for @dubielzyk-expensify to chime in but it sounds like everyone is cool with the behavior shown in the video. |
Yeah, I kinda think the video is what's expected too. |
Thanks for chiming in! |
@SzymczakJ the PRs are in review. I'm hoping to get them merged early next week and fully deployed by mid-next week. |
FYI I noticed bugs in using card filter: old.bug.movAll cards except of "Expensify Cards" were shown with a BE value of a bank and same bank cards were indistinguishable. I've fixed it and changed them to human readable form and added descriptor as we do in Search Input: fix.movI guess nobody was really testing this with real cards and that's why this wasn't noticed, but is it the right way to fix it? @luacmartins |
That looks good to me. cc @Expensify/design for another opinion |
Looks good to me too. What does the query look like if you choose "All" on a card feed that has a ton of cards? |
We settled on showing all the cards, that the user selected, by selecting a big card feed. |
Can I see an example mockup of that? I'm just worried that it's going to look pretty brutal in the query bar, and it will make it harder to extend the query to search for anything specific. Like if you wanted to search for the merchant "McDonald's" across all of your Visa commercial cards... it feels like doing so manually via the query would be rough. That being said, it would be easy to do it via advanced filters in the RHP so maybe it's not a huge concern. |
Yup, this screenshot here: ...illustrates my point - that query bar is virtually unusable. Maybe that's fine for now though? Curious what @JmillsExpensify thinks. |
Just dropping in to say that unless backend changes how searching for cards works we cannot display it differently. |
We had previously agreed on showing all cards. I also agree that changing that behaviour would require bigger changes to the backend/parser logic. |
Okay cool, I think we can leave it for now but I wonder if we'll want to revisit in the future for things like reconciliation. |
Bump me when BE is deployed @luacmartins |
PR was merged. Waiting on deploy. |
We're in the final implementation phase for card feeds in NewDot, and as part of that initiative, we need to add a way for admins to bulk select all cards from a certain feed.
Rather than add two separate filters (and the accompanying search syntax), we're going to add a way to bulk select a whole series of cards in the
Card
filter. The benefit of this is that we prevent search "collisions" on two separate filters. For example, imagine that we had a filter forFeed
. If you selectedChase
for that option, you would also be selecting allCard
numbers that also belonged to the same feed. However, in our current logic theCard
filter would be empty.Long story story, a feed is just a way of bulk selecting cards. Similarly, the
Card
filter is already by design a way to select one or more cards. As a result, we're going to do the following:Card
filterCard
filter, admins will see two sections:Card feeds
andIndividual cards
(note for emphasis: the workspace role formember
never sees theCard feeds
section)Card feeds
section, if a user has more than one feed, then we'll append either the domain name or the workspace name (e.g.All Expensify - [workspace name]
orAll Expensify - [domain]
. The domain name only applies for domain feeds, and the workspace feed only applies for workspace feeds. These names are truncated where applicable.Card feeds
section, that's equivalent to a user individually selecting all individual cards. However, we don't do that when a feed is selected, as the card feed is it's own distinct selection.Taken together, the updated filter will look like this.
The text was updated successfully, but these errors were encountered: