Skip to content

Feature/issue 71 crud for prompt suggestions#92

Draft
schramm-joboo wants to merge 25 commits intomainfrom
feature/issue-71-crud-for-prompt-suggestions
Draft

Feature/issue 71 crud for prompt suggestions#92
schramm-joboo wants to merge 25 commits intomainfrom
feature/issue-71-crud-for-prompt-suggestions

Conversation

@schramm-joboo
Copy link
Contributor

@schramm-joboo schramm-joboo commented Feb 10, 2026

Fixes #71

  • Prompt suggestians can now be added, edited, deleted in place

- Implemented first version of prompt suggestions CRUD
- Added tests
- Correction of updating the prompt suggestions area in content editor
- Funktionen aus Controller vollständig entfernt (commitChanges) und in den Service verlegt
- Extracted prompt-suggestions-area from main template and put into own template which gets included
- Blocking the return key in order to prevent newlines within a prompt
- Made text area for functions 'New prompt' and 'Update prompt' bigger
- Fixed hover effect
- Fixed correct placement of 'Show less' (underneath last entry) and incorrect placement of '+[x] more' (about two-empty-lines-gap to last entry)
- Latest entry is placed at first position in list
@manuelkiessling manuelkiessling marked this pull request as draft February 17, 2026 12:14
@schramm-joboo schramm-joboo self-assigned this Feb 17, 2026
@schramm-joboo schramm-joboo marked this pull request as ready for review February 17, 2026 12:43
- Implemented first version of prompt suggestions CRUD
- Added tests
- Correction of updating the prompt suggestions area in content editor
- Funktionen aus Controller vollständig entfernt (commitChanges) und in den Service verlegt
- Extracted prompt-suggestions-area from main template and put into own template which gets included
- Blocking the return key in order to prevent newlines within a prompt
- Made text area for functions 'New prompt' and 'Update prompt' bigger
- Fixed hover effect
- Fixed correct placement of 'Show less' (underneath last entry) and incorrect placement of '+[x] more' (about two-empty-lines-gap to last entry)
- Latest entry is placed at first position in list
@manuelkiessling manuelkiessling force-pushed the feature/issue-71-crud-for-prompt-suggestions branch from 3644e71 to 1dca197 Compare February 17, 2026 17:40
@manuelkiessling manuelkiessling self-requested a review February 17, 2026 17:48
@manuelkiessling manuelkiessling marked this pull request as draft February 17, 2026 17:48
@manuelkiessling
Copy link
Member

@schramm-joboo While it is not possible to directly enter linefeeds in the text area, it is still possible to "misuse" the text area by copy-and-pasting text with linefeeds into it, which results in one prompt being stored as multiple lines, making the project end up with multiple prompts.

I think the logic that stores the prompt into the file must ensure that it does indeed not contain linefeeds (or replace linefeeds with space); it is not sufficient to prevent entry on the frontend.

@manuelkiessling manuelkiessling added the enhancement New feature or request label Feb 17, 2026
@manuelkiessling
Copy link
Member

@schramm-joboo Also, did you test how the feature behaves if a workspace project does not yet have a prompts file at all (or maybe not even a .sitebuilder subfolder), or if the prompts file is empty, and other edge cases?

….com:dx-tooling/sitebuilder-webapp into feature/issue-71-crud-for-prompt-suggestions
- Implemented sanitization of entered text and handling of duplicates
- Implemented a maximum of 50 suggestions
- Implemented a maximum of 2500 characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Enable CRUD (create/edit/delete) for “Prompt-Vorschläge” directly in Content Editor

2 participants

Comments