-
Notifications
You must be signed in to change notification settings - Fork 0
Missing 'Add sentiment' button in admin interface #17
Copy link
Copy link
Open
Description
Summary
The analyze_ai_sentiments module is missing the 'Add sentiment' button on its settings page at /admin/config/analyze/sentiments.
Root Cause Analysis
After comparing with the analyze_ai_content_marketing_audit and analyze_ai_content_security_audit modules, I identified two issues:
1. Missing Action Links File
The module was missing the analyze_ai_sentiments.links.action.yml file that defines the action button. Other modules have this file to make the "Add" button appear.
2. Routing Path Inconsistencies
The routing paths didn't follow a consistent pattern:
- Settings page:
/admin/config/analyze/sentiments - Add form:
/admin/config/analyze/ai-sentiments/add(inconsistent path) - Delete form:
/admin/config/analyze/ai-sentiments/{sentiments_id}/delete(inconsistent path)
Expected Behavior
Users should see an "Add sentiment" button on the settings page, similar to the "Add factor" and "Add security vector" buttons in the related modules.
Impact
- Users cannot add custom sentiments through the UI
- The module appears incomplete compared to its sibling modules
- Functionality exists but is inaccessible through the admin interface
Solution
- Create missing
analyze_ai_sentiments.links.action.ymlfile - Standardize routing paths to use consistent pattern
- Ensure action button appears on settings page
This issue affects the module's usability and should be fixed to maintain consistency with the other analyze modules.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels