-
Notifications
You must be signed in to change notification settings - Fork 13
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
Build(deps): Bump phoenix_html from 3.3.4 to 4.1.1 #387
Conversation
Dependabot tried to update this pull request, but something went wrong. We're looking into it, but in the meantime you can retry the update by commenting |
1 similar comment
Dependabot tried to update this pull request, but something went wrong. We're looking into it, but in the meantime you can retry the update by commenting |
3baf70e
to
ea7feec
Compare
9e32f7d
to
68ae39c
Compare
The visual check mark is now present basically in all inputs since we switched to components, e.g. in the admin page or idea forms (creating a new idea). I would prefer to have it initially without the green check mark, especially as it's sometimes wrong and you have to provide data before it's valid (so the green check is misleading). But its also not critical, so we can make a separate issue to of it ? |
Separate issue sounds good. It seems like it's always initially there to be more "positive" I guess as it always defaults the errors to empty if the input wasn't used before: def input(%{field: %Phoenix.HTML.FormField{} = field} = assigns) do
errors = if Phoenix.Component.used_input?(field), do: field.errors, else: []
# the other stuff
end I guess we could easily instead pass on a value like "unused" for which we'd neither display the |
Bumps [phoenix_html](https://github.com/phoenixframework/phoenix_html) from 3.3.4 to 4.1.1. - [Changelog](https://github.com/phoenixframework/phoenix_html/blob/main/CHANGELOG.md) - [Commits](phoenixframework/phoenix_html@v3.3.4...v4.1.1) --- updated-dependencies: - dependency-name: phoenix_html dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]>
Took me way too long to find `form_group_wrapper={false}`.
68ae39c
to
8aba46e
Compare
Follow up issue: #407 |
Necessary Changes
Needed to replace the form
Visual changes
Thanks to the form component being happy to tell you it's valid/non valid there is an additional check mark now. Since it's also there when it's actually invalid we probably want to remove it... probably by creating an even separate component/option to hide the valid check mark.
Before:
Now:
Other changes
Added a
required
attribute which is the only real validation so that already happens client side, as error handling was also broken before and this seems nicer :)Todos
Original dependabot fun
Bumps phoenix_html from 3.3.4 to 4.1.1.
Changelog
Sourced from phoenix_html's changelog.
... (truncated)
Commits
2b222db
Release 4.1.130eee8f
Formatter640060c
Release 4.1.085c33de
Release 4.1.0adf1c38
Merge pull request #439 from phoenixframework/cm-form-action-changed323a65a
Update lib/phoenix_html/form.ex3b960be
Make josé happy304dfc3
Bump docsf7bd1f6
No need to track id5f6e91a
Consider form action and method changing as changedDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebase
will rebase this PR@dependabot recreate
will recreate this PR, overwriting any edits that have been made to it@dependabot merge
will merge this PR after your CI passes on it@dependabot squash and merge
will squash and merge this PR after your CI passes on it@dependabot cancel merge
will cancel a previously requested merge and block automerging@dependabot reopen
will reopen this PR if it is closed@dependabot close
will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot show <dependency name> ignore conditions
will show all of the ignore conditions of the specified dependency@dependabot ignore this major version
will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor version
will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependency
will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)