Skip to content
This repository was archived by the owner on Jul 9, 2025. It is now read-only.

Conversation

@zhixzhan
Copy link
Contributor

@zhixzhan zhixzhan commented Mar 10, 2021

Description

update project tree ux in all up view

  1. Use file id as display name instead of previously '[import]'
  2. Flatten imports (except form dialog)
- Echo-Bot
   - Echo-Bot.lg
- DialogA
   - DialogA.lg
      - [import](greeting.lg) 

will present as

- Echo-Bot
   - Common
   - greeting 
   - Echo-Bot
   - DialogA

Task Item

refs #6238

Screenshots

Screen Shot 2021-03-10 at 3 38 48 PM

@coveralls
Copy link

Coverage Status

Coverage increased (+0.04%) to 53.013% when pulling bc56506 on zhixzhan/projecttree-hierarchy into be48041 on main.

@srinaath srinaath added the 1.4 label Mar 10, 2021
@srinaath srinaath added this to the R12 milestone Mar 10, 2021
@srinaath srinaath merged commit c504931 into main Mar 10, 2021
@srinaath srinaath deleted the zhixzhan/projecttree-hierarchy branch March 10, 2021 18:35
Copy link
Contributor

@beyackle beyackle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The code mostly looks good - I have a few style comments, plus I noticed the spacing in the Design View tree is a little off. The horizontal distance between the cubical "bot" icon and the dialog icon should match the distance from the dialog to the trigger icons.
image

TreeDataPerProject[],
{ showLgImports: boolean; showLuImports: boolean }
>({
export const projectTreeSelectorFamily = selector<TreeDataPerProject[]>({
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should rename this now that it's no longer a family (just projectTreeSelector is fine).

Comment on lines +40 to +42
const displayName = item.id.substring(0, item.id.indexOf('.'));
return {
displayName: item.description,
displayName,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can keep this mostly as it is and just write displayName: item.id.substring(0, item.id.indexOf('.')) as a field on the object (replacing the item.description part).

lei9444 pushed a commit to lei9444/BotFramework-Composer-1 that referenced this pull request Jun 15, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants