"Sentiment Analysis" text appearing multiple times on reports page

Created on 4 April 2025, 3 months ago

Problem/Motivation

As seen in the screenshot, the text "Sentiment Analysis" appears multiple times in `/node/{nid}/analyze/ai_sentiment_analyzer` page.
Ideally it should appear once.

Steps to reproduce

- Configure Sentiment analyzer for a content type
- View a content and click on Analyze tab
- Click on the Sentiment Analysis sub tab
- See "Sentiment Analysis" written multiple times.

Proposed resolution

NA

Remaining tasks

NA

User interface changes

NA

API changes

NA

Data model changes

NA

📌 Task
Status

Active

Version

1.0

Component

Code

Created by

🇮🇳India Vivek Panicker Kolkata

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

Comments & Activities

  • Issue created by @Vivek Panicker
  • 🇺🇦Ukraine pavlo09 Deliatyn

    Fixed: "Sentiment Analysis" text appearing multiple times on the report page.

    Summary:
    Resolved an issue where the "Sentiment Analysis" label appeared multiple times under `/node/{nid}/analyze/ai_sentiment_analyzer`. The markup was likely duplicated during render. Cleaned up the code to ensure the title only appears once.

    I've completed the fix for issue #3517391 ("Sentiment Analysis" text appearing multiple times) in the analyze module, not analyze_ai_sentiment.

    💡 Test steps:
    1. Configure Sentiment Analyzer on a content type.
    2. View a content node.
    3. Navigate to Analyze → Sentiment Analysis.
    4. Confirm that the text appears **only once**.

    📌 Related Issue: #3517391

Production build 0.71.5 2024