diff --git a/extensions/apps/extensions/src/components/pages/extension-edit-page/contributors-page.tsx b/extensions/apps/extensions/src/components/pages/extension-edit-page/contributors-page.tsx index 6d1a92c54c..8a6b1159e4 100644 --- a/extensions/apps/extensions/src/components/pages/extension-edit-page/contributors-page.tsx +++ b/extensions/apps/extensions/src/components/pages/extension-edit-page/contributors-page.tsx @@ -119,7 +119,7 @@ export const ExtensionEditContributorsPage: React.FC { if (addedContributors?.length < MAX_CONTRIBUTORS) { setAddedContributors(prev => { - const res = Array.from(new Set([...prev, profile])); + const res = Array.from(new Set([profile, ...prev])); return res; }); setSearchValue(''); diff --git a/libs/design-system-components/src/components/ExtensionEditStep2Form/index.tsx b/libs/design-system-components/src/components/ExtensionEditStep2Form/index.tsx index 99e4755189..c7fca9feec 100644 --- a/libs/design-system-components/src/components/ExtensionEditStep2Form/index.tsx +++ b/libs/design-system-components/src/components/ExtensionEditStep2Form/index.tsx @@ -131,6 +131,7 @@ const ExtensionEditStep2Form: React.FC = props => { status={error?.message ? 'error' : null} inputRef={ref} type="multiline" + required={true} /> )} defaultValue={defaultValues.description} diff --git a/libs/design-system-components/src/components/ExtensionEditStep3Form/index.tsx b/libs/design-system-components/src/components/ExtensionEditStep3Form/index.tsx index b6080e86d9..8f54477982 100644 --- a/libs/design-system-components/src/components/ExtensionEditStep3Form/index.tsx +++ b/libs/design-system-components/src/components/ExtensionEditStep3Form/index.tsx @@ -21,6 +21,7 @@ import { ExclamationTriangleIcon } from '@heroicons/react/24/solid'; import { PlusIcon } from '@heroicons/react/24/outline'; import { ApolloError } from '@apollo/client'; import ErrorLoader from '@akashaorg/design-system-core/lib/components/ErrorLoader'; +import Label from '@akashaorg/design-system-core/lib/components/Label'; const MAX_TAGS = 4; @@ -271,7 +272,7 @@ const ExtensionEditStep3Form: React.FC = props => { - {tagsLabel} + {tagsDescriptionLabel} @@ -302,6 +303,7 @@ const ExtensionEditStep3Form: React.FC = props => { } }} disabled={maxTagsSelected} + required={true} multiple /> ); diff --git a/libs/design-system-core/src/components/AutoComplete/index.tsx b/libs/design-system-core/src/components/AutoComplete/index.tsx index 4408e463ca..9e74b956d1 100644 --- a/libs/design-system-core/src/components/AutoComplete/index.tsx +++ b/libs/design-system-core/src/components/AutoComplete/index.tsx @@ -15,6 +15,7 @@ export type AutoCompleteProps = { options?: string[]; placeholder?: InputProps['placeholder']; disabled?: InputProps['disabled']; + required?: boolean; value?: string; customStyle?: string; multiple?: boolean; @@ -48,6 +49,7 @@ const AutoComplete: React.FC = props => { options, placeholder, disabled, + required, customStyle = '', value, multiple, @@ -145,6 +147,7 @@ const AutoComplete: React.FC = props => { customStyle="rounded-3xl" radius={100} disabled={disabled} + required={required} /> {showSuggestions && suggestions.length > 0 && (