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.

贡献者指南