Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: misc UI fixes around creation and config #6878

Merged
merged 22 commits into from
Apr 13, 2021
Merged

Conversation

pavolum
Copy link
Contributor

@pavolum pavolum commented Apr 12, 2021

Description

This PR contains various fixes for UI bugs that were filed during initial bug bashing. More details below in the Task Item header.

Task Item

fix #6769 - Added sorting to api call results for getSubscription and getResourceGroups
fix #6815 - Removed 'yeoman' string from status messages
fix #6837 - There have always been two loading spinners in the open project flow, one for bot opening and one for design view loading. They were previously identical so the end user saw no visible change in the loading UI when running the bot opening flow. Since then the botOpening loading spinner UI was updated. This PR updates the design page spinner UI to match the updated bot opening so end users see the same loading UI for both spinners.
fix #6822 - in development

@pavolum
Copy link
Contributor Author

pavolum commented Apr 12, 2021

@benbrown it seems there is a bit of redundant code in the qnaModal and LuisModal components when they call azure to get the users available subscriptions. I also see that code was copied from the azurePublish extension. Do we have an item tracking a minor refactor? It would be ideal to have a shared workspace where we could put this function and have it used by the client workspace and AzurePublish extension that way it is written once and used in three seperate places as opposed to the current situation where we have the same logic written in three different places.

@benbrown
Copy link
Contributor

@pavolum yes it is on the backlog to refactor these into a single shared component.

@coveralls
Copy link

coveralls commented Apr 12, 2021

Coverage Status

Coverage increased (+0.02%) to 51.111% when pulling dccb2d8 on pavolum/CreationUiFixes2 into 8eb390b on main.

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.

Using lodash even for things you know how to write is better for unit-test coverage (because we don't need to worry about testing simple things like sorting, so those lines get left out of the denominator of the fraction).

Composer/packages/client/src/components/LoadingSpinner.tsx Outdated Show resolved Hide resolved
extensions/azurePublish/src/components/api.tsx Outdated Show resolved Hide resolved
extensions/azurePublish/src/components/api.tsx Outdated Show resolved Hide resolved
@srinaath srinaath added this to the R13 milestone Apr 13, 2021
beyackle
beyackle previously approved these changes Apr 13, 2021
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.

LGTM.

@cwhitten cwhitten merged commit 01d26ef into main Apr 13, 2021
@cwhitten cwhitten deleted the pavolum/CreationUiFixes2 branch April 13, 2021 23:13
@cwhitten cwhitten mentioned this pull request May 20, 2021
lei9444 pushed a commit to lei9444/BotFramework-Composer-1 that referenced this pull request Jun 15, 2021
* Removing yeoman from creation status messages

* alphabetizing azure subscriptions and resource groups

* Normalizing loading spinner UI on designer page to match modal UI for botOpening modal

* Handle UI update when luis key is updates through luis modal

* handle settings UI updates for external qna key update

* removing unused imports and style variable

* Ensure luis region UI is populated once set from modal

* Adding alphabetic sorting to qna and luis modal

* Fixing sorting logic to use lodash abstraction

* Updating status messages

Co-authored-by: Ben Yackley <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
6 participants