This document provides an initial analysis of segmenting the components, classes, and functions of a current proof-of-concept project into different categories for migration. It lists various functions and classes used in the project, what they do, and proposed categories to migrate them to such as Services, Components, Pages, or Utils.
This document provides an initial analysis of segmenting the components, classes, and functions of a current proof-of-concept project into different categories for migration. It lists various functions and classes used in the project, what they do, and proposed categories to migrate them to such as Services, Components, Pages, or Utils.
This document provides an initial analysis of segmenting the components, classes, and functions of a current proof-of-concept project into different categories for migration. It lists various functions and classes used in the project, what they do, and proposed categories to migrate them to such as Services, Components, Pages, or Utils.
INITIAL ANALYSIS OF SEGMENTATION OF THE CURRENT STATE OF THE PoC
FUNCTION/COMPONENT/CLASS DESCRIPTION MIGRATE TO
Class OverviewTab Class that connects to the Azure Services SDK to obtain a series of data from the project on which the extension is installed. SetID function Function that generates a Utils random number used for the folders within the tree structure Class Tree Class that contains all the Components functionality of the tree, structure loading, context menu call, etc. getStorageStructureTree Function that connects to the Services function Azure SDK to obtain the tree structure previously saved, if there is no persisted structure, it creates the first state with the initial folder. setStorageStructureTree Function that connects to the Services function Azure SDK to update the previously saved tree structure for each of the changes detected in the structure. Function setContextMenuEvents Function in charge of displaying Components the context menu according to the type of element in the tree. Function getExistingWorkItems Function that checks the Work Pages Items created and assigned to the tree, those that cannot be selected. getItemDataView function Function in charge of displaying Components the information in the Reading View section according to the selected tree item. Function getAllWorkItems Function that loads the Services required information from all related Work Items in the tree. onOpenNewWorkItemClick Function that obtains the Azure Services function form for the creation of a new Work Item. onOpenExistingWorkItem Works that loads the required Services function Work Item information for editing, in the PoC it is in disuse. Function updateWorkItem Function that performs the Services update of the 'Descripicon' field of the selected Work Item. makeEditor function Function that calls the classes Pages necessary for the display and use of the HTML editor. ReactEditor Class that renders the HTML Components editor ribbonButtonRenderer function Function that integrates the Components rendering of the HTML editor's own buttons and their functionality. Function showToast This function is responsible for Utils presenting a message in Azure's own style on demand.