WordPress/ai

Disable features until valid AI credentials are entered (leaving non-Connector powered features alone like Abilities Explorer)

已關閉

#197 建立於 2026年1月22日

 (5 則留言) (0 個反應) (0 位負責人)PHP (136 個分叉)auto 404
Good first issueHelp Wanted[Type] Enhancement

倉庫指標

星標
 (246 顆星)
PR 合併指標
 (平均合併 5天 4小時) (30 天內合併 72 個 PR)

描述

What problem does this address?

Currently, when a user does not provide valid API credentials, they are still able to enable Experiments and view Available Experiments. As a result, when navigating to pages, the title generation button appears in the editor. However, clicking the Regenerate button triggers an error because the required AI credentials are missing or invalid.

This creates a confusing user experience and allows users to proceed through workflows that cannot function correctly without mandatory configuration.

https://github.com/user-attachments/assets/8170850b-b333-4772-8af7-fd17ccb60ac4

What is your proposed solution?

Since AI credentials are mandatory for experiment-related functionality, the system should enforce credential validation as a prerequisite before enabling any dependent features.

The proposed behavior is as follows:

  • The system must first verify that API credentials are provided and valid.
  • Only after successful validation:
  • The Enable Experiments checkbox should be activated.
  • The Available Experiments options should become selectable.
  • The Save Changes action should be enabled.
  • If credentials are missing or invalid:
  • All experiment-related options must remain disabled.
  • Users should be prevented from proceeding to subsequent steps.
  • Clear guidance should be provided to complete the mandatory credential setup.

This ensures a proper step-by-step flow, prevents invalid configurations, and avoids runtime errors by enforcing required prerequisites before allowing access to dependent features.

貢獻者指南