Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Nov 7, 2025

Adds a section encouraging producers to use the Producer Platform for data updates, displayed in the same panel as the Edit and Nutripatrol actions.

Changes

  • Template: Added producer platform section to incomplete_or_incorrect_data.tt.json after existing edit/report actions
  • Translations: Added producer_platform_content and action_create_account_producer_platform strings to common.pot

The section appears for all users and links to the producer platform URL (automatically constructed from request subdomain).

{
    "element_type": "text",
    "text_element": {
        "html": `
        <p>[% lang('producer_platform_content') %]</p>
        <p><a href="[% request.producers_platform_url %]" class="button small">[% lang('action_create_account_producer_platform') %]</a></p>
        `
    }
}

Renders as:

If you are the producer of this product, you can send us up to date data using our Producer Platform.

[Create an account on our Free Pro Platform]

Original prompt

Can you add a section and an action button to the Report a problem Knowledge panel with something like If you are the producer of this product, you can send us up to date data using our Producer Platform.
Create an account on our Free Pro Platform


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

@sonarqubecloud
Copy link

sonarqubecloud bot commented Nov 7, 2025

Copilot AI changed the title [WIP] Add section and action button to report a problem panel Add producer platform call-to-action to Report Problem panel Nov 7, 2025
Copilot AI requested a review from teolemon November 7, 2025 14:51
Copilot finished work on behalf of teolemon November 7, 2025 14:51
@github-actions github-actions bot added 📖 Knowledge Panels https://wiki.openfoodfacts.org/Knowledge_panels Template::Toolkit The templating toolkit used by product opener. The starting point for HTML/JS/CSS fixes. 👮 Moderation 🌐 Translations labels Nov 7, 2025
@github-project-automation github-project-automation bot moved this to To discuss and validate in 🍊 Open Food Facts Server issues Nov 7, 2025
@sonarqubecloud
Copy link

sonarqubecloud bot commented Nov 7, 2025

@teolemon teolemon changed the title Add producer platform call-to-action to Report Problem panel feat: Add producer platform call-to-action to Report Problem panel Nov 7, 2025
@teolemon teolemon marked this pull request as ready for review November 7, 2025 15:13
@teolemon teolemon requested a review from a team as a code owner November 7, 2025 15:13
@codecov-commenter
Copy link

⚠️ JUnit XML file not found

The CLI was unable to find any JUnit XML files to upload.
For more help, visit our troubleshooting guide.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

📖 Knowledge Panels https://wiki.openfoodfacts.org/Knowledge_panels 👮 Moderation Template::Toolkit The templating toolkit used by product opener. The starting point for HTML/JS/CSS fixes. 🌐 Translations

Projects

Status: To discuss and validate
Status: In progress
Status: Backlog

Development

Successfully merging this pull request may close these issues.

3 participants