-
Notifications
You must be signed in to change notification settings - Fork 51
Conversation
fullMessages: false, | ||
}; | ||
|
||
validatejs.validators.optional = (value, options) => { |
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.
If we move validation logic out of the component, we can unit test it & also maintain consistency in how we validate
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.
Converted the NameEntry
component.
Couldn't do it for PasswordEntry
because the validation fields there depend on each other and our current validations.ts
wrapper doesn't support that.
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.
I added some small comments in line. Will click through the flow now.
If you have time in this PR, you could change the px
to rem
#303
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.
@@ -0,0 +1,127 @@ | |||
<script> |
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.
Note: adding this component only because Svelte didn't allow me to make the input type of <Input.Text>
variable:
[svelte invalid-type] [E] 'type' attribute cannot be dynamic if input uses two-way binding
.
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.
Really like the structure and readability of the onboarding screen.
@@ -0,0 +1,127 @@ | |||
<script> |
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.
<script> | |
<script lang="ts"> |
Now that our tooling works for tsed components lets always use it for new ones.
@@ -0,0 +1,116 @@ | |||
<script> |
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.
<script> | |
<script lang="ts"> |
@@ -0,0 +1,172 @@ | |||
<script> |
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.
<script> | |
<script lang="ts"> |
@@ -0,0 +1,59 @@ | |||
<script> |
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.
<script> | |
<script lang="ts"> |
@@ -0,0 +1,53 @@ | |||
<script> |
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.
<script> | |
<script lang="ts"> |
xla: I wish I could, but that would mean I'd have to convert all the components that we use in those screens to TS as well. We should tackle that in a separate PR. |
fullMessages: false, | ||
}; | ||
$: beginValidation && validationStore.validate(handle); | ||
$: allowNext = (handle && validationPasses()) || !validationStarted(); |
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.
Why is validationStarted
needed? If no handle is provided, it shouldn't allowNext
and if one is provided, but validationPasses
returns false
it should not allowNext
, ie if the validationStore.status
is anything other than ValidationStatus.Success
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.
If we don't have that check, then the button stays disabled forever.
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.
hm ok, I also couldn't figure it out. Seems repetitive somehow
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.
📮 🚧 ⛺️ 🚿
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.
⭐
Note: I couldn't get the outtro animation working, it's breaking routing and I don't know how to fix it at the moment.
Closes: #657 #623.