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

Links & Docs to BoK on VC creation #7365

Merged
merged 6 commits into from
Dec 30, 2024
Merged
Show file tree
Hide file tree
Changes from 4 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
9 changes: 9 additions & 0 deletions src/core/i18n/en/translation.en.json
Original file line number Diff line number Diff line change
Expand Up @@ -3145,6 +3145,15 @@
"initialPosts": "Initial Posts",
"delete": "Delete post"
},
"documents": {
"title": "Or add documents <tooltip><icon /></tooltip> to your Knowledge Subspace.",
"tooltip": "Supported file formats: Text on websites, .pdf, .doc(x), .xls(x). Maximum file size: 20mb",
"referenceTitle": "Reference Title",
"referenceUrl": "Url",
"addAnother": "Add another document",
"remove": "Remove document",
"initialDocuments": "Initial Links and Documents"
},
"submitDisabled": "Add at least one Post to continue"
},
"externalAI": {
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
import { useState } from 'react';
import { useTranslation } from 'react-i18next';
import { DialogContent } from '@mui/material';
import DialogHeader from '@/core/ui/dialog/DialogHeader';
import Gutters from '@/core/ui/grid/Gutters';
import { Caption } from '@/core/ui/typography';
import { gutters } from '@/core/ui/grid/utils';
import { AddContentForm } from './AddContentForm';
import { AddContentProps } from './AddContentProps';
import CancelDialog from '../CancelDialog';
import { StorageConfigContextProvider } from '@/domain/storage/StorageBucket/StorageConfigContext';

const AddContent = ({ onClose, onCreateVC, spaceId }: AddContentProps) => {
const { t } = useTranslation();
const [dialogOpen, setDialogOpen] = useState(false);

const onCancel = () => {
setDialogOpen(true);
};

return (
<StorageConfigContextProvider locationType="journey" spaceId={spaceId}>
<DialogHeader onClose={onCancel}>{t('createVirtualContributorWizard.addContent.title')}</DialogHeader>
<DialogContent>
<Gutters disablePadding paddingBottom={gutters(2)}>
<Caption>{t('createVirtualContributorWizard.addContent.description')}</Caption>
<Caption fontWeight="bold">{t('createVirtualContributorWizard.addContent.descriptionBold')}</Caption>
<AddContentForm onSubmit={onCreateVC} onCancel={onCancel} />
</Gutters>
</DialogContent>
<CancelDialog open={dialogOpen} onClose={() => setDialogOpen(false)} onConfirm={onClose} />
</StorageConfigContextProvider>
);
};

export default AddContent;
Loading