Skip to content
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

web: Indicate when caps-lock is active during password input. #12733

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

GirlBossRush
Copy link

Details

Hey team! 👋

I had fun implementing the caps-lock detection feature! Since we rely on keystroke events to determine the caps-lock state, the warning stays hidden until we get that first user input.

This is my first time contributing to the LitHTML parts of our codebase, and I'm excited to get your thoughts. I was able to bring the InputPassword component up to speed with some of authentik's more recent component design patterns, such as leaning on the Lit's ref directive to manage event listeners.

I'd love feedback on my approach to both the LitHTML patterns and authentik's existing conventions.

Looking forward to your review!

Screenshot 2025-01-18 at 02 43 03

Checklist

  • Local tests pass (ak test authentik/)
  • The code has been formatted (make lint-fix)

If an API change has been made

  • The API schema has been updated (make gen-build)

If changes to the frontend have been made

  • The code has been formatted (make web)

If applicable

  • The documentation has been updated
  • The documentation has been formatted (make website)

@GirlBossRush GirlBossRush requested a review from a team as a code owner January 18, 2025 08:21
Copy link

netlify bot commented Jan 18, 2025

Deploy Preview for authentik-docs canceled.

Name Link
🔨 Latest commit 3d7a451
🔍 Latest deploy log https://app.netlify.com/sites/authentik-docs/deploys/678b6814e3013d000837af4e

Copy link

netlify bot commented Jan 18, 2025

Deploy Preview for authentik-storybook ready!

Name Link
🔨 Latest commit 3d7a451
🔍 Latest deploy log https://app.netlify.com/sites/authentik-storybook/deploys/678b6814a5f94e0008f114d0
😎 Deploy Preview https://deploy-preview-12733--authentik-storybook.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Determining the state of the caps-lock key can be tricky as we're
dependant on a user-provided input to set a value. Thus, our initial
state defaults to not display any warning until the first keystroke.
@GirlBossRush GirlBossRush force-pushed the 51-caps-lock-indicator branch from 2588d77 to 3d7a451 Compare January 18, 2025 08:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant