Skip to content
This repository has been archived by the owner on Jun 5, 2023. It is now read-only.

LayoutManager

jiajunGit edited this page Jul 24, 2017 · 3 revisions

Description

The LayoutManager organizes the various UI components constructed by their corresponding UI component factories which include SelectedLabelsFactory, SearchFactory and many more.

Preview of UI components that LayoutManager manages

UI component factories that it manages

Overview of LayoutManager

  • When the user has just landed on an issue page, the initializeUI() method from the layout manager will be invoked by the appropriate issue page controllers to build a skeleton sidebar UI without any data. The rationale behind this decision is to enable users to be able to quickly interact with the sidebar UI before having all the data loaded since retrieving and loading data takes some time. The skeleton sidebar UI is constructed using the addUIComponentsToSideBar() function.
  • populateUIWithData(storage) is called after retrieving the required data in order to update the UI with data stored within the ItemStorage container passed in.
  • It also contains a cleanup() function that is called every time when the user lands on a Github page to hide the sidebar and launch button.