Improve "Adding an AI Provider" flow

Created on 3 October 2024, about 2 months ago

Problem/Motivation

When adding a new AI provider key through /admin/config/system/keys/add, the next step is unclear. I do not know that I still need to navigate back to /admin/config/ai/providers/openai to select the newly added key. This causes confusion and interrupts the user flow.

Steps to reproduce

1. Navigate to /admin/config/system/keys/add.
2. Add a new AI provider key.
3. Observe the lack of instruction or guidance for the next step.
4. Manually navigate to /admin/config/ai/providers/openai to select the key.

Proposed resolution

1. Clear next steps or guidance that the user needs to go back and select the key like a message and link to the next page.
2. Or add a breadcrumb linking to /admin/config/ai/providers/openai.

Remaining tasks

User interface changes

Add message and link.

API changes

Data model changes

Feature request
Status

Active

Version

1.0

Component

Providers

Created by

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

Comments & Activities

  • Issue created by @nx2611
  • 🇬🇧United Kingdom scott_euser

    We can only put further instructions within this module I guess, I don't think we can change anything within the Key module. Perhaps we could make a feature request for them, but there are many options that could be multiple steps so not sure e.g. query string would help. Assuming their docs are up to date there do not seem to be such options at the moment. https://www.drupal.org/docs/contributed-modules/key/developer-guide

    Maybe issue summary needs to be reconsidered to propose something we could do within ai module only to be more achievable.

  • 🇩🇪Germany marcus_johansson

    I guess we could create our own form element for it that open the new key in a Ajax modal and then loads it on modal close. That could make it a little bit easier to use?

    It would be quite some work, but if it makes sense we could do it, but we should as @scott_euser writes make it as a feature request/MR for the Key module instead.

Production build 0.71.5 2024