Add useful message on providers page when no provider enabled

Created on 10 January 2025, 12 days ago

Problem/Motivation

On a fresh install the providers page displays the heading `Access denied` and the message `You are not authorized to access this page.` I believe we need the information about installing providers on this page when no provider has been enabled.

Steps to reproduce

Install the AI module on a new Drupal site. Navigate to `admin/config/ai/providers`

Proposed resolution

Instead of `Access denied` display something similar to the message shown on the Default settings page: `/admin/config/ai/settings`
e.g.
There are no providers enabled. Choose a provider from the AI module homepage, add it to your project, then install and configure it on this page.

Feature request
Status

Active

Version

1.0

Component

Providers

Created by

🇬🇧United Kingdom unqunq

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024