-
Notifications
You must be signed in to change notification settings - Fork 44
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
Mod submitter date update #2264
Conversation
6ba7269
to
831dc35
Compare
bb37175
to
ad71c16
Compare
85ee49c
to
534e59d
Compare
@lpsinger Okay with the latest rebase it is working |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2264 +/- ##
========================================
+ Coverage 5.28% 5.30% +0.02%
========================================
Files 157 157
Lines 3863 3883 +20
Branches 405 413 +8
========================================
+ Hits 204 206 +2
- Misses 3658 3676 +18
Partials 1 1 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- When the date, time, or submitter fields receive focus, the focus border should be on the input group, not the text field itself, so that it surrounds both the text field and the label. Compare with focus behavior for the subject field.
- Implement color-coded validation borders like we have for the other fields.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We generally show times in 24 hour format on this site. Would you please set the time picker to 24 hour mode?
I don't see that as a supported feature of this component, but I think it would be a good update later, along with the name fix for the TimePicker we were talking about above |
Still working on resolving the input focus @lpsinger This is proving more challenging than I imagined. The date and time picker inputs use the input group elements and don't really play well with the input prefix component by default. I think this can be fixed in the future, but shouldn't hold up the rest of this PR |
Would you please submit an issue upstream and add a FIXME comment? 24-hour time formats are much more useful in astronomy. |
Let me take one quick swing at this and see if I can figure it out. Would you please rebase your branch from main? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add a validation border around the From field.
0976944
to
fab6ff4
Compare
Updates the moderation form to allow edits of createdOn and submitter Adds some validations Include HH:MM in time selection UTC, Grid, and fix button height refactor to reuse TimeAgo, tidy up date time checks Date edit refactoring rename fields for consistency, add hidden field to fix time not getting set correctly Remove date replacement, still need to test against latest update Remove FIXME, reorder of submitter check for consistency, reorder createdOn and submitter to minimize changes Update app/routes/circulars._archive._index/route.tsx Co-authored-by: Leo Singer <[email protected]> Style updates for consistency, spacing, other PR feedback implementations refine the cirteria for error or success class on date string
fab6ff4
to
56a7695
Compare
Done! |
…alidation function
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would you please make my suggestions from dakota002#314 about only putting the date and time picker in a Grid and not the entire component?
Woops, I missed that one, merged in now |
Updates the moderation form to allow edits of createdOn and submitter Adds some validations Include HH:MM in time selection UTC, Grid, and fix button height refactor to reuse TimeAgo, tidy up date time checks Date edit refactoring rename fields for consistency, add hidden field to fix time not getting set correctly Remove date replacement, still need to test against latest update Remove FIXME, reorder of submitter check for consistency, reorder createdOn and submitter to minimize changes Clean up grid stuff
Clean up grid stuff
I get an HTTP 400 error when I submit the correction request form if I am not a moderator. Please fix. |
Description
Updates the correction request edit form to allow for changes to Submission Date (createdOn) and Submitter
Submission Date is only allowed to be edited if it does not already exist
Related Issue(s)
Resolves #2237
Testing