-
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
Auro Form PR #1 ( #215
Open
DukeFerdinand
wants to merge
2
commits into
dhook/auro-form
Choose a base branch
from
dhook/handle-form-element-events
base: dhook/auro-form
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Auro Form PR #1 ( #215
+1,266
−116
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This listens to, and attaches event listeners for, the following: - input - auroFormElement-validated - button[type=submit] clicks It also adds a datepicker to the example form.
Reviewer's Guide by SourceryThis PR introduces new features to the auro-form component, adds support for new form elements, and updates the demo page. Sequence diagram for form validation and submissionsequenceDiagram
participant User
participant Form as AuroForm
participant Input as Form Elements
User->>Input: Enters data
Input->>Form: input event
Note over Form: Updates _formState
Input->>Form: auroFormElement-validated event
Note over Form: Updates validity state
User->>Form: Clicks submit button
Form->>Form: Check validity
Form->>Form: Collect form values
Form-->>User: Submit form data
Class diagram for updated AuroForm componentclassDiagram
class AuroForm {
-_formState: FormState
+value: Record~string, any~
+validity: string
+static formElementTags: string[]
+static submitElementTags: string[]
+isFormElement(tagName: string): boolean
+isSubmitElement(tagName: string): boolean
+getSubmitFunction(): function
+onSlotChange(event: any): void
}
note for AuroForm "Added support for datepicker,
checkbox-group, and button elements"
class FormState {
value: any
validity: string
required: boolean
}
File-Level Changes
Assessment against linked issues
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 @DukeFerdinand - I've reviewed your changes - here's some feedback:
Overall Comments:
- Consider removing development artifacts like console.log statements and commented out code (e.g. isInitialState) before merging to production
- The error handling in onSlotChange() silently catches and ignores errors. Consider being more specific about which errors to catch and how to handle them.
Here's what I looked at during the review
- 🟡 General issues: 3 issues 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.
This was
linked to
issues
Jan 15, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
To view the working form I had in the demo
I created a
working.html
page for testing a real form. Note: I specifically did not useapiExamples/
since the build times make it not worth the productivity loss. Use this URL:Alaska Airlines Pull Request
This listens to, and attaches event listeners for, the following:
It also adds a datepicker to the example form.
Closes #188
Closes #191
Closes #190
Before Submitting this pull request:
Development
sectionnote: all pull requests require at least one linked ticket
Ready For Review
, all ticket's linked underDevelopment
must have their status changed toReady For Review
as wellBy submitting this Pull Request, I confirm that my contribution is made under the terms of the Apache 2.0 license and I have performed a self-review of my own update.
Summary by Sourcery
Add support for date pickers, checkboxes, and buttons to the form.
New Features:
Tests: