-
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
[Workspace Feeds] Clean up tasks for workspace feeds #47308
Comments
Triggered auto assignment to @stephanieelliott ( |
I'm starting working on this issue |
@mountiny I'm not sure why I missed it, maybe the PR for that was still open back then when I requested creating this ticket, but this feature of skipping the first step is working now 🙈 😅.
@mountiny so I'm wainitng for your confirmation here 🙂 |
@mountiny Vicky and me also have found an issue with Card List - after issuing card for a workspace that doesn't have any card yet the card list does not appear. I'm getting an error that an object cannot be merged with an array in Onyx. In Onyx we have an empty array instead of an object in the cards__Expensify Card. We get this empty array as a response from OpenPolicyExpensifyCardsPage when we call it the first time. It is fixed after I log out/log in. cc @MariaHCD |
@koko57 Yeah lets handle the first issues in here, I will update the OP For the second issue, I know why its happening Auth sends empty object but PHP changes it to associative array |
cc @allgandalf @DylanDylann - will you be able to review it? |
@mountiny I've found another problem and I wonder if we should fix it on the FE or the BE - after logging out and logging in again if you go straight to the Workspace -> Members and go into any member details the cards are not displayed. We get them only when going to Expensify Card page as So either we should call |
Very fair, I think we can add it when you go to the |
one web pr is up to make sure the cards are returned as empty object |
Added one more clean up:
Screen.Recording.2024-08-28.at.17.29.35.movcc @VickyStash |
@mountiny the first one and the third one - the 2nd was actually broken by fixing #46305 (we need another solution, because this one is contradictory to what we want) Just to make sure: after we choose account and we start the flow we want to go back to the Choose Account Page or back to Expensify Card Page? |
@koko57 I am not sure if it is contradictory; I think it's different going back and forth. If you choose the settlement bank account and start the card creation flow, then if you go back you just go back to pages based on browser history. If you complete the flow and card is created you should go to the Expensify cards page in this case (if you create the card from the workspace member details page you go back to that page) |
yes, but I mean contradictory to the second point:
either we go back to the Choose Account or we're going back to Expensify Card page and as the bank account is chosen we don't show this page again |
I see what you mean. It's confusing because the Choose bank account step is essentially the first step in the create card flow in that case, so we do not go back to it once the card is created. That is because its a one-time action in this case as you mentioned Sorry if I should have caught this earlier and confused you |
One more thing to take care of: we need to uncomment all the code related to RequestExpensifyCardLimitIncrease command |
@DylanDylann @mountiny The PR for this issue is ready for the review |
The PR for these two:
is ready for the review |
@mountiny while working on uncommenting the RequestExpensifyCardLimitIncrease I've encountered another problem - we don't get the bankAccountList after we login - so bankAccountList for Expensify Card page will be not available when we go straight to the Expensify Card page after logging in. Maybe it also could be returned from OpenPolicyExpensifyCardPage? |
Yeah we can return that? What is the bug in steps we encounter now without the bank account list? So we can test the fix out later @koko57 |
@mountiny for the CARDISSUE and other action types not being shown - because the message array is empty so I guess we want to have something in the message array or message.html returned from the API |
and I've found One more thing... - ReconciliationAccountSettingsPage needs UpdateCardSettlementAccount being triggered. I will include this in my PR for this one:
I will use Vicky's solution with backTo param from this PR #48323 |
Thanks for the findings, I will try to include the backend fixes for this |
@mountiny I see that Vicy has already included this change in her PR, I will include the fix for #48376 in my PR with Reconciliation setting uncommented |
PR opened #48408 |
Web PR to show the card related messages merged. |
Anything left on this one, or can we close it out? |
I think we can close |
Par to of the workspace feeds project.
When starting the issue card flow right after choosing a bank account, after we issue the card we're redirected back to the Choose Account page. We should be redirected back to Expensify Card page no matter if we start from the Choose Account page or from Expensify Card -> Issue New Card @koko57 PR
On a fresh account (with no bank account) when we enable Expensify Card and the Empty state is shown we're having "Finish setup" button instead of "Issue New Card", because we're checking for
reimbursementAccountStatus !== CONST.BANK_ACCOUNT.STATE.OPEN
and we don't havereimbursementAccountStatus
yet, so it's true and we're shown improper text - we want to have Issue New Card, right?When editing card name and card limit offline the new value isn't greyed out. I think we need to adjust it. The remaining limit also be updated wrong in offline (PR) - @VickyStash
Screen.Recording.2024-08-28.at.17.29.35.mov
Integrate the isMonthlySettlementAllowed property that is now returned in the
OpenPolicyExpensifyCardsPage
as part of the card settingsisMonthlySettlementAllowed
@VickyStash (PR)Go back to the workspace member details page if the card creation from was initiated from there @VickyStash (PR)
Integrate the RequestExpensifyCardLimitIncrease API call @koko57 (PR)
Make the card issued report actions visible in the chat @koko57 (App PR), Web PR
The text was updated successfully, but these errors were encountered: