-
Notifications
You must be signed in to change notification settings - Fork 172
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: remove tooltip when pasword is very strong #556
Conversation
WalkthroughThe changes in the Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant PasswordInput
participant Tooltip
User->>PasswordInput: Enters password
PasswordInput->>PasswordInput: Calculate strength
alt Strength is "very strong"
PasswordInput-->>Tooltip: Do not show tooltip
else Strength is "strong"
PasswordInput-->>Tooltip: Show help text
else Strength is "weak" or "medium"
PasswordInput-->>Tooltip: Show help text
end
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
💼 Build Files |
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.
Actionable comments posted: 0
🧹 Outside diff range and nitpick comments (1)
packages/extension/src/ui/action/components/password-input/components/password-input-strength.vue (1)
71-73
: Consider improving tooltip message for strong passwordsThe current tooltip shows "Your password would be cracked" for all strength levels, including strong passwords. This message might be confusing for users who have created strong passwords, as it could imply vulnerability when the password is actually secure.
Consider adjusting the message for strong passwords to be more positive, for example:
<div v-if="isTooltip" class="password-input-strength__help-tooltip"> - <p>Your password would be cracked</p> + <p>{{ strength === PasswordStrength.strong ? 'Your password is secure and would take' : 'Your password would be cracked' }}</p> <h4 v-if="strength == PasswordStrength.strong" class="strong"> {{ toolTipInfo }} </h4>
📜 Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
📒 Files selected for processing (1)
packages/extension/src/ui/action/components/password-input/components/password-input-strength.vue
(2 hunks)
🔇 Additional comments (1)
packages/extension/src/ui/action/components/password-input/components/password-input-strength.vue (1)
54-54
: LGTM: Help link visibility logic is correct
The updated condition properly implements the requirement to hide the tooltip when the password is very strong while maintaining visibility for other strength levels.
Summary by CodeRabbit
New Features
Bug Fixes