-
Notifications
You must be signed in to change notification settings - Fork 0
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
fix: moves auro library to dependencies in package.json #18 #19
Conversation
Reviewer's Guide by SourceryThis pull request moves the Auro Library from Updated class diagram for AuroFormValidationclassDiagram
class AuroFormValidation {
+AuroLibraryRuntimeUtils runtimeUtils
+validate(elem: object, force: boolean): void
+getAuroInputs(elem: object): void
+getErrorMessage(elem: object): void
}
class AuroLibraryRuntimeUtils
AuroFormValidation --> AuroLibraryRuntimeUtils
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
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.
Hey @chrisfalaska - I've reviewed your changes - here's some feedback:
Overall Comments:
- The changes improve code quality and error handling. However, changing to a default export and modifying the event naming convention could potentially break existing code. Please ensure these changes are documented and that users are informed about how to update their imports and event listeners.
- The addition of TypeScript configurations and ESLint rules is a positive step towards improving code consistency and catching potential issues early.
Here's what I looked at during the review
- 🟡 General issues: 1 issue found
- 🟢 Security: all looks good
- 🟢 Testing: all looks good
- 🟢 Complexity: all looks good
- 🟢 Documentation: all looks good
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
* @returns {void} | ||
*/ | ||
validate(elem) { | ||
validate(elem, force) { |
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.
suggestion: Document the usage of the new 'force' parameter
The addition of the 'force' parameter provides more control over validation timing. Consider adding a brief comment or updating the method's JSDoc to explain when and how to use this parameter.
/**
* Validates the input element(s).
* @param {HTMLElement} elem - The element to validate.
* @param {boolean} [force=false] - If true, forces validation regardless of current state.
* @returns {void}
*/
validate(elem, force = false) {
Alaska Airlines Pull Request
Moves Auro Library into
dependencies
fromdevDependencies
to avoid installation issues, as originally reported in #573.Resolves: #18
Summary:
dependencies
withinpackage.json
package.lock
build
andtest
ran successfullyType of change:
Please delete options that are not relevant.
Checklist:
By submitting this Pull Request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
Pull Requests will be evaluated by their quality of update and whether it is consistent with the goals and values of this project. Any submission is to be considered a conversation between the submitter and the maintainers of this project and may require changes to your submission.
Thank you for your submission!
-- Auro Design System Team
Summary by Sourcery
Fix installation issues by moving Auro Library to dependencies in package.json. Refactor AuroFormValidation class to enhance validation logic and error message handling. Update TypeScript configuration for ES6 targeting and Node module resolution. Regenerate package-lock.json to reflect dependency changes.
Bug Fixes:
Enhancements:
Build:
Chores: