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

Feature/modularization #10

Merged
merged 3 commits into from
Nov 10, 2021
Merged

Feature/modularization #10

merged 3 commits into from
Nov 10, 2021

Conversation

frostyfan109
Copy link

This PR moves various aspects of App.js into separate modules

It removes around 1000 lines from App.js.

  • Core autocompletion functionality is moved into autocomplete.js (~500 lines)
  • The settings modal is moved into SettingsModal.js (~200 lines)
  • Example queries shown in the help modal are moved into static/app_data/example_queries.js rather than being stored in the App state (~100 lines)
    • This also adds app_data to the static directory in the project structure.
  • The specific table viewer configuration used by App.js is moved into TableViewer.js as AppTableViewer (~70 lines)
  • The specific toolbar configuration used by App.js is moved into Toolbar.js as AppToolbar (~70 lines)

Griffin Roupe added 2 commits September 29, 2021 22:18
Moves lengthy autocompletion logic into its own file. Moves main toolbar initialization data into AppToolbar under Toolbar.js. Moves settings modal into SettingsModal.js. Moves example queries used by help modal into static file.
@frostyfan109
Copy link
Author

Note that the PR fails to build the branch directly with Jenkins because it has an outdated Jenkinsfile; however, the PR itself passes Jenkins since it merges into feature/jest-e2e-testing which has an updated Jenkinsfile.

Base automatically changed from feature/jest-e2e-testing to develop October 15, 2021 20:26
Copy link
Collaborator

@YaphetKG YaphetKG left a comment

Choose a reason for hiding this comment

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

LGTM!

@frostyfan109 frostyfan109 merged commit 4fd04ef into develop Nov 10, 2021
@frostyfan109 frostyfan109 deleted the feature/modularization branch November 10, 2021 23:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants