-
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
[$500] Status with custom time doesn't work #33558
Comments
Job added to Upwork: https://www.upwork.com/jobs/~019c1da8c2e9f0e2ec |
Triggered auto assignment to @anmurali ( |
Bug0 Triage Checklist (Main S/O)
|
Triggered auto assignment to Contributor-plus team member for initial proposal review - @eVoloshchak ( |
should be resolved after #33525 is merged and deployed |
since this bug is handled here: #33525 ProposalPlease re-state the problem that we are trying to solve in this issue.The current issue is that within our codebase, instances of components like DatePicker are not consistently wrapped in InputWrapper when used within FormProvider. This inconsistency can lead to problems with state management and form validation, as InputWrapper is essential for correctly updating the form's state based on user input. What is the root cause of that problem?The primary cause of this issue is the lack of a defined coding standard or automated enforcement / warning mechanism ensuring that components are always wrapped in InputWrapper when used within FormProvider. This leads to situations where developers might inadvertently omit the InputWrapper, resulting in components that do not function as expected within the form context. What changes do you think we should make in order to solve the problem?To address this inconsistency and enforce a standard coding practice, I propose creating a custom ESLint rule specifically tailored for our project. This rule will automatically enforce the use of InputWrapper around components when they are children of FormProvider. What alternative solutions did you explore? (Optional)N/A |
Proposal Problem Statement: Root Cause Analysis: Proposed Solution:
Alternative Solutions Explored: I'm prepared to delve into the codebase and address this data persistence issue promptly to ensure the accurate retention and saving of custom dates within the "Clear After" functionality of "Access Profile > Status." Please note that any proposed changes will be thoroughly tested across supported platforms (MacOS: Chrome / Safari) to guarantee the resolution's effectiveness. |
📣 @Famzy-codes! 📣
|
|
Contributor details |
✅ Contributor details stored successfully. Thank you for contributing to Expensify! |
ProposalPlease re-state the problem that we are trying to solve in this issue.Setting a custom clear status date clears the default/selected date and time. What is the root cause of that problem?Because the date picker is not wrapped with InputWrapper in the SetDatePage component, the clear after date value can't be accessed inside the submit function. What changes do you think we should make in order to solve the problem?Wrap the date picker in an InputWrapper. <InputWrapper
InputComponent={DatePicker}
inputID="dateTime"
label={translate('statusPage.date')}
defaultValue={DateUtils.extractDate(customClearAfter)}
minDate={new Date()}
/> What alternative solutions did you explore? (Optional)N/A |
Please re-state the problem that we are trying to solve in this issue.When attempting to set a custom date under "Clear After", the selected date is not saved or not worked What is the root cause of that problem?In the What changes do you think we should make in order to solve the problem?To resolve this issue, you can either utilize
Video:https://drive.google.com/file/d/1UScOd8VJi1v-e6XqnywjCjEqL0E4PyXb/view?usp=sharing |
@eVoloshchak, @anmurali Whoops! This issue is 2 days overdue. Let's get this updated quick! |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
@eVoloshchak, @anmurali 6 days overdue. This is scarier than being forced to listen to Vogon poetry! |
@eVoloshchak, @anmurali Now this issue is 8 days overdue. Are you sure this should be a Daily? Feel free to change it! |
@eVoloshchak can you please review the proposals and comment (or pick) |
@anmurali, this one can be closed I think. |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
@eVoloshchak @anmurali 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! |
@eVoloshchak, @anmurali Huh... This is 4 days overdue. Who can take care of this? |
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: 1.4.16-3
Reproducible in staging?: y
Reproducible in production?: y
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: @dylanexpensify
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1703354936560399?thread_ts=1703016500.538419&cid=C049HHMV9SM
Action Performed:
Clear After
>Custom
>Date
Expected Result:
It should keep the date you select and save.
Actual Result:
Didn't keep my selected date, and I was unable to save the status
Workaround:
unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Recording.354.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: