Skip to content

Missing 'Add sentiment' button in admin interface #17

@jjroelofs

Description

@jjroelofs

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

  1. Create missing analyze_ai_sentiments.links.action.yml file
  2. Standardize routing paths to use consistent pattern
  3. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions