Make report type configurable

Created on 16 July 2025, 3 months ago

Problem/Motivation

Right now we have a few report types. But it may not feel all side of nurse requirements. I propose to create possibility to define own list of report types as well as custom prompts, and system prompt tiet to this type of report.

Steps to reproduce

Proposed resolution

Create configurable entities responsibility to define as many reports types a site owner would like to have. Move existing report types to default configured types with possibility to delete/edit them.

Probably out of scope of the original issue, but nice to have a block which can all put recently generated report for the node. Ideally, with a possibility to regenerate the report directly from the block. We can move that request to a separate issue.

Remaining tasks

User interface changes

1. Report types become configurable. This requires additional page.
2. Remove prompts configuration from existing model settings page.

API changes

Data model changes

โœจ Feature request
Status

Active

Version

1.0

Component

Code

Created by

๐Ÿ‡จ๐Ÿ‡ฆCanada dstorozhuk Chicago ๐Ÿ‡บ๐Ÿ‡ธ, Toronto ๐Ÿ‡จ๐Ÿ‡ฆ, Kyiv ๐Ÿ‡บ๐Ÿ‡ฆ

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

Comments & Activities

  • Issue created by @dstorozhuk
  • ๐Ÿ‡จ๐Ÿ‡ฆCanada dstorozhuk Chicago ๐Ÿ‡บ๐Ÿ‡ธ, Toronto ๐Ÿ‡จ๐Ÿ‡ฆ, Kyiv ๐Ÿ‡บ๐Ÿ‡ฆ
  • ๐Ÿ‡บ๐Ÿ‡ธUnited States NicholasS

    I too think this is how the module should have been setup, All the reports be editable and installed from config when first installing the module, and maybe a library of "Pre-made" prompts people can choose from so those default ones can be improved over time.

  • ๐Ÿ‡จ๐Ÿ‡ฆCanada dstorozhuk Chicago ๐Ÿ‡บ๐Ÿ‡ธ, Toronto ๐Ÿ‡จ๐Ÿ‡ฆ, Kyiv ๐Ÿ‡บ๐Ÿ‡ฆ

    I will be working on this feature possibly this week in scope of our project. So hopefully next week we have something.

  • ๐Ÿ‡บ๐Ÿ‡ธUnited States NicholasS

    Great I can help if you get a branch going, I was going to maybe take a stab at it as well.

  • ๐Ÿ‡จ๐Ÿ‡ฆCanada dstorozhuk Chicago ๐Ÿ‡บ๐Ÿ‡ธ, Toronto ๐Ÿ‡จ๐Ÿ‡ฆ, Kyiv ๐Ÿ‡บ๐Ÿ‡ฆ

    I am not going to start at least today, so if you you like you can start.
    The only think I want to push - I made some fixed in form it self, because it was bugy. Hovewer, it is not part of that issue, so I think we will just merge conflicts once we have one or another issue merged.

  • ๐Ÿ‡จ๐Ÿ‡ฆCanada dstorozhuk Chicago ๐Ÿ‡บ๐Ÿ‡ธ, Toronto ๐Ÿ‡จ๐Ÿ‡ฆ, Kyiv ๐Ÿ‡บ๐Ÿ‡ฆ

    While the team and I and worked on the task https://www.drupal.org/project/ai_seo/issues/3536408 โœจ Make report type configurable Active , we decided to move it into an own module because the same code can cover many more use cases than just SEO.

    I prompt everyone to switch to https://www.drupal.org/project/ai_content_advisor โ†’ since it is more flexible in creating new prompts types, and we have some ideas for future features that will be useful for others.

  • ๐Ÿ‡จ๐Ÿ‡ฆCanada dstorozhuk Chicago ๐Ÿ‡บ๐Ÿ‡ธ, Toronto ๐Ÿ‡จ๐Ÿ‡ฆ, Kyiv ๐Ÿ‡บ๐Ÿ‡ฆ

    Some fixes and new features in a new module:

    1. In a new module I also fixed the issue when for Anonymous users some HTML from Admin theme and logged-in users can show up.
    2. Also, fix a lot of small bugs in the code, specifically related to AJAX on the Analyze form.
    3. Added a block to show the Analyze form on the node page.
    4. Add a field to the report to show the used HTML, this can be useful for prompt results analysis.
    • j-vee โ†’ committed 9bcfedb5 on 1.x
      [#3536408] feat: Make report type configurable
      
      By: dstorozhuk
      By:...
  • ๐Ÿ‡ซ๐Ÿ‡ฎFinland j-vee Turku, Finland

    Thanks to both! I've updated the module to support configurable report types along with the fix to frontend HTML rendering for reports.

    I'll keep this module still active. Will develop it as well for personal needs that only relate to SEO but having a content advisor work with the same principle is definitely a worthwhile module to develop as well.

  • Now that this issue is closed, please review the contribution record.

    As a contributor, attribute any organization helped you, or if you volunteered your own time.

    Maintainers, please credit people who helped resolve this issue.

  • ๐Ÿ‡จ๐Ÿ‡ฆCanada dstorozhuk Chicago ๐Ÿ‡บ๐Ÿ‡ธ, Toronto ๐Ÿ‡จ๐Ÿ‡ฆ, Kyiv ๐Ÿ‡บ๐Ÿ‡ฆ

    I donโ€™t see the reasons keeping that module active. Our module can handle SEO and other cases with content.

    By default it provides SEO reports, but can be configured for other type of reports.

    We can have broader solutions which covers more cases with the same codebase. I added you as an maintainer to that new module, so you can implement your ideas there.

  • Status changed to Fixed 20 days ago
Production build 0.71.5 2024