-
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
[$250] mWeb - IOU - In description field, mentions are shown in preview but not shown after saved #47195
Comments
Triggered auto assignment to @alexpensify ( |
We think that this bug might be related to #vip-vsb |
@alexpensify FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors |
ProposalPlease re-state the problem that we are trying to solve in this issue.
What is the root cause of that problem?
so the mention style is not applied.
What changes do you think we should make in order to solve the problem?
with:
and then in here:
use: const contextMenuContext = useContext(ShowContextMenuContext);
const currentReportID = contextMenuContext?.currentReportID ? {currentReportID: contextMenuContext?.currentReportID} : useCurrentReportID();
What alternative solutions did you explore? (Optional)
<ShowContextMenuContext.Consumer>
+ {({report}) => (
<Text
style={
+ report && isGroupPolicyReport
? [styles.link, styleWithoutColor, StyleUtils.getMentionStyle(isCurrentRoomMention), {color: StyleUtils.getMentionTextColor(isCurrentRoomMention)}]
: []
}
>
#{mentionDisplayText}
</Text>
)}
</ShowContextMenuContext.Consumer>
|
I was OOO on Friday and will add this one to my testing list. |
ProposalPlease re-state the problem that we are trying to solve in this issue.In money request, mention is rendered in description text input but not shown in the field preview. What is the root cause of that problem?In description page, the text input enables the live markdown, so it will always render the mention report if the pattern is App/src/components/HTMLEngineProvider/HTMLRenderers/MentionReportRenderer.tsx Lines 86 to 88 in c5feb89
App/src/components/HTMLEngineProvider/HTMLRenderers/MentionReportRenderer.tsx Lines 60 to 65 in c5feb89
What changes do you think we should make in order to solve the problem?First, we need to fix the description input live markdown so it will only render report mention if the user is creating the money request on a policy report. To do that, we need to accept a new prop called
Then, we need to do the similar thing for the confirmation description menu item. Accept a new props called App/src/components/MenuItem.tsx Lines 456 to 460 in c010e8c
And then pass the excluded style if the report is not a policy report. App/src/components/MoneyRequestConfirmationListFooter.tsx Lines 299 to 305 in c010e8c
Last, we can't rely on
so we need to create a new context to pass the
|
Job added to Upwork: https://www.upwork.com/jobs/~017a5e03ee4d6aec11 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @alitoshmatov ( |
@alitoshmatov, when you get a chance, can you please review whether one of these proposals will fix this issue? Thanks! |
@daledah Thank you for your proposal, root cause in your proposal is correct, however I don't think you solution is correct it looks more like workaround just to keep |
@bernhardoj Thank you for your proposal, your RCA is correct. Your solution solves the issue and correctly fixes when to show report mention We can go with @bernhardoj 's proposal C+ reviewed 🎀 👀 🎀 |
Triggered auto assignment to @blimpich, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
📣 @alitoshmatov 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app! |
PR is ready cc: @alitoshmatov |
Awesome, thanks @bernhardoj! |
Triggered auto assignment to @RachCHopkins ( |
Next StepsThis PR is waiting for a review. @alitoshmatov, please reply here if you are unable to review the PR, and we can find another C+ for help. @RachCHopkins, I need your help to confirm that this PR is moving along. Thanks! Heads up, I will be offline until Tuesday, September 3, 2024, and will not actively watch over this GitHub during that period.If anything urgent is needed here, please ask for help in the #expensify-open-source Slack Room-- thanks! |
Finish the review today |
Thanks for the update! |
If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results. If a regression has occurred and you are the assigned CM follow the instructions here. If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future. |
The previous PR is reverted, I have opened up a new PR cc: @alitoshmatov |
Catching up from being OOO, I see the PR is moving along. |
Will let you continue @alexpensify - I've really done nothing but watch it. |
Whoops, my bad @RachCHopkins. Sorry, I forgot to unassign you. |
@bernhardoj - can you please confirm this is the new PR you mentioned that you added for this issue? I'm trying to identify the payment date since automation failed. Thanks! |
@alexpensify correct! |
Thanks, I need to manually work on the payment summary since automation failed and the payment date has passed. |
Payouts due: 2024-09-13
Upwork job is here. I kept the amounts the same since this was a unique one to catch and reverting was the only option. There was also swift action to fix the issue found. |
@alexpensify Thanks! Requested in ND. |
$250 approved for @bernhardoj |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Version Number: 9.0.18
Reproducible in staging?: Y
Reproducible in production?: Y
Issue reported by: Applause Internal Team
Action Performed:
#23
in description field and tap saveExpected Result:
In description field, mentions are shown in preview and same way must be shown after saved.
Actual Result:
In description field, mentions are shown in preview but not shown after saved.
Workaround:
Unknown
Platforms:
Screenshots/Videos
Bug6567516_1723273458070.Screenrecorder-2024-08-10-12-21-55-642_compress_1.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: