-
Notifications
You must be signed in to change notification settings - Fork 3k
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] Category - Description hint field shows previous data after reenabling "Require description" #52399
Comments
Triggered auto assignment to @strepanier03 ( |
@strepanier03 Eep! 4 days overdue now. Issues have feelings too... |
I was able to reproduce this and have tied it to a project. Setting external now. |
Job added to Upwork: https://www.upwork.com/jobs/~021858724639436105772 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @parasharrajat ( |
Edited by proposal-police: This proposal was edited at 2024-11-19 08:36:54 UTC. ProposalPlease re-state the problem that we are trying to solve in this issue.Description hint field shows previous data after reenabling "Require description" What is the root cause of that problem?When we toggle App/src/libs/actions/Policy/Category.ts Line 330 in faa48b6
However, on the server, we do not update What changes do you think we should make in order to solve the problem?To resolve this issue, we must remove the description hint when we toggle Require description to disable, something like this: //src/pages/workspace/categories/CategorySettingsPage.tsx#L245
<Switch
isOn={policyCategory?.areCommentsRequired ?? false}
accessibilityLabel={translate('workspace.rules.categoryRules.requireDescription')}
onToggle={(isOn) => {
if (policyCategory.commentHint && !isOn) {
Category.setWorkspaceCategoryDescriptionHint(policyID, categoryName, '');
}
Category.setPolicyCategoryDescriptionRequired(policyID, categoryName, !areCommentsRequired);
}}
/> Test branchPOCScreen.Recording.2024-11-19.at.15.28.19.movWhat alternative solutions did you explore? (Optional)Or we can use areCommentsRequired to check when setting the workspace description hint //src/pages/workspace/categories/CategorySettingsPage.tsx#L245
<Switch
isOn={policyCategory?.areCommentsRequired ?? false}
accessibilityLabel={translate('workspace.rules.categoryRules.requireDescription')}
onToggle={() => {
if (policyCategory.commentHint && areCommentsRequired) {
Category.setWorkspaceCategoryDescriptionHint(policyID, categoryName, '');
}
Category.setPolicyCategoryDescriptionRequired(policyID, categoryName, !areCommentsRequired);
}}
/> |
Triggered auto assignment to @lakchote, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
@strepanier03 @lakchote @parasharrajat this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks! |
@strepanier03, @lakchote, @parasharrajat Huh... This is 4 days overdue. Who can take care of this? |
This comment was marked as outdated.
This comment was marked as outdated.
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
Bump @lakchote |
Sorry @parasharrajat for the late answer. I like @huult's proposal, which makes the API call to set it correctly. @huult's proposal LGTM. |
❌ There was an error making the offer to @huult for the Contributor role. The BZ member will need to manually hire the contributor. |
@strepanier03 could you please make an offer to @huult? Thanks! |
Here is my Upwork profile: |
@parasharrajat PR is ready for review. |
@strepanier03 Waiting for you to make an offer for me. Thank you! |
friendly bump @strepanier03 per #52399 (comment) |
@lakchote @strepanier03 I still haven’t received an offer on Upwork. Can you check it? Thank you! |
Just a heads up the automation for payment will make a job, or the BZ makes one when payment is due if there isn't an automatic one made.. I'll make one now since it seems like work isn't moving forward until it comes. |
Offer sent, payment is still on hold. |
Thank you! I received an offer |
This issue has not been updated in over 15 days. @strepanier03, @huult, @lakchote, @parasharrajat eroding to Monthly issue. P.S. Is everyone reading this sure this is really a near-term priority? Be brave: if you disagree, go ahead and close it out. If someone disagrees, they'll reopen it, and if they don't: one less thing to do! |
PR is ready for final review. |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Version Number: 9.0.60-0
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?: Y
Email or phone of affected tester (no customers): applausetester [email protected]
Issue reported by: Applause Internal Team
Action Performed:
Precondition:
Expected Result:
Description hint field will remain empty.
Actual Result:
Description hint field shows the previous data after reopening category settings.
Workaround:
Unknown
Platforms:
Screenshots/Videos
Bug6662259_1731402885400.20241112_171047.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @parasharrajatThe text was updated successfully, but these errors were encountered: