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

[INSPECT-340][FEATURE] - added scroll feature to validation #341

Merged
merged 2 commits into from
Dec 20, 2024

Conversation

PaulGarewal
Copy link
Contributor

@PaulGarewal PaulGarewal commented Dec 19, 2024

Pull Request Standards

  • The title of the PR is accurate
  • The title includes the type of change [HOTFIX, FEATURE, etc]
  • The PR title includes the ticket number in format of [INSPECT-###]
  • Documentation is updated to reflect change

Description

This PR includes the following proposed change(s):

  • Added emojis to validation errors
  • Created new alert for validation message in inspection
  • Srceen Capture of the Alert messages are below:
Simulator.Screen.Recording.-.iPad.10th.generation.-.2024-12-20.at.07.08.25.mp4

- added emojis to validation errors
- created new alert for validation message in inspection
@PaulGarewal PaulGarewal linked an issue Dec 19, 2024 that may be closed by this pull request
5 tasks
alertVC.modalTransitionStyle = .crossDissolve
alertVC.configure(title: title, message: message)
topVC.present(alertVC, animated: true)
}
Copy link
Contributor Author

@PaulGarewal PaulGarewal Dec 20, 2024

Choose a reason for hiding this comment

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

This is the function to render our inspection validation with the scroll ability

@@ -0,0 +1,95 @@
//
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Had to create a new class for this new alert message, rather than edit the existing class.

var message: String = ""
guard let model = self.model else { return message }
var counter = 1
var messages: [String] = []
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This file is general clean up and the adding of the emojis to the error messages

@@ -209,7 +209,7 @@ class WatercraftInspectionViewController: BaseViewController {
if canSubmit() {
self.navigationController?.popViewController(animated: true)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Another clean up and adding emojis

@PaulGarewal PaulGarewal requested a review from a team December 20, 2024 15:24
@PaulGarewal PaulGarewal self-assigned this Dec 20, 2024
@@ -145,3 +145,21 @@ extension UIViewController {
return alert
}
}

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This helps show alerts regardless of navigation stack (helped to display our alert box in each window)

@PaulGarewal PaulGarewal merged commit 4bb2464 into master Dec 20, 2024
3 checks passed
@PaulGarewal PaulGarewal deleted the 340-validation-readability branch December 20, 2024 17:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Enhance Readability Validation List in Inspections
2 participants