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
Show all changes
34 commits
Select commit Hold shift + click to select a range
b181c1f
fix: add logo-clicking to tests (#3500)
beyackle Jun 26, 2020
6e59ef8
feat: support validate lg custom functions (#3273)
lei9444 Jun 29, 2020
895acc3
fix: inline editing LU mess up whole file (#3478)
zhixzhan Jun 29, 2020
239de8d
refactor: change term primary key to authoring key (#3516)
liweitian Jun 29, 2020
d70a316
fix: replace the endpoint to authoringEndpoint when publishing luis (…
lei9444 Jun 29, 2020
99240e9
propagate code editor settings to all editor surfaces (#3520)
a-b-r-o-w-n Jun 29, 2020
f6a58cc
run coverage on all source files (#3522)
a-b-r-o-w-n Jun 29, 2020
b4ad7b0
feat: add loading indicator when waiting on form data or schema to lo…
a-b-r-o-w-n Jun 29, 2020
ab8203c
feat: allow inputting path (#3302)
liweitian Jun 30, 2020
2f655bb
chore: Index file renames part 1 (#3519)
GeoffCoxMSFT Jun 30, 2020
805c71b
test: increase 'adaptive-flow' test coverage to 77% (#3530)
yeze322 Jul 1, 2020
ab5dc06
update a test case (#3531)
liweitian Jul 1, 2020
4242f7c
fix lgWorker test failure (#3529)
zhixzhan Jul 1, 2020
6da544b
chore: adds webpack bundle analyzer (#3542)
hatpick Jul 1, 2020
1c4e41c
refactor: split some actions off setSettings (#3525)
beyackle Jul 2, 2020
a2dcf99
fix: Dialog validate throw error when delete an action (#3537)
lei9444 Jul 2, 2020
bc6ded0
fix: composer will crashed when add a new publish profile (#3550)
lei9444 Jul 2, 2020
9bd3ecd
replace function callbacks with arrows (#3545)
beyackle Jul 2, 2020
d9bd896
fix: location initialization (#3549)
liweitian Jul 6, 2020
f9128fb
chore: Index file renames part 2 (#3546)
GeoffCoxMSFT Jul 6, 2020
532c757
fix: deploy issue while zipping the folder (#3557)
lei9444 Jul 7, 2020
182f422
docs: archive old docs (#3572)
zxyanliu Jul 7, 2020
9104afd
chore(deps-dev): bump electron from 8.0.2 to 8.2.4 in /Composer (#3577)
dependabot[bot] Jul 7, 2020
98bff43
Bumped electron-builder config to correct electron version. (#3584)
tonyanziano Jul 7, 2020
67816d4
doc: add some missing details to plugin readme (#3585)
benbrown Jul 7, 2020
5b35393
handle schema parsing error better (#3586)
a-b-r-o-w-n Jul 8, 2020
b669443
fix nodemon `--inspect` error in lgWorker (#3590)
zhixzhan Jul 8, 2020
99b1246
feat: Disable / Enable actions (#3416)
yeze322 Jul 8, 2020
55975a4
release: 1.0.2 (#3595)
cwhitten Jul 8, 2020
8c03c1e
chore: Moved styles inline for components in client package. (#3598)
GeoffCoxMSFT Jul 8, 2020
e80f571
feat: grouping Toolbar buttons under the 'Edit' dropdown button (#3608)
yeze322 Jul 9, 2020
8208fbd
fix: Syntax error when creating a "Send a response" node (#3604)
zhixzhan Jul 9, 2020
def5db7
Merge from branch 'master'
GeoffCoxMSFT Jul 9, 2020
a6f4363
Merge from master with fixes
GeoffCoxMSFT Jul 9, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
6 changes: 1 addition & 5 deletions Composer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,7 @@
"build:server": "yarn workspace @bfc/server build",
"build:client": "yarn workspace @bfc/client build",
"build:tools": "yarn workspace @bfc/tools build:all",
"build:plugins": "yarn build:plugins:localpublish && yarn build:plugins:samples && yarn build:plugins:azurePublish && yarn build:plugins:azureFunctionsPublish",
"build:plugins:localpublish": "cd plugins/localPublish && yarn install && yarn build",
"build:plugins:samples": "cd plugins/samples && yarn install && yarn build",
"build:plugins:azurePublish": "cd plugins/azurePublish && yarn install && yarn build",
"build:plugins:azureFunctionsPublish": "cd plugins/azureFunctionsPublish && yarn install && yarn build",
"build:plugins": "cd plugins && yarn install && yarn build:all",
"start": "cross-env NODE_ENV=production PORT=3000 yarn start:server",
"startall": "yarn start",
"start:dev": "concurrently \"npm:start:client\" \"npm:start:server:dev\"",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import * as React from 'react';
import { fireEvent } from '@bfc/test-utils';

import { renderWithStore } from '../../../testUtils';
import { CreateOptions } from '../../../../src/components/CreationFlow/CreateOptions/CreateOptions';
import { CreateOptions } from '../../../../src/components/CreationFlow/CreateOptions';

describe('<CreateOptions/>', () => {
const handleDismissMock = jest.fn();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { fireEvent } from '@bfc/test-utils';

import { renderWithStore } from '../../../testUtils';
import { StorageFolder } from '../../../../src/store/types';
import DefineConversation from '../../../../src/components/CreationFlow/DefineConversation/DefineConversation';
import DefineConversation from '../../../../src/components/CreationFlow/DefineConversation';

describe('<DefineConversation/>', () => {
const onCurrentPathUpdateMock = jest.fn();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import * as React from 'react';
import { render, fireEvent } from '@bfc/test-utils';

import { StorageFolder } from '../../../../src/store/types';
import { FileSelector } from '../../../../src/components/CreationFlow/LocationBrowser/FileSelector';
import { FileSelector } from '../../../../src/components/CreationFlow/FileSelector';

describe('<FileSelector/>', () => {
const onFileChosen = jest.fn();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import * as React from 'react';
import { fireEvent } from '@bfc/test-utils';

import { StorageFolder } from '../../../../src/store/types';
import { LocationSelectContent } from '../../../../src/components/CreationFlow/LocationBrowser/LocationSelectContent';
import { LocationSelectContent } from '../../../../src/components/CreationFlow/LocationSelectContent';
import { renderWithStore } from '../../../testUtils';
import { CreationFlowStatus } from '../../../../src/constants';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,10 @@ import { createHistory, createMemorySource, LocationProvider } from '@reach/rout

import { StoreContext } from '../../../src/store';
import CreationFlow from '../../../src/components/CreationFlow/CreationFlow';
import { DialogWrapper } from '../../../src/components/DialogWrapper';
import { CreationFlowStatus } from '../../../src/constants';

jest.mock('../../../src/components/DialogWrapper/DialogWrapper', () => {
return {
DialogWrapper: jest.fn((props) => {
return props.children;
}),
};
});
jest.mock('../../../src/components/DialogWrapper');

describe('<CreationFlow/>', () => {
let storeContext, saveTemplateMock, locationMock, createProjectMock;
Expand All @@ -36,6 +31,10 @@ describe('<CreationFlow/>', () => {
}

beforeEach(() => {
(DialogWrapper as jest.Mock).mockImplementation((props) => {
return props.children;
});

saveTemplateMock = jest.fn();
locationMock = {};
storeContext = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
import React from 'react';
import { render } from '@bfc/test-utils';

import { DialogWrapper } from '../../../src/components/DialogWrapper/DialogWrapper';
import { DialogTypes } from '../../../src/components/DialogWrapper/styles';
import { DialogWrapper, DialogTypes } from '../../../src/components/DialogWrapper';

describe('<DialogWrapper />', () => {
const props = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

import React from 'react';

import { AppUpdater } from '../../src/components/AppUpdater/AppUpdater';
import { AppUpdater } from '../../src/components/AppUpdater';
import { AppUpdaterStatus } from '../../src/constants';
import { renderWithStore } from '../testUtils';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import * as React from 'react';
import { render } from '@bfc/test-utils';

import '../../src/components/Conversation/Conversation';
import '../../src/components/Conversation';

describe('<Conversation/>', () => {
it('should render the conversation', async () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import * as React from 'react';
import { render } from '@bfc/test-utils';

import { ErrorBoundary } from '../../src/components/ErrorBoundary/ErrorBoundary';
import { ErrorBoundary } from '../../src/components/ErrorBoundary';

const Store = React.createContext({
actions: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import * as React from 'react';
import { render } from '@bfc/test-utils';

import { Header } from '../../src/components/Header/Header';
import { Header } from '../../src/components/Header';

describe('<Header />', () => {
it('should render the header', () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { fireEvent, render } from '@bfc/test-utils';

import { RecentBotList } from '../../src/pages/home/RecentBotList';
import { ExampleList } from '../../src/pages/home/ExampleList';
import { ToolBar } from '../../src/components/ToolBar/ToolBar';
import { ToolBar } from '../../src/components/ToolBar';
describe('<Home/>', () => {
it('should dispatch onSelectionChanged event when clicked on a link on <RecentBotList>', () => {
const recentProjects = [
Expand Down
10 changes: 6 additions & 4 deletions Composer/packages/client/__tests__/components/skill.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,13 @@ import * as React from 'react';
import { render, fireEvent, getByLabelText, getByTestId } from '@bfc/test-utils';
import { Skill } from '@bfc/shared';

import httpClient from '../../src//utils/httpUtil';
import Skills from '../../src/pages/skills';
import SkillList from '../../src/pages/skills/skill-list';
import CreateSkillModal from '../../src/components/SkillForm/CreateSkillModal/CreateSkillModal';
import CreateSkillModal from '../../src/components/CreateSkillModal';
import { renderWithStore } from '../testUtils';

jest.mock('../../src/components/SkillForm/CreateSkillModal/validateManifestUrl', () => ({
validateManifestUrl: () => {},
}));
jest.mock('../../src//utils/httpUtil');

const items: Skill[] = [
{
Expand Down Expand Up @@ -81,6 +80,9 @@ describe('<SkillForm />', () => {
const onSubmit = jest.fn((formData) => {
expect(formData.manifestUrl).toBe('http://AwesomeSkill');
});

(httpClient.post as jest.Mock).mockResolvedValue(undefined);

const onDismiss = jest.fn(() => {});
const { getByLabelText, getByText } = render(
<CreateSkillModal
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import * as React from 'react';
import { fireEvent, render } from '@bfc/test-utils';

import { ToolBar } from '../../src/components/ToolBar/ToolBar';
import { ToolBar } from '../../src/components/ToolBar';

const toolbarItems = (onClick) => [
{
Expand Down
2 changes: 1 addition & 1 deletion Composer/packages/client/__tests__/navItem.test.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import * as React from 'react';
import { render } from '@bfc/test-utils';

import { NavItem } from '../src/components/NavItem/NavItem';
import { NavItem } from '../src/components/NavItem';
import { StoreProvider } from '../src/store';

describe('<Header />', () => {
Expand Down
2 changes: 1 addition & 1 deletion Composer/packages/client/__tests__/notFound.test.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import * as React from 'react';
import { render } from '@bfc/test-utils';

import { BASEPATH } from '../src/constants';
import { NotFound } from '../src/components/NotFound/NotFound';
import { NotFound } from '../src/components/NotFound';

describe('<NotFound />', () => {
it('should render a not found page', async () => {
Expand Down
2 changes: 1 addition & 1 deletion Composer/packages/client/config/env.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ function getClientEnvironment(publicUrl) {
PUBLIC_URL: publicUrl,
GIT_SHA: getGitSha().toString().replace('\n', ''),
SDK_PACKAGE_VERSION: '4.9.3', // TODO: change this when Composer supports custom schema/custom runtime
COMPOSER_VERSION: '1.0.1',
COMPOSER_VERSION: '1.0.2',
LOCAL_PUBLISH_PATH:
process.env.LOCAL_PUBLISH_PATH || path.resolve(process.cwd(), '../../plugins/localPublish/hostedBots'),
}
Expand Down
10 changes: 5 additions & 5 deletions Composer/packages/client/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ import { FocusZone } from 'office-ui-fabric-react/lib/FocusZone';
import { TooltipHost, DirectionalHint } from 'office-ui-fabric-react/lib/Tooltip';
import formatMessage from 'format-message';

import { Header } from './components/Header/Header';
import { NavItem } from './components/NavItem/NavItem';
import { Header } from './components/Header';
import { NavItem } from './components/NavItem';
import { BASEPATH } from './constants';
import Routes from './router';
import { StoreContext } from './store';
import { main, sideBar, content, divider, globalNav, leftNavBottom, rightPanel, dividerTop } from './styles';
import { resolveToBasePath } from './utils/fileUtil';
import { ErrorBoundary } from './components/ErrorBoundary/ErrorBoundary';
import { RequireAuth } from './components/RequireAuth/RequireAuth';
import { ErrorBoundary } from './components/ErrorBoundary';
import { RequireAuth } from './components/RequireAuth';
import onboardingState from './utils/onboardingStorage';
import { isElectron } from './utils/electronUtil';
import { useLinks } from './utils/hooks';
Expand All @@ -27,7 +27,7 @@ initializeIcons(undefined, { disableWarnings: true });

const Onboarding = React.lazy(() => import('./Onboarding/Onboarding'));
const AppUpdater = React.lazy(() =>
import('./components/AppUpdater/AppUpdater').then((module) => ({ default: module.AppUpdater }))
import('./components/AppUpdater').then((module) => ({ default: module.AppUpdater }))
);

// eslint-disable-next-line react/display-name
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,57 @@
// Licensed under the MIT License.

/** @jsx jsx */
import { jsx } from '@emotion/core';
import { jsx, css } from '@emotion/core';
import React, { useContext, useEffect, useMemo, useState, useCallback } from 'react';
import { Dialog, DialogFooter, DialogType } from 'office-ui-fabric-react/lib/Dialog';
import { DefaultButton, PrimaryButton } from 'office-ui-fabric-react/lib/Button';
import { DefaultButton, PrimaryButton, IButtonStyles } from 'office-ui-fabric-react/lib/Button';
import { Icon } from 'office-ui-fabric-react/lib/Icon';
import { ProgressIndicator } from 'office-ui-fabric-react/lib/ProgressIndicator';
import { ChoiceGroup } from 'office-ui-fabric-react/lib/ChoiceGroup';
import formatMessage from 'format-message';
import { IDialogContentStyles, IDialogFooterStyles } from 'office-ui-fabric-react/lib/Dialog';
import { NeutralColors, SharedColors } from '@uifabric/fluent-theme';

import { AppUpdaterStatus } from '../constants';
import { StoreContext } from '../store';

// -------------------- Styles -------------------- //

const optionIcon = (checked) => css`
vertical-align: text-bottom;
font-size: 18px;
margin-right: 10px;
color: ${checked ? SharedColors.cyanBlue10 : NeutralColors.black};
`;

const optionRoot = css`
width: 100%;
height: 100%;
`;

const dialogCopy = css`
margin: 0px;
color: #000;
`;

const dialogContent: Partial<IDialogContentStyles> = {
subText: { color: NeutralColors.black },
header: { paddingBottom: '6px' },
};

import { StoreContext } from '../../store';
import { AppUpdaterStatus } from '../../constants';
const dialogFooter: Partial<IDialogFooterStyles> = {
actions: {
marginTop: '46px',
},
};

import { dialogContent, dialogCopy, dialogFooter, optionRoot, optionIcon, updateAvailableDismissBtn } from './styles';
const updateAvailableDismissBtn: Partial<IButtonStyles> = {
root: {
marginRight: '6px;',
},
};

// -------------------- Helpers -------------------- //

const { ipcRenderer } = window;

Expand All @@ -33,6 +71,8 @@ const downloadOptions = {
installAndUpdate: 'installAndUpdate',
};

// -------------------- AppUpdater -------------------- //

export const AppUpdater: React.FC<{}> = () => {
const {
actions: { setAppUpdateError, setAppUpdateProgress, setAppUpdateShowing, setAppUpdateStatus },
Expand Down
41 changes: 0 additions & 41 deletions Composer/packages/client/src/components/AppUpdater/styles.ts

This file was deleted.

33 changes: 33 additions & 0 deletions Composer/packages/client/src/components/Conversation.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

/** @jsx jsx */
import { jsx, css } from '@emotion/core';

// -------------------- Styles -------------------- //

const container = css`
width: 100%;
background-color: #ffffff;
height: 100%;
overflow: auto;
position: relative;
`;

const top = css`
width: 100%;
height: 10px;
background-color: #efeaf5;
`;

// -------------------- Conversation -------------------- //

const Conversation = (props) => {
return (
<div css={container} {...props}>
{props.children}
</div>
);
};

export { Conversation };

This file was deleted.

Loading