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

feat: register activity bar panel API #165

Merged
merged 39 commits into from
Jun 6, 2024

Conversation

josephfusco
Copy link
Member

@josephfusco josephfusco commented Jun 5, 2024

This introduces the registerActivityBarPanel API and refactors the help panel and query composer panel as (built-in) 3rd party PHP plugins that make use of the API.

In addition to introducing the API, this updates the build scripts (and start scripts) to build the main plugin and extending plugins by running npm run build or npm run start.

jasonbahl and others added 22 commits May 23, 2024 09:38
…ilityButton access functions

- update ActivityBarPlugins.jsx to read from redux instead of the pluginContext
- Rename DocumentSessions to EditorGroup
- refactor registry/index.js to be more clean and abstract different registries into their own "domain"
- introduce activity-bar redux store (to contain state for Activity Bar Plugin Buttons and Activity Bar Utility Buttons
…ns from redux and pass it in

- hook up onTogglePluginVisibility with redux
- modify HelpPanel to behave with existing GraphiQL plugin "shape"
- update registerPanel action
- add toggleActivityPanelVisibility action
- update initial state of the activityPanels
- add TOGGLE_ACTIVITY_PANEL_VISIBILITY reducer
- change selector panels to activityPanels
- update third-party index
- split Explorer into its own components
- move Explorer utils into its own file
- simplify App.jsx
- move Query Composer styles from main plugin into 3rd party
@josephfusco josephfusco changed the title Feat/issue 110 register activity bar panel feat: register activity bar panel API Jun 5, 2024
josephfusco and others added 6 commits June 5, 2024 12:33
- update start scripts
- update webpack entry to combine plugins, main ide and graphql-js
- update paths to assets in help-panel.php and query-composer-panel.php
- update use of `registerActivityBarPanel` so that the config is an object instead of a function
- update activity bar reducer validation logic for registerActivityBarPanel
- update logo with new svg
- rename help-panel.js and query-composer-panel.js to match webpack config settings (file name for entry must match plugin name)
@jasonbahl jasonbahl marked this pull request as ready for review June 5, 2024 22:03
@josephfusco josephfusco merged commit 428bca4 into main Jun 6, 2024
7 checks passed
@josephfusco josephfusco deleted the feat/issue-110-register-activity-bar-panel branch June 6, 2024 19:47
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.

None yet

2 participants