Skip to content

Demo: Learn Tribe integration#357

Draft
LayaTaal wants to merge 7 commits into
mainfrom
test/tribe-ai-assistant
Draft

Demo: Learn Tribe integration#357
LayaTaal wants to merge 7 commits into
mainfrom
test/tribe-ai-assistant

Conversation

@LayaTaal
Copy link
Copy Markdown
Contributor

What does this do/fix?

Demo of a possible Learn Tribe integration. Not for production.

@LayaTaal LayaTaal self-assigned this May 12, 2026
LayaTaal and others added 4 commits May 12, 2026 15:04
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant