Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PADV 1580 - Create annotatorjs plugin for AI select and summarize #128

Merged
merged 1 commit into from
Oct 8, 2024

Conversation

alexjmpb
Copy link

Description:

This PR is part of the AI assistance project and aims to add the annotatorjs plugin that adds a button to summarize a selected text inside a text or HTML block.

How to test:

  • Setup devstack and pull changes.
  • Select a text inside a text or HTML block.
  • A new button should appear to summarize the text.
  • The button, when clicked should open the annotations modal.

Screenshots

image

Reviewers:

Copy link

@Serafin-dev Serafin-dev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some comments added

lms/static/js/edxnotes/plugins/ai_summarize.js Outdated Show resolved Hide resolved
lms/static/js/edxnotes/plugins/ai_summarize.js Outdated Show resolved Hide resolved
const summarizeButton = document.getElementById('summarizeButton');
summarizeButton.addEventListener('click', this.summarize);
},
summarize: function(event) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you are not going to use this function in this implementation, please avoid adding it here. @alexjmpb

lms/static/js/edxnotes/plugins/ai_summarize.js Outdated Show resolved Hide resolved
lms/static/js/edxnotes/plugins/ai_summarize.js Outdated Show resolved Hide resolved
lms/static/js/edxnotes/plugins/ai_summarize.js Outdated Show resolved Hide resolved
lms/static/js/edxnotes/plugins/ai_summarize.js Outdated Show resolved Hide resolved
@Serafin-dev Serafin-dev merged commit a94c821 into pearson-release/olive.stage Oct 8, 2024
24 of 35 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants