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

feat: Add PasswordInput and PasswordHiddenText components #75

Merged
merged 2 commits into from
Dec 9, 2024

Conversation

nicolethoen
Copy link
Contributor

@nicolethoen nicolethoen commented Nov 26, 2024

@patternfly-build
Copy link

patternfly-build commented Nov 26, 2024

Copy link
Collaborator

@adamviktora adamviktora left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, only a few nits


import { PasswordInput, PasswordHiddenText } from "@patternfly/ai-infra-ui-components";

Note: this component documents the API and enhances the [existing PasswordInput](https://github.com/opendatahub-io/odh-dashboard/blob/main/frontend/src/components/PasswordInput.tsx) component and [existing PasswordHiddenText](https://github.com/opendatahub-io/odh-dashboard/blob/main/frontend/src/components/PasswordHiddenText.tsx) component from odh-dashboard. It can be imported from [@patternfly/ai-infra-ui-components](https://www.npmjs.com/package/@patternfly/AI-infra-ui-components). Alternatively, it can be used within the odh-dashboard via the import: `~/components/PasswordInput`.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe rewrite this to these components document ... and add the PasswordHiddenText import '~/components/PasswordHiddenText' too.


return (
<Flex
spaceItems={{ default: 'spaceItemsNone' }}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can this be spaceItemsXs? I think with a little space between the password and the button (especially when it is hovered or clicked) it would look better

@jgiardino
Copy link
Collaborator

LGTM

@nicolethoen nicolethoen merged commit ff8f672 into main Dec 9, 2024
5 checks passed
Copy link

github-actions bot commented Dec 9, 2024

🎉 This PR is included in version 1.4.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

PasswordInput - migrate from ODH and document API PasswordHiddenText - migrate from ODH and document API
4 participants