Demo: Learn Tribe integration#357
Draft
LayaTaal wants to merge 7 commits into
Draft
Conversation
The vendor/ directory was gitignored, causing a fatal PHP error on the remote PR environment where composer install is not run. All Tribe\AI classes (Settings_Page, AI_Controller, etc.) depend on the Composer autoloader and could not be found, producing a 500 on plugin activation. Also removes the duplicate inline Plugin class from tribe-ai-assistant.php and delegates to src/Plugin.php via the autoloader instead. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
register_menu did not exist; the correct method is add_menu_page. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
The cache refresh <form> was rendered via do_settings_sections() inside the settings <form action="options.php">. Nested forms are invalid HTML; browsers drop the outer form, making the Save Settings button a no-op. Unregister the cache section from the settings API and render it directly in render_page() after the settings form closes. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
assets/js/build/ was gitignored, so editor.js and editor.asset.php were absent on any deployment that wasn't a local symlink. Assets_Enqueuer silently skips enqueueing when the asset file is missing, which meant the block editor JS (including the Cmd+Shift+K shortcut) never loaded. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this do/fix?
Demo of a possible Learn Tribe integration. Not for production.