You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Due for payment 2025-12-04] [$250] Reports - Default report title field accepts multiline title and renders mark down #74899
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributor
Default report title field should accept only single line title and will not render mark down because report title supports none of it (can confirm by creating a new report in workspace chat).
Actual Result:
Default report title field accepts multiline title and renders mark down.
changed the title [-]Reports - Default report title field accepts multiline title and renders mark down[/-][+][$250] Reports - Default report title field accepts multiline title and renders mark down[/+]on Nov 12, 2025
Currently, in FE we do not have logic to prevent markdown and multiline when we call the setPolicyDefaultReportTitle here
What changes do you think we should make in order to solve the problem?
We should sanitize the input before saving > Before calling setPolicyDefaultReportTitle(policyID, values.defaultTitle), sanitize values.defaultTitle to remove markdown and multiline
⚠️@mdneyazahmad Your proposal is a duplicate of an already existing proposal and has been automatically withdrawn to prevent spam. Please review the existing proposals before submitting a new one.
[Contributor] If the regression was CRITICAL (e.g. interrupts a core flow) A discussion in #expensify-open-source has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner.
Link to discussion: N/A
[Contributor] If it was decided to create a regression test for the bug, please propose the regression test steps using the template below to ensure the same bug will not reach production again.
[BugZero Assignee] Create a GH issue for creating/updating the regression test once above steps have been agreed upon.
Link to issue:
Regression Test Proposal
Precondition:
Test:
Open the app.
Go to workspace settings > Reports.
Click Default report title.
Enter multiline text with some mark down.
Verify that default report title field should accept only single line title and will not render mark down because report title supports none of it (can confirm by creating a new report in workspace chat).
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributor
Activity
melvin-bot commentedon Nov 12, 2025
Triggered auto assignment to @jliexpensify (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.nyomanjyotisa commentedon Nov 12, 2025
Proposal
Please re-state the problem that we are trying to solve in this issue.
Reports - Default report title field accepts multiline title and renders markdown
What is the root cause of that problem?
InputWrapperhastype="markdown",autoGrowHeightandmaxAutoGrowHeightwhich enable markdown rendering and multiline inputApp/src/pages/workspace/reports/ReportsDefaultTitle.tsx
Lines 118 to 138 in 48f5093
What changes do you think we should make in order to solve the problem?
Remove
type="markdown",autoGrowHeight,maxAutoGrowHeight, and theupdateMultilineInputRangeref callback to make the input single-line and plain textApp/src/pages/workspace/reports/ReportsDefaultTitle.tsx
Lines 118 to 138 in 48f5093
What alternative solutions did you explore? (Optional)
None
melvin-bot commentedon Nov 12, 2025
Job added to Upwork: https://www.upwork.com/jobs/~021988468391284008075
[-]Reports - Default report title field accepts multiline title and renders mark down[/-][+][$250] Reports - Default report title field accepts multiline title and renders mark down[/+]melvin-bot commentedon Nov 12, 2025
Triggered auto assignment to Contributor-plus team member for initial proposal review - @eVoloshchak (
External)PiyushChandra17 commentedon Nov 12, 2025
Proposal
Please re-state the problem that we are trying to solve in this issue.
Reports - Default report title field accepts multiline title and renders mark down
What is the root cause of that problem?
What changes do you think we should make in order to solve the problem?
We should sanitize the input before saving > Before calling setPolicyDefaultReportTitle(policyID, values.defaultTitle), sanitize values.defaultTitle to remove markdown and multiline
We should create a function
What alternative solutions did you explore? (Optional)
n/A
Result
fix-markdown-multiline.mov
mdneyazahmad commentedon Nov 12, 2025
🚫 Duplicated proposal withdrawn by 🤖 ProposalPolice.
github-actions commentedon Nov 12, 2025
25 remaining items
jliexpensify commentedon Nov 30, 2025
@allroundexperts sorry, could you clarify what we think should happen here? Does @TaduJR need to open a new PR?
allroundexperts commentedon Nov 30, 2025
All good here.
This issue came up after @TaduJR merged this PR which was part of #68961.
I was saying above that this issue should be treated as a follow up rather than a regression of #68961.
jliexpensify commentedon Nov 30, 2025
Thanks for clarifying! Is a checklist needed here?
jliexpensify commentedon Nov 30, 2025
I also wanted to clarify again - no payments required for anyone?
allroundexperts commentedon Nov 30, 2025
If we treat this as a follow up, then payment should be due here for me and @TaduJR.
allroundexperts commentedon Nov 30, 2025
BugZero Checklist:
[Contributor] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake.
Link to comment: This was a follow up to feat: [ORTF] Auto reporting frequency #70615 and the author is aware of this.
[Contributor] If the regression was CRITICAL (e.g. interrupts a core flow) A discussion in #expensify-open-source has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner.
Link to discussion: N/A
[Contributor] If it was decided to create a regression test for the bug, please propose the regression test steps using the template below to ensure the same bug will not reach production again.
[BugZero Assignee] Create a GH issue for creating/updating the regression test once above steps have been agreed upon.
Link to issue:
Regression Test Proposal
Precondition:
Test:
Verify that default report title field should accept only single line title and will not render mark down because report title supports none of it (can confirm by creating a new report in workspace chat).
Do we agree 👍 or 👎
jliexpensify commentedon Nov 30, 2025
Payment Summary
https://www.upwork.com/jobs/~021988468391284008075
TaduJR commentedon Dec 1, 2025
Thanks @jliexpensify
Offer Accepted!
melvin-bot commentedon Dec 4, 2025
Payment Summary
Upwork Job
BugZero Checklist (@jliexpensify)
jliexpensify commentedon Dec 4, 2025
Paid and job closed!
trjExpensify commentedon Jan 5, 2026
approved $250 for @allroundexperts.