-
Notifications
You must be signed in to change notification settings - Fork 376
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: Refactor publish page. (#5375)
* take out components: LogDialog, PublishToolbar * update interface of LogDialog * encapsulate LogDialog under PublishStatusList (with a displaying bug) * remove rollback logic * mark some TODOs * add more todos * use CR prefix * add wave2 CR * refactor * polling * data flow refactor * notification * use ref * refactor code * conflict * bugfix * fix comments * data structure change * split updatedData function into updatedData & changeNotification functions * ut error * remove console.log * remove comments * update Updater constructor params * replace 202 with enum value * publish disabled logic err * use interface rather than type * no magic status code * don't reverse raw data * remove the propagation of updatePublishHistory * hoist managePublishProfile() to publish page * sort BotStatusList without change raw data * remove props updateItems() * disable the rollback feature * hoist generateBotStatusList() to PublishPage * use a dict to store expanded bot ids * test err * emit pure skillIds when updating checkbox * neat updates * remove the onAction callback * capture 500 404 * check the existence of updater * add readonly to LogDialog * redesign the pending status calculation * add TODOs * remove shadow state botPublishHistoryList * remove comments * reorder local variables * refactor: naming, code style of BotStatusList * Recover loading status when back to publish page * extract publishPageUtils * add rollback function & do not pulish bot without publish target * fix: publish target reset to first one when publish other target * continue get publish status when changing page * test err * cover http code * comments * toggle case Co-authored-by: zeye <zeye@microsoft.com> Co-authored-by: Srinaath Ravichandran <srinaath27@gmail.com> Co-authored-by: Chris Whitten <christopher.whitten@microsoft.com> Co-authored-by: Lu Han <32191031+luhan2017@users.noreply.github.com> Co-authored-by: Soroush <hatpick@gmail.com>
- Loading branch information
1 parent
de82bb5
commit 7185fb4
Showing
13 changed files
with
646 additions
and
516 deletions.
There are no files selected for viewing
This file contains 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 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.