-
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
Help user to choose a valid password in the reset password input #819
Merged
Steffengreiner
merged 15 commits into
development
from
feature/dm-703-overhaul-password-reset-functionality
Sep 30, 2024
Merged
Changes from 4 commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
decd451
Overhaul Reset Password Functionality
Steffengreiner 056c0a3
Merge branch 'development' into feature/dm-703-overhaul-password-rese…
Steffengreiner 70a9fe7
Merge branch 'development' into feature/dm-703-overhaul-password-rese…
KochTobi d267812
Merge branch 'development' into feature/dm-703-overhaul-password-rese…
KochTobi 32fb1b6
Merge branch 'development' into feature/dm-703-overhaul-password-rese…
KochTobi 58cf266
Harmonize password error message if a too short password is provided …
Steffengreiner f7b32da
Update Javadocs to allow for more clear distinguish between new compo…
Steffengreiner c7e4e10
Update JD For cardlayout
Steffengreiner 423a213
Update password reset error message if a password was too short durin…
Steffengreiner 667ae24
Add helper text to password field during user registration
Steffengreiner e186a94
Address code review
Steffengreiner dbdc8a3
Remove CardLayout.java and copy paste css class name
Steffengreiner 33efbb2
Merge branch 'development' into feature/dm-703-overhaul-password-rese…
Steffengreiner 17034a1
Move JD description
Steffengreiner 1d6f08e
Merge branch 'development' into feature/dm-703-overhaul-password-rese…
KochTobi File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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 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
23 changes: 23 additions & 0 deletions
23
user-interface/src/main/java/life/qbic/datamanager/views/general/CardLayout.java
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package life.qbic.datamanager.views.general; | ||
|
||
import com.vaadin.flow.component.Component; | ||
import com.vaadin.flow.component.html.Div; | ||
|
||
/** | ||
* Card Layout | ||
* <p> | ||
* Card styled Layout employed within all {@link Main} in the | ||
* {@link life.qbic.datamanager.views.login.LoginLayout} | ||
*/ | ||
public class CardLayout extends Div { | ||
|
||
/** | ||
* Creates a new div with the given child components. | ||
* | ||
* @param components the child components | ||
*/ | ||
public CardLayout(Component... components) { | ||
super(components); | ||
addClassName("card-layout"); | ||
} | ||
} |
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
182 changes: 0 additions & 182 deletions
182
user-interface/src/main/java/life/qbic/datamanager/views/layouts/BoxLayout.java
This file was deleted.
Oops, something went wrong.
28 changes: 0 additions & 28 deletions
28
...rface/src/main/java/life/qbic/datamanager/views/login/newpassword/NewPasswordHandler.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
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.
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.
What is a Card Layout? where is it used? How can it look. I am confused about this.
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 updated the JD for more clarity. In a nutshell we currently employ the same card-like style for all components during password reset, registration and login. To avoid having to copy paste the css over and over again, this DIV based component contains the style necessary to make it look like a hovering card containing the input fields.
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.
You do not need to copy paste anything but the css class name if I am not mistaken? I would vote in favor of composition over inheritance here. Components that extend card cannot extend anything else. If you want it to look like a card, why not only add the css class name. Shouldn't this be sufficient?
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.
Good point! For me it feels more like a feeling thing, we want to reuse the same styling for all the components in this context, so i'd like to have it as a general java class. But since it provides no functionality as of yet, we can also go for YAGNI and copy paste the css class. I adapted the PR accordingly and removed the cardlayout 🤔