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
feat: Lu improvements, larger Lg editor, activity action node content #6539
Merged
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
6b00b2e
Lu improvements, larger Lg editor, activity action node content
sorgh 7d80c06
Merge branch 'main' of https://github.com/microsoft/BotFramework-Comp…
sorgh d4eb307
strings
sorgh 147e574
fix test
sorgh 6c70eb3
added tests
sorgh 53ee399
more test
sorgh 8d3a0f7
Merge branch 'main' into sorgh/lu-editor
hatpick 2afba21
Merge branch 'main' into sorgh/lu-editor
hatpick bccaf7a
PR comments
sorgh 95e4ff0
Merge branch 'sorgh/lu-editor' of https://github.com/microsoft/BotFra…
sorgh 04aa0f3
Merge branch 'main' into sorgh/lu-editor
hatpick 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
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
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
File renamed without changes.
File renamed without changes.
24 changes: 24 additions & 0 deletions
24
Composer/packages/lib/code-editor/src/hooks/useDebouncedSearchCallbacks.ts
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,24 @@ | ||
| // Copyright (c) Microsoft Corporation. | ||
| // Licensed under the MIT License. | ||
|
|
||
| import { useState, useCallback } from 'react'; | ||
|
|
||
| import { useDebounce } from './useDebounce'; | ||
|
|
||
| /** | ||
| * Debounced query and callbacks for FluentUI SearchBox. | ||
| */ | ||
| export const useDebouncedSearchCallbacks = () => { | ||
| const [query, setQuery] = useState<string | undefined>(); | ||
| const debouncedQuery = useDebounce<string | undefined>(query, 300); | ||
|
|
||
| const onSearchAbort = useCallback(() => { | ||
| setQuery(''); | ||
| }, []); | ||
|
|
||
| const onSearchQueryChange = useCallback((_?: React.ChangeEvent<HTMLInputElement>, newValue?: string) => { | ||
| setQuery(newValue); | ||
| }, []); | ||
|
|
||
| return { onSearchAbort, onSearchQueryChange, query: debouncedQuery, setQuery }; | ||
| }; |
38 changes: 38 additions & 0 deletions
38
Composer/packages/lib/code-editor/src/hooks/useNoSearchResultMenuItem.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,38 @@ | ||
| // Copyright (c) Microsoft Corporation. | ||
| // Licensed under the MIT License. | ||
|
|
||
| import formatMessage from 'format-message'; | ||
| import { IContextualMenuItem } from 'office-ui-fabric-react/lib/ContextualMenu'; | ||
| import { Icon } from 'office-ui-fabric-react/lib/Icon'; | ||
| import { Stack } from 'office-ui-fabric-react/lib/Stack'; | ||
| import { Text } from 'office-ui-fabric-react/lib/Text'; | ||
| import * as React from 'react'; | ||
|
|
||
| const searchEmptyMessageStyles = { root: { height: 32 } }; | ||
| const searchEmptyMessageTokens = { childrenGap: 8 }; | ||
|
|
||
| /** | ||
| * Search empty view for contextual menu with search capability. | ||
| */ | ||
| export const useNoSearchResultMenuItem = (message?: string): IContextualMenuItem => { | ||
| message = message ?? formatMessage('no items found'); | ||
| return React.useMemo( | ||
| () => ({ | ||
| key: 'no_results', | ||
| onRender: () => ( | ||
| <Stack | ||
| key="no_results" | ||
| horizontal | ||
| horizontalAlign="center" | ||
| styles={searchEmptyMessageStyles} | ||
| tokens={searchEmptyMessageTokens} | ||
| verticalAlign="center" | ||
| > | ||
| <Icon iconName="SearchIssue" title={message} /> | ||
| <Text variant="small">{message}</Text> | ||
| </Stack> | ||
| ), | ||
| }), | ||
| [message] | ||
| ); | ||
| }; |
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.