diff --git a/apps/admin/src/i18n/packs/i18n-lang-en.ts b/apps/admin/src/i18n/packs/i18n-lang-en.ts index c2217ccd..bdf9c49b 100644 --- a/apps/admin/src/i18n/packs/i18n-lang-en.ts +++ b/apps/admin/src/i18n/packs/i18n-lang-en.ts @@ -127,6 +127,7 @@ export const I18N_PACK_EN = deepmerge(I18N_FORWARDED_EN_PACK, { description: { label: 'Description', placeholder: 'Enter project description', + generated: 'Generated by AI', }, organization: { label: 'Organization', diff --git a/apps/admin/src/i18n/packs/i18n-lang-pl.ts b/apps/admin/src/i18n/packs/i18n-lang-pl.ts index 3935b266..676ef5fe 100644 --- a/apps/admin/src/i18n/packs/i18n-lang-pl.ts +++ b/apps/admin/src/i18n/packs/i18n-lang-pl.ts @@ -129,6 +129,7 @@ export const I18N_PACK_PL: I18nLangPack = deepmerge(I18N_FORWARDED_PL_PACK, { description: { label: 'Opis', placeholder: 'Wpisz opis projektu', + generated: 'Wygenerowany przez AI', }, organization: { label: 'Wybierz organizacjÄ™', diff --git a/apps/admin/src/modules/projects/form/shared/project-shared-form-fields.tsx b/apps/admin/src/modules/projects/form/shared/project-shared-form-fields.tsx index bb03f63b..2f790251 100644 --- a/apps/admin/src/modules/projects/form/shared/project-shared-form-fields.tsx +++ b/apps/admin/src/modules/projects/form/shared/project-shared-form-fields.tsx @@ -1,15 +1,15 @@ import { controlled, useFormValidatorMessages, type ValidationErrorsListProps } from '@under-control/forms'; -import type { SdkProjectT } from '@llm/sdk'; +import type { SdkUpdateProjectInputT } from '@llm/sdk'; -import { FormField, Input, TextArea } from '@llm/ui'; +import { Checkbox, FormField, Input, TextArea } from '@llm/ui'; import { useI18n } from '~/i18n'; -type Value = Pick; +type Value = Pick; type Props = ValidationErrorsListProps; -export const ProjectSharedFormFields = controlled(({ errors, control: { bind } }) => { +export const ProjectSharedFormFields = controlled(({ errors, control: { bind, value } }) => { const t = useI18n().pack.modules.projects.form; const validation = useFormValidatorMessages({ errors }); @@ -31,13 +31,33 @@ export const ProjectSharedFormFields = controlled(({ errors, contr