Skip to content
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

Clarify timecard validation errors #929

Merged
merged 2 commits into from
Nov 27, 2019
Merged

Clarify timecard validation errors #929

merged 2 commits into from
Nov 27, 2019

Conversation

Jkrzy
Copy link
Contributor

@Jkrzy Jkrzy commented Nov 25, 2019

Description

Working towards resolution of #885, we're making incremental improvements to the error messaging on timecard submission.

Specifically:

  • Project names are now included in each error message
  • Each error message links within-page to the referenced project
  • Removed repeated rendering of messages/errors at bottom of the page

Additional information

Screen Shot 2019-11-25 at 2 42 54 PM

@codecov-io
Copy link

Codecov Report

Merging #929 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #929   +/-   ##
=======================================
  Coverage   91.46%   91.46%           
=======================================
  Files          39       39           
  Lines        1688     1688           
=======================================
  Hits         1544     1544           
  Misses        144      144
Impacted Files Coverage Δ
hours/forms.py 94.61% <0%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7caad03...c328414. Read the comment docs.

Provide project name when an error
is reported for a timecard entry. Also,
link directly from the error to the referenced
project.

Remove duplicated id values in rendered
forms.

Remove repeated display of errors/messages at bottom
of form.
@Jkrzy
Copy link
Contributor Author

Jkrzy commented Nov 26, 2019

Very lightly reworked a bit of the javascript to remove the ID attr's which were being duplicated in the template for loops.

Copy link
Contributor

@tbaxter-18f tbaxter-18f left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Definitely looks like an improvement. Probably more we can do, but this is a really useful iteration.

@tbaxter-18f tbaxter-18f merged commit 5eac37d into master Nov 27, 2019
@Jkrzy Jkrzy deleted the better-errors branch November 27, 2019 14:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants