Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -88,15 +88,22 @@ const CredentialsSection: React.FC<CredentialsSectionProps> = ({
) : undefined;

const organizationFormGroup = (
<ThemeAwareFormGroupWrapper
label={FORM_LABELS.ORGANIZATION}
fieldId="organization"
isRequired
descriptionTextNode={organizationDescriptionTxtNode}
helperTextNode={organizationHelperTxtNode}
>
{organizationInput}
</ThemeAwareFormGroupWrapper>
<>
<ThemeAwareFormGroupWrapper
label={FORM_LABELS.ORGANIZATION}
fieldId="organization"
isRequired
descriptionTextNode={organizationDescriptionTxtNode}
helperTextNode={organizationHelperTxtNode}
>
{organizationInput}
</ThemeAwareFormGroupWrapper>
<FormHelperText>
<HelperText>
<HelperTextItem>{HELPER_TEXT.ORGANIZATION_SLUG}</HelperTextItem>
</HelperText>
</FormHelperText>
</>
Comment on lines +92 to +106
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This PR will conflict with #2526 and will break the logic added there

);

const accessTokenInput = (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ export const DESCRIPTION_TEXT = {
export const HELPER_TEXT = {
ACCESS_TOKEN: 'Enter your Hugging Face access token.',
YAML: 'Upload or paste a YAML string.',
ORGANIZATION_SLUG:
'Hugging Face organization’s name is case-sensitive and should match the organization’s URL, which may differ from the displayed name. Use the organization’s URL slug found in the URL (e.g., Input: meta-llama from huggingface.co/meta-llama).',
Comment on lines +50 to +51
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This will have the same problem from the previous comment, it should wait for the merge of #2526 and add following the const and logic there

} as const;

export const PLACEHOLDERS = {
Expand Down
Loading