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

Conversation

@alanlong9278
Copy link
Contributor

@alanlong9278 alanlong9278 commented Jan 8, 2021

Description

bugfix: dialog name & trigger name mismatch in left menu, breadcumbs & editors.

solution

  • Unify display name function. use getFriedlyName in client & editors, Shared the function in bfc/shared module.
  • Refactor breadcrumbs display name hook. It will auto change the display name when changing the name in form editor including dialog name, trigger name & action name.
    name
  • prefer using designer.name instead of dialog file name for dialog displayName in left menu @zhixzhan
    (if update name in property editor, for perf consideration, project tree won't real-time refresh )

Task Item

closes #5383

Screenshots

@alanlong9278 alanlong9278 changed the title fix: unify display name function in client, visual editor [WIP]fix: unify display name function in client, visual editor Jan 8, 2021
@alanlong9278 alanlong9278 changed the title [WIP]fix: unify display name function in client, visual editor fix: unify display name function in client, visual editor Jan 8, 2021
@yeze322
Copy link
Contributor

yeze322 commented Jan 11, 2021

Looks good to extract a new shared function getFriendlyName.

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.

Looks mostly good - just one change I'd like to see.

@coveralls
Copy link

coveralls commented Jan 12, 2021

Coverage Status

Coverage decreased (-0.02%) to 55.113% when pulling 3b9e34b on alanlong9278:bugfix/displayName-mismatch into 89643c3 on microsoft:main.

@yeze322 yeze322 self-requested a review January 21, 2021 02:04
yeze322
yeze322 previously approved these changes Jan 21, 2021
Copy link
Contributor

@yeze322 yeze322 left a comment

Choose a reason for hiding this comment

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

validated on my local PC

@yeze322 yeze322 dismissed beyackle’s stale review January 21, 2021 02:09

Code updated. Alan used a constant to check the pattern.

@yeze322
Copy link
Contributor

yeze322 commented Jan 25, 2021

refs #5427

Copy link
Contributor

@yeze322 yeze322 left a comment

Choose a reason for hiding this comment

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

Generally good, left two comments.

* main:
  refactor: break down the design page(the first step) (microsoft#5623)
  fix: use directVersionPublish for LUIS to avoid 404 in bot response (microsoft#5639)
  fix: botProject UT depends on external service (microsoft#5656)
@luhan2017 luhan2017 merged commit 91d3f6f into microsoft:main Feb 4, 2021
lei9444 pushed a commit to lei9444/BotFramework-Composer-1 that referenced this pull request Jun 15, 2021
…5474)

* unify display name function in client, visual editor

* dialog displayName from $designer.name

* lint

* use getFriendlyName

* unify manager type in design page

* refactor type enums

* conflict

* specs failed

* spcs

* refactor code

* refactor

Co-authored-by: zhixzhan <[email protected]>
Co-authored-by: zeye <[email protected]>
Co-authored-by: Lu Han <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Trigger labels in bot tree, breadcrumbs, and property don't match

7 participants