Prompt library in the popup modal

Created on 3 August 2024, 3 months ago

Problem/Motivation

To use prompt for various and extensive purposes of AI module, where could be prompt library which opens in the modal.

Proposed resolution

1. Create render element 'prompt_library_link', which enables to integrate link anywhere.

$build = [
  'prompt_link' => [
    '#theme' => 'prompt_library_link',
    '#title' => 'Choose prompt from the library',
    '#input_selector' => 'textarea'
  ]
];

2. Clicking the link, opens a popup modal to select a prompt.

3. Popup has tabs and views, where user can filter prompts based on bookmarks, category or recently used.

4. Selecting a prompt, modal closes and input element is automatically pre-filled.

Remaining tasks

User interface changes

API changes

Data model changes

Feature request
Status

Active

Version

1.0

Component

Code

Created by

🇱🇹Lithuania mindaugasd

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

Comments & Activities

Production build 0.71.5 2024