Skip to content
This repository was archived by the owner on Jul 9, 2025. It is now read-only.
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 @@ -10,13 +10,14 @@ import formatMessage from 'format-message';
import { ActionButton, DefaultButton } from 'office-ui-fabric-react/lib/Button';
import { useBoolean } from '@uifabric/react-hooks';
import Dialog, { DialogFooter } from 'office-ui-fabric-react/lib/Dialog';
import { SharedColors } from '@uifabric/fluent-theme';
import { FontWeights } from 'office-ui-fabric-react/lib/Styling';

import { dispatcherState, settingsState, publishTypesState } from '../../recoilModel';
import { AuthDialog } from '../../components/Auth/AuthDialog';
import { isShowAuthDialog } from '../../utils/auth';

import { PublishProfileDialog } from './create-publish-profile/PublishProfileDialog';
import { actionButton } from './styles';

// -------------------- CreatePublishProfileDialog -------------------- //

Expand All @@ -25,6 +26,17 @@ type CreatePublishProfileDialogProps = {
onUpdateIsCreateProfileFromSkill: (isCreateProfileFromSkill: boolean) => void;
};

// -------------------- Style -------------------- //
const actionButton = {
root: {
fontSize: 12,
fontWeight: FontWeights.regular,
color: SharedColors.cyanBlue10,
paddingLeft: 0,
marginLeft: 5,
},
};

export const CreatePublishProfileDialog: React.FC<CreatePublishProfileDialogProps> = (props) => {
const { projectId, onUpdateIsCreateProfileFromSkill } = props;
const { publishTargets } = useRecoilValue(settingsState(projectId));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -287,8 +287,7 @@ export const editorSteps: { [key in ManifestEditorSteps]: EditorStep } = {
{
primary: true,
text: () => formatMessage('Next'),
onClick: ({ onNext, generateManifest }) => () => {
// generateManifest();
onClick: ({ onNext }) => () => {
onNext();
},
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { DefaultButton, PrimaryButton } from 'office-ui-fabric-react/lib/Button'
import { JSONSchema7 } from '@bfc/extension-client';
import { Link } from 'office-ui-fabric-react/lib/components/Link';
import { useRecoilValue } from 'recoil';
import { SkillManifestFile } from '@bfc/shared';
import { PublishTarget, SkillManifestFile } from '@bfc/shared';
import { navigate } from '@reach/router';
import { isUsingAdaptiveRuntime } from '@bfc/shared';
import cloneDeep from 'lodash/cloneDeep';
Expand Down Expand Up @@ -141,6 +141,7 @@ const ExportSkillModal: React.FC<ExportSkillModalProps> = ({ onSubmit, onDismiss
);
});
if (isCreateProfileFromSkill && currentTarget) {
handleGenerateManifest(currentTarget);
const skillPublishPenddingNotificationCard = getSkillPendingNotificationCardProps();
publishNotificationRef.current = createNotification(skillPublishPenddingNotificationCard);
addNotification(publishNotificationRef.current);
Expand Down Expand Up @@ -188,7 +189,7 @@ const ExportSkillModal: React.FC<ExportSkillModalProps> = ({ onSubmit, onDismiss
[mergedSettings, projectId, isAdaptive, skillConfiguration, runtimeSettings]
);

const handleGenerateManifest = () => {
const handleGenerateManifest = (currentTarget?: PublishTarget) => {
const manifest = generateSkillManifest(
schema,
skillManifest,
Expand All @@ -198,7 +199,7 @@ const ExportSkillModal: React.FC<ExportSkillModalProps> = ({ onSubmit, onDismiss
qnaFiles,
selectedTriggers,
selectedDialogs,
currentPublishTarget,
currentTarget || currentPublishTarget,
projectId
);
setSkillManifest(manifest);
Expand Down