This repository was archived by the owner on Jul 9, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 374
feature: show multi-skill project with correct link behavior #4466
Merged
Merged
Changes from 90 commits
Commits
Show all changes
98 commits
Select commit
Hold shift + click to select a range
7595021
Update en-US.json
beyackle 78c3f7a
Merge branch 'main' of https://github.com/microsoft/BotFramework-Comp…
beyackle e0576b5
Merge branch 'main' of https://github.com/microsoft/BotFramework-Comp…
beyackle e6c088d
bring in stuff from the draft branch
beyackle 49d7ce0
make deletion work
beyackle 73b657e
Merge branch 'main' into beyackle/botProjectTreeOnly
beyackle 9fa39e9
add error/warning icons
beyackle 28c4baf
Merge branch 'main' into beyackle/botProjectTreeOnly
beyackle e49078c
Merge branch 'beyackle/botProjectTreeOnly' of https://github.com/micr…
beyackle bdb21db
Merge branch 'main' into beyackle/botProjectTreeOnly
beyackle 28fcadf
read notification map for state
beyackle ca31c22
Merge branch 'beyackle/botProjectTreeOnly' of https://github.com/micr…
beyackle 34d6415
fix type-checking and start on unit tests
beyackle 9cee86c
add sampleDialog and fix more tests
beyackle ea7ced6
add showAll
beyackle 7a4fa20
rename to onAllSelected because it's a callback
beyackle 69ddaa3
update unit tests
beyackle fa557ef
Merge branch 'main' into beyackle/botProjectTreeOnly
beyackle ebf8450
fix onSelect handling in ProjectTree
beyackle ad66423
Update qna.test.tsx
beyackle 48ab9bf
Merge branch 'main' into beyackle/botProjectTreeOnly
beyackle 76bee68
Update design.test.tsx
beyackle b877aca
add unit test
beyackle 762b2b5
Merge branch 'main' into beyackle/botProjectTreeOnly
beyackle 463870a
Merge branch 'main' into beyackle/botProjectTreeOnly
beyackle 014a094
Merge branch 'main' of https://github.com/microsoft/BotFramework-Comp…
beyackle 89caba3
Merge branch 'main' into beyackle/botProjectTreeOnly
beyackle a02da9b
fixes from PR comments
beyackle 0a20716
Merge branch 'main' of https://github.com/microsoft/BotFramework-Comp…
beyackle d00c42d
Merge branch 'main' into beyackle/botProjectTreeOnly
beyackle 90c92d0
Merge branch 'main' into beyackle/botProjectTreeOnly
cwhitten 83c126d
restore multibots to tree
beyackle e498a2f
fix links from project tree
beyackle bf75528
fix wrong IDs in URL
beyackle a601063
Merge branch 'main' of https://github.com/microsoft/BotFramework-Comp…
beyackle 74addaf
Merge branch 'main' into beyackle/botProjectWithSkills
beyackle ec31343
Merge branch 'main' of https://github.com/microsoft/BotFramework-Comp…
beyackle bd88b7a
Merge branch 'main' of https://github.com/microsoft/BotFramework-Comp…
beyackle 97266a1
Merge branch 'main' into beyackle/botProjectWithSkills
beyackle b32dfff
yarn.lock rebuild
beyackle 19d196c
Merge branch 'main' of https://github.com/microsoft/BotFramework-Comp…
beyackle 916a74b
Merge branch 'main' of https://github.com/microsoft/BotFramework-Comp…
beyackle 0407f62
Merge branch 'main' into beyackle/botProjectWithSkills
beyackle bb61b65
update yarn.lock files
beyackle 72ce95b
fix action card links
beyackle 46237dd
Merge branch 'main' of https://github.com/microsoft/BotFramework-Comp…
beyackle 4272be6
Merge branch 'main' into beyackle/botProjectWithSkills
beyackle 0d13f78
Update DesignPage.tsx
beyackle 03cc029
fix unit test
beyackle 4fa9ccd
Merge branch 'main' of https://github.com/microsoft/BotFramework-Comp…
beyackle b3943f3
Merge branch 'main' into beyackle/botProjectWithSkills
beyackle d593043
Merge branch 'main' of https://github.com/microsoft/BotFramework-Comp…
beyackle 5ba58f2
Merge branch 'main' into beyackle/botProjectWithSkills
beyackle f705b59
Merge branch 'main' into beyackle/botProjectWithSkills
beyackle faaa7ca
add unit test to ExpandableNode
beyackle bed80ec
Merge branch 'main' into beyackle/botProjectWithSkills
beyackle 709b2d0
Merge branch 'main' of https://github.com/microsoft/BotFramework-Comp…
beyackle deabda9
Merge branch 'main' into beyackle/botProjectWithSkills
beyackle 399479c
update ProjectTree unit tests
beyackle 1d3ab78
Merge branch 'main' into beyackle/botProjectWithSkills
beyackle 398988f
Update ExpandableNode.tsx
beyackle 76be81b
Merge branch 'main' of https://github.com/microsoft/BotFramework-Comp…
beyackle 61f7290
Merge branch 'beyackle/botProjectWithSkills' of https://github.com/mi…
beyackle 48a77e5
Merge branch 'main' into beyackle/botProjectWithSkills
beyackle 1afebb7
add rootProjectId to triggerApi
beyackle f7ee2c6
fix creation and deletion bugs
beyackle 1b7ede9
Merge branch 'main' into beyackle/botProjectWithSkills
beyackle 360e98b
change mocks folder name
beyackle 3406a93
Load design page only after skill project is loaded
8f35732
fixes from CR
beyackle e3fa82b
fix more tests
beyackle 17ad0c5
Merge branch 'main' of https://github.com/microsoft/BotFramework-Comp…
beyackle 720dcc4
Merge branch 'main' into beyackle/botProjectWithSkills
beyackle e7b9c75
Merge branch 'main' into beyackle/botProjectWithSkills
beyackle 3d32857
fix more unit tests
beyackle fb0b597
Merge branch 'beyackle/botProjectWithSkills' of https://github.com/mi…
beyackle 3c106df
fix test typol
beyackle d1d530a
Merge branch 'main' into beyackle/botProjectWithSkills
beyackle 7b5338d
Merge branch 'main' of https://github.com/microsoft/BotFramework-Comp…
beyackle 7b4c93b
Merge branch 'main' into beyackle/botProjectWithSkills
beyackle 8c3bcc3
Merge branch 'main' into beyackle/botProjectWithSkills
beyackle 33c3cc5
Merge branch 'main' of https://github.com/microsoft/BotFramework-Comp…
beyackle f429e6d
Merge branch 'main' into beyackle/botProjectWithSkills
beyackle d8aa80b
Merge branch 'main' into beyackle/botProjectWithSkills
beyackle 5662dcf
handle clicks on bots as bot/id/skill/id
beyackle 3219bad
Merge branch 'beyackle/botProjectWithSkills' of https://github.com/mi…
beyackle ead752b
always go to dialog on click (not to a trigger in it)
beyackle 90a0a3f
fix unit tests
beyackle da75a72
Merge branch 'main' into beyackle/botProjectWithSkills
beyackle a5bd2ee
fix link highlight for dialogs
beyackle 1affb13
attempt to fix breadcrumbs (will finish in separate PR)
beyackle f24f34f
Merge branch 'main' into beyackle/botProjectWithSkills
beyackle 3989f1e
fixes from CR
beyackle 0dcc8e1
Update ProjectTree.tsx
beyackle 502fe70
Update ProjectTree.tsx
beyackle e178197
Update ProjectTree.tsx
beyackle 70119c1
fix unit tests to add correct multibot Recoil stuff
beyackle 58242b3
Merge branch 'main' into beyackle/botProjectWithSkills
beyackle File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
33 changes: 33 additions & 0 deletions
33
Composer/packages/client/__tests__/components/expandableNode.test.tsx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,33 @@ | ||
| // Copyright (c) Microsoft Corporation. | ||
| // Licensed under the MIT License. | ||
|
|
||
| import React from 'react'; | ||
| import { render, fireEvent } from '@botframework-composer/test-utils'; | ||
|
|
||
| import { ExpandableNode } from '../../src/components/ProjectTree/ExpandableNode'; | ||
|
|
||
| function isShown(details: HTMLElement) { | ||
| if (details == null) return false; | ||
| return details.attributes.getNamedItem('open') != null; | ||
| } | ||
|
|
||
| describe('<ExpandableNode />', () => { | ||
| let component; | ||
| beforeEach(() => { | ||
| component = render(<ExpandableNode summary={'Summary'}>{'details'}</ExpandableNode>); | ||
| }); | ||
|
|
||
| it('closes and opens on click', async () => { | ||
| const triangle = await component.findByTestId('summaryTag'); | ||
| let details = await component.findAllByText('details'); | ||
| expect(isShown(details[0])).toEqual(true); | ||
|
|
||
| fireEvent.click(triangle); | ||
| details = await component.findAllByText('details'); | ||
| expect(isShown(details[0])).toEqual(false); | ||
|
|
||
| fireEvent.click(triangle); | ||
| details = await component.findAllByText('details'); | ||
| expect(isShown(details[0])).toEqual(true); | ||
| }); | ||
| }); | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.