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

feat(cb2-8776): show error message not showing above field #1089

Merged
merged 5 commits into from
Jul 31, 2023

Conversation

Daniel-Searle
Copy link
Contributor

@Daniel-Searle Daniel-Searle commented Jul 26, 2023

Fix error message not showing above field

This PR is prevent submission when test record time is missing
CB2-8776

Checklist

  • Branch is rebased against the latest develop/common
  • Code and UI has been tested manually after the additional changes
  • PR title includes the JIRA ticket number
  • Squashed commits contain the JIRA ticket number
  • Delete branch after merge

feat(cb2-8776): added access descriptor

feat(cb2-8776): changed date logic to be greater than -1

feat(cb2-8776): added ternary to convertToNumber logic and removed unused variable

feat(cb2-8776): prevent submission when time is not provided
kcarr-bjss
kcarr-bjss previously approved these changes Jul 26, 2023
@@ -29,8 +29,7 @@ export class DateValidators {

private static validateTime(time: string, label: string | undefined) {
const [hours, minutes] = time.split(':');

if (!hours || !minutes) {
if (hours === '00' || minutes == '00') {
Copy link
Contributor

Choose a reason for hiding this comment

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

what if the test is done at 00:00? That is a valid time no?

Copy link
Contributor

Choose a reason for hiding this comment

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

Is this not also implying you can't type 00 in the minutes box at all meaning all tests that are conducted on the hour will be invalid times?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@naathanbrown checked with PO's, they're happy to proceed with the 00:00 logic

@gjulien-bjss gjulien-bjss changed the title Feature/cb2-8776 feat(cb2-8776): show error message not showing above field Jul 28, 2023
kcarr-bjss
kcarr-bjss previously approved these changes Jul 31, 2023
@Daniel-Searle Daniel-Searle merged commit b528b28 into develop Jul 31, 2023
7 checks passed
@Daniel-Searle Daniel-Searle deleted the feature/cb2-8776 branch July 31, 2023 14:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants