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
63 commits
Select commit Hold shift + click to select a range
c623832
Runtime log data websocket
Apr 8, 2021
ae4f14b
Merge branch 'main' of https://github.com/microsoft/BotFramework-Comp…
Apr 8, 2021
d62462b
- Fixing add new skill by fetch correct templates on addSkill modal
pavolumMsft Apr 8, 2021
e622e90
Merge branch 'main' into pavolum/fixAddSkills
pavolum Apr 8, 2021
88ee993
Merge branch 'main' into pavolum/fixAddSkills
pavolum Apr 8, 2021
5db9c96
Merge branch 'main' into pavolum/fixAddSkills
pavolum Apr 8, 2021
a20456c
All tests passing
Apr 8, 2021
dc5dba2
Merge branch 'main' into pavolum/fixAddSkills
pavolum Apr 8, 2021
a3f3f55
Conditional inputs removal
Apr 8, 2021
b77496f
Remove unused classes
Apr 8, 2021
02158fd
Merge branch 'main' into feature/websocket-runtime
srinaath Apr 8, 2021
ae0404b
Merge branch 'main' into pavolum/fixAddSkills
pavolum Apr 8, 2021
3cfed5c
Merge branch 'main' into pavolum/fixAddSkills
pavolum Apr 8, 2021
8170c1e
Merge branch 'main' into pavolum/fixAddSkills
pavolum Apr 9, 2021
8cdafab
Layout updates
Apr 9, 2021
a7fc323
Merge branch 'main' into pavolum/fixAddSkills
pavolum Apr 9, 2021
8948b9c
Merge branch 'main' into pavolum/fixAddSkills
pavolum Apr 9, 2021
aa73a4a
Merge branch 'main' of https://github.com/microsoft/BotFramework-Comp…
Apr 9, 2021
7c11156
Style updates
Apr 9, 2021
f9a334c
Merge branch 'main' into pavolum/fixAddSkills
pavolum Apr 9, 2021
b3503f2
Merge branch 'main' of https://github.com/microsoft/BotFramework-Comp…
Apr 9, 2021
8936398
Merge branch 'main' into pavolum/fixAddSkills
cwhitten Apr 9, 2021
064bb92
Moved variables around
Apr 9, 2021
9fe9c9b
Merge branch 'main' of https://github.com/microsoft/BotFramework-Comp…
Apr 9, 2021
b12d42e
Merge branch 'main' into pavolum/fixAddSkills
srinaath Apr 9, 2021
ac18a2a
Merge branch 'pavolum/fixAddSkills' of https://github.com/microsoft/B…
Apr 9, 2021
a6e858b
Secondary nav scroll completed
Apr 9, 2021
b751226
Remove websocket server
Apr 9, 2021
205abdc
Style updates
Apr 11, 2021
fbf48ce
More webchat updates
Apr 12, 2021
7391fb5
Codnitional title rendering
Apr 12, 2021
bd912c3
Allow mutatbiltiy
Apr 12, 2021
3305d1d
Cleaned up scroll code
Apr 13, 2021
875a178
Merge branch 'main' of https://github.com/microsoft/BotFramework-Comp…
Apr 22, 2021
a81687e
Safe commit to webchat instance
Apr 23, 2021
28d67a6
Base commit
Apr 23, 2021
1533df0
Safe commit
Apr 23, 2021
0481aa4
Wrap the project tree
Apr 23, 2021
332b4c3
Addjusted box shadows
Apr 23, 2021
f8b00a0
Hide diagnostics
Apr 23, 2021
de9cf98
Updates to tests
Apr 23, 2021
1b43d3a
Merge branch 'main' of https://github.com/microsoft/BotFramework-Comp…
Apr 23, 2021
de4f85e
Merge branch 'main' of https://github.com/microsoft/BotFramework-Comp…
Apr 23, 2021
46c1e0f
Merge branch 'feature/test-scroll' of https://github.com/microsoft/Bo…
Apr 23, 2021
26d8adc
Remove zindex here
Apr 23, 2021
ff80566
Remove unsued ref
Apr 23, 2021
fbbdbba
Merge branch 'main' into feature/test-scroll
srinaath Apr 23, 2021
31f7bd3
Diagnostics page added back
Apr 23, 2021
711d91c
Merge branch 'feature/test-scroll' of https://github.com/microsoft/Bo…
Apr 23, 2021
2530d7d
Change to test id
Apr 23, 2021
18cb221
Hiding diagnostics page for now
Apr 24, 2021
76cc1c2
Update webchat panel zindex
Apr 25, 2021
5442f0b
check for skill
Apr 25, 2021
14774d8
Merge branch 'main' into feature/test-scroll
srinaath Apr 25, 2021
73cdbe3
Merge branch 'main' into feature/test-scroll
srinaath Apr 26, 2021
00c088b
Pr feedback
Apr 26, 2021
0ccc30d
Z index set
Apr 26, 2021
65611f2
Adjust zindex
Apr 26, 2021
23254d1
Merge branch 'main' of https://github.com/microsoft/BotFramework-Comp…
Apr 26, 2021
e9b2347
track telementr for close webchat
Apr 26, 2021
dd157f1
Merge branch 'main' into feature/test-scroll
srinaath Apr 26, 2021
8b8b23a
Merge branch 'main' into feature/test-scroll
srinaath Apr 26, 2021
199d920
Merge branch 'main' into feature/test-scroll
srinaath Apr 26, 2021
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
12 changes: 4 additions & 8 deletions Composer/cypress/integration/NotificationPage.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,9 @@ context('Notification Page', () => {
cy.findByTestId('showcode').click();
cy.get('textarea').type('#', { delay: 200 });

cy.findByTestId('LeftNav-CommandBarButtonDiagnostics').click();
cy.findByTestId('DebugPanelDrawer').click();

cy.findByTestId('diagnostics-table-view').within(() => {
cy.findAllByText('TestBot_TestSample.en-us.lg').should('exist').first().click();
});
cy.findAllByText('TestBot_TestSample.en-us.lg').should('exist').first().click();

cy.findAllByText('Bot responses').should('exist');
});
Expand All @@ -39,11 +37,9 @@ context('Notification Page', () => {
cy.findByTestId('showcode').click();
cy.get('textarea').type('t*', { delay: 200 });

cy.findByTestId('LeftNav-CommandBarButtonDiagnostics').click();
cy.findByTestId('DebugPanelDrawer').click();

cy.findByTestId('diagnostics-table-view').within(() => {
cy.findAllByText('TestBot_TestSample.en-us.lu').should('exist').first().dblclick();
});
cy.findAllByText('TestBot_TestSample.en-us.lu').should('exist').first().dblclick();

cy.findAllByText('TestBot_TestSample').should('exist');
});
Expand Down
43 changes: 2 additions & 41 deletions Composer/packages/client/src/components/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,9 @@ import { useCallback, useState, Fragment, useMemo, useEffect } from 'react';
import { NeutralColors, SharedColors, FontSizes, CommunicationColors } from '@uifabric/fluent-theme';
import { useRecoilValue } from 'recoil';
import { FontWeights } from 'office-ui-fabric-react/lib/Styling';
import { Panel, PanelType } from 'office-ui-fabric-react/lib/Panel';
import { TeachingBubble } from 'office-ui-fabric-react/lib/TeachingBubble';

import { useLocation } from '../utils/hooks';
import { BASEPATH } from '../constants';
import {
dispatcherState,
appUpdateState,
Expand All @@ -35,11 +33,10 @@ import { AppUpdaterStatus } from '../constants';
import TelemetryClient from '../telemetry/TelemetryClient';
import { useBotControllerBar } from '../hooks/useControllerBar';

import { WebChatPanel } from './WebChat/WebChatPanel';
import { languageListTemplates, languageFullName } from './MultiLanguage';
import { NotificationButton } from './Notifications/NotificationButton';
import { GetStarted } from './GetStarted/GetStarted';
import { BotController } from './BotRuntimeController/BotController';
import { GetStarted } from './GetStarted/GetStarted';
export const actionButton = css`
font-size: ${FontSizes.size18};
margin-top: 2px;
Expand Down Expand Up @@ -158,6 +155,7 @@ export const Header = () => {
const locale = useRecoilValue(localeState(projectId));
const appUpdate = useRecoilValue(appUpdateState);
const [teachingBubbleVisibility, setTeachingBubbleVisibility] = useState<boolean>();

const [showGetStartedTeachingBubble, setShowGetStartedTeachingBubble] = useState<boolean>(false);
const settings = useRecoilValue(settingsState(projectId));
const isWebChatPanelVisible = useRecoilValue(isWebChatPanelVisibleState);
Expand Down Expand Up @@ -383,43 +381,6 @@ export const Header = () => {
</Callout>
)}

<Panel
isHiddenOnDismiss
closeButtonAriaLabel={formatMessage('Close')}
customWidth="395px"
headerText={projectName}
isBlocking={false}
isOpen={isWebChatPanelVisible}
styles={{
root: {
marginTop: '50px',
},
scrollableContent: {
width: '100%',
height: '100%',
},
content: {
width: '100%',
height: '100%',
padding: 0,
margin: 0,
},
}}
type={PanelType.custom}
onDismiss={() => {
setWebChatPanelVisibility(false);
TelemetryClient.track('WebChatPaneClosed');
}}
>
{webchatEssentials?.projectId ? (
<WebChatPanel
botData={{ ...webchatEssentials }}
directlineHostUrl={BASEPATH}
isWebChatPanelVisible={isWebChatPanelVisible}
/>
) : null}
</Panel>

<GetStarted
isOpen={botProjectSolutionLoaded && showGetStarted}
projectId={rootBotProjectId}
Expand Down
2 changes: 1 addition & 1 deletion Composer/packages/client/src/components/NavTree.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const root = css`
width: 100%;
height: 100%;
box-sizing: border-box;
overflow-y: auto;
overflow-y: hidden;
overflow-x: hidden;
.ms-List-cell {
min-height: 36px;
Expand Down
123 changes: 63 additions & 60 deletions Composer/packages/client/src/components/Page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,12 @@ import formatMessage from 'format-message';

import { navigateTo, buildURL } from '../utils/navigation';
import { dispatcherState, PageMode } from '../recoilModel';
import { DebugPanel } from '../pages/design/DebugPanel/DebugPanel';
import implementedDebugExtensions from '../pages/design/DebugPanel/TabExtensions';
import { splitPaneContainer, splitPaneWrapper } from '../pages/design/styles';

import { NavTree, INavTreeItem } from './NavTree';
import { ProjectTree } from './ProjectTree/ProjectTree';
import { renderThinSplitter } from './Split/ThinSplitter';

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

export const root = css`
Expand All @@ -29,6 +28,15 @@ export const root = css`
label: Page;
`;

export const contentWrapper = css`
display: flex;
flex-direction: column;
flex-grow: 1;
height: 100%;
position: relative;
label: PageContent;
`;

export const pageWrapper = css`
display: flex;
flex-direction: column;
Expand All @@ -51,7 +59,6 @@ export const header = css`
export const headerTitle = css`
font-size: ${FontSizes.xLarge};
font-weight: ${FontWeights.semibold};

label: PageHeaderTitle;
`;

Expand All @@ -70,6 +77,7 @@ export const main = (hasRenderHeaderContent) => css`
flex-grow: 1;
border-top: 1px solid #dddddd;
position: relative;
overflow: auto;
nav {
ul {
margin-top: 0px;
Expand Down Expand Up @@ -136,7 +144,6 @@ const Page: React.FC<IPageProps> = (props) => {
contentStyle = defaultContentStyle,
shouldShowEditorError = false,
useNewTree,
useDebugPane,
pageMode,
showCommonLinks = false,
projectId,
Expand Down Expand Up @@ -168,64 +175,60 @@ const Page: React.FC<IPageProps> = (props) => {
const displayedToolbarItems = toolbarItems.concat(debugItems);

return (
<div css={root} data-testid={props['data-testid']}>
<div css={pageWrapper}>
<Toolbar toolbarItems={displayedToolbarItems} />
<div css={headerStyle}>
<h1 css={headerTitle}>{title}</h1>
{onRenderHeaderContent && <div css={headerContent}>{onRenderHeaderContent()}</div>}
</div>
<div css={main(!!onRenderHeaderContent)} role="main">
<Split
resetOnDoubleClick
initialPrimarySize="20%"
minPrimarySize="200px"
minSecondarySize="800px"
renderSplitter={renderThinSplitter}
onMeasuredSizesChanged={onMeasuredSizesChanged}
>
{useNewTree ? (
<ProjectTree
headerAriaLabel={formatMessage('Filter by file name')}
headerPlaceholder={formatMessage('Filter by file name')}
options={{
showDelete: false,
showTriggers: false,
showDialogs: true,
showLgImports: pageMode === 'language-generation',
showLuImports: pageMode === 'language-understanding',
showRemote: false,
showMenu: false,
showQnAMenu: pageMode === 'knowledge-base',
showErrors: false,
showCommonLinks,
}}
selectedLink={{
projectId,
skillId,
dialogId,
lgFileId: pageMode === 'language-generation' && fileId ? fileId : undefined,
luFileId: pageMode === 'language-understanding' && fileId ? fileId : undefined,
}}
onSelect={(link) => {
navigateTo(buildURL(pageMode, link));
}}
/>
) : (
<NavTree navLinks={navLinks as INavTreeItem[]} regionName={navRegionName} />
)}
<div
aria-label={mainRegionName}
css={content(shouldShowEditorError)}
data-testid="PageContent"
role="region"
>
<div css={contentStyle}>{children}</div>
<div css={contentWrapper} data-testid={props['data-testid']} role="main">
<Toolbar toolbarItems={displayedToolbarItems} />
<div css={headerStyle}>
<h1 css={headerTitle}>{title}</h1>
{onRenderHeaderContent && <div css={headerContent}>{onRenderHeaderContent()}</div>}
</div>
<Split
resetOnDoubleClick
initialPrimarySize="20%"
minPrimarySize="200px"
minSecondarySize="800px"
renderSplitter={renderThinSplitter}
onMeasuredSizesChanged={onMeasuredSizesChanged}
>
<div css={contentWrapper}>
<div css={splitPaneContainer}>
<div css={splitPaneWrapper}>
{useNewTree ? (
<ProjectTree
headerAriaLabel={formatMessage('Filter by file name')}
headerPlaceholder={formatMessage('Filter by file name')}
options={{
showDelete: false,
showTriggers: false,
showDialogs: true,
showLgImports: pageMode === 'language-generation',
showLuImports: pageMode === 'language-understanding',
showRemote: false,
showMenu: false,
showQnAMenu: pageMode === 'knowledge-base',
showErrors: false,
showCommonLinks,
}}
selectedLink={{
projectId,
skillId,
dialogId,
lgFileId: pageMode === 'language-generation' && fileId ? fileId : undefined,
luFileId: pageMode === 'language-understanding' && fileId ? fileId : undefined,
}}
onSelect={(link) => {
navigateTo(buildURL(pageMode, link));
}}
/>
) : (
<NavTree navLinks={navLinks as INavTreeItem[]} regionName={navRegionName} />
)}
</div>
</Split>
</div>
</div>
{useDebugPane ? <DebugPanel /> : null}
</div>
<div aria-label={mainRegionName} css={content(shouldShowEditorError)} data-testid="PageContent" role="region">
<div css={contentStyle}>{children}</div>
</div>
</Split>
</div>
);
};
Expand Down
Loading