Skip to content

Edit prompt template from studio#183

Merged
felipemontoya merged 13 commits into
openedx:mainfrom
eduNEXT:fmo/edit-prompt-studio
May 8, 2026
Merged

Edit prompt template from studio#183
felipemontoya merged 13 commits into
openedx:mainfrom
eduNEXT:fmo/edit-prompt-studio

Conversation

@felipemontoya
Copy link
Copy Markdown
Member

@felipemontoya felipemontoya commented Mar 25, 2026

This PR adds a basic UI for looking at the configured Profiles and their templates from studio.

This first UI allows users to look at the profile at the scope and should these user templates be able to edit the template. Users that have "admin" course team permissions will be able to read the profile and scope in the studio UI and be able to write to the prompt template.

When saving, if a template is used in more than one profile, users are warned but allowed to continue if they so choose.

These images show how the UI looks:

image image

@openedx-webhooks openedx-webhooks added open-source-contribution PR author is not from Axim or 2U core contributor PR author is a Core Contributor (who may or may not have write access to this repo). labels Mar 25, 2026
@openedx-webhooks
Copy link
Copy Markdown

openedx-webhooks commented Mar 25, 2026

Thanks for the pull request, @felipemontoya!

This repository is currently maintained by @felipemontoya.

Once you've gone through the following steps feel free to tag them in a comment and let them know that your changes are ready for engineering review.

🔘 Get product approval

If you haven't already, check this list to see if your contribution needs to go through the product review process.

  • If it does, you'll need to submit a product proposal for your contribution, and have it reviewed by the Product Working Group.
    • This process (including the steps you'll need to take) is documented here.
  • If it doesn't, simply proceed with the next step.
🔘 Provide context

To help your reviewers and other members of the community understand the purpose and larger context of your changes, feel free to add as much of the following information to the PR description as you can:

  • Dependencies

    This PR must be merged before / after / at the same time as ...

  • Blockers

    This PR is waiting for OEP-1234 to be accepted.

  • Timeline information

    This PR must be merged by XX date because ...

  • Partner information

    This is for a course on edx.org.

  • Supporting documentation
  • Relevant Open edX discussion forum threads
🔘 Get a green build

If one or more checks are failing, continue working on your changes until this is no longer the case and your build turns green.

Details
Where can I find more information?

If you'd like to get more details on all aspects of the review process for open source pull requests (OSPRs), check out the following resources:

When can I expect my changes to be merged?

Our goal is to get community contributions seen and reviewed as efficiently as possible.

However, the amount of time that it takes to review and merge a PR can vary significantly based on factors such as:

  • The size and impact of the changes that it introduces
  • The need for product review
  • Maintenance status of the parent repository

💡 As a result it may take up to several weeks or months to complete a review and merge your PR.

@codecov
Copy link
Copy Markdown

codecov Bot commented Mar 25, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 95.22%. Comparing base (972f2fe) to head (c754525).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #183      +/-   ##
==========================================
+ Coverage   95.13%   95.22%   +0.09%     
==========================================
  Files          67       68       +1     
  Lines        7322     7901     +579     
  Branches      387      414      +27     
==========================================
+ Hits         6966     7524     +558     
- Misses        267      286      +19     
- Partials       89       91       +2     
Flag Coverage Δ
unittests 95.22% <ø> (+0.09%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@felipemontoya felipemontoya changed the title Fmo/edit prompt studio WIP - edit prompt studio Mar 25, 2026
@felipemontoya felipemontoya self-assigned this Mar 25, 2026
@mphilbrick211 mphilbrick211 moved this from Needs Triage to Ready for Review in Contributions Mar 27, 2026
@mphilbrick211 mphilbrick211 moved this from Ready for Review to Waiting on Author in Contributions Apr 6, 2026
@Pavilion4ik
Copy link
Copy Markdown
Contributor

Hi @felipemontoya ,

I noticed that during the AI Extensions Monthly Working Group yesterday you discussed an idea similar to what I was planning to introduce in this task.

Since you’re already working on it, I decided not to duplicate the effort. Instead, I’ve created a patch file that might be useful for you - feel free to take a look when you have time.

course_author_ai_settings_proposal.md
course_author_ai_settings.patch

felipemontoya and others added 5 commits May 6, 2026 16:40
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
… using authz

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@felipemontoya felipemontoya force-pushed the fmo/edit-prompt-studio branch from 4e84e27 to e202981 Compare May 6, 2026 23:30
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@felipemontoya felipemontoya requested a review from Copilot May 6, 2026 23:46
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 12 out of 12 changed files in this pull request and generated 11 comments.

Comment thread frontend/src/services/profilesService.ts Outdated
Comment thread frontend/src/ai-extensions-settings/components/WorkflowsConfigTab.tsx Outdated
Comment thread frontend/src/ai-extensions-settings/components/WorkflowsConfigTab.tsx Outdated
Comment thread frontend/src/ai-extensions-settings/components/WorkflowsConfigTab.tsx Outdated
Comment thread frontend/src/ai-extensions-settings/components/WorkflowsConfigTab.tsx Outdated
Comment thread backend/tests/test_api.py Outdated
Comment thread backend/openedx_ai_extensions/api/v1/workflows/permissions.py Outdated
Comment thread backend/openedx_ai_extensions/api/v1/workflows/views.py Outdated
Comment thread backend/openedx_ai_extensions/api/v1/workflows/views.py Outdated
Comment thread backend/openedx_ai_extensions/api/v1/workflows/permissions.py Outdated
felipemontoya and others added 3 commits May 7, 2026 13:20
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@felipemontoya felipemontoya changed the title WIP - edit prompt studio Edit prompt template from studio May 7, 2026
…ilable

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@felipemontoya felipemontoya force-pushed the fmo/edit-prompt-studio branch 2 times, most recently from f69c938 to fe15270 Compare May 8, 2026 00:12
@felipemontoya felipemontoya force-pushed the fmo/edit-prompt-studio branch from fe15270 to 6e1ae6e Compare May 8, 2026 00:25
@felipemontoya
Copy link
Copy Markdown
Member Author

@Henrrypg I think this is worth a human review now. I fixed the permission model so they work in ulmo/teak.

@felipemontoya felipemontoya requested a review from Henrrypg May 8, 2026 00:30
Copy link
Copy Markdown
Contributor

@Henrrypg Henrrypg left a comment

Choose a reason for hiding this comment

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

Just ask to remove some inlines, It is working fine in dev and the code looks very good, thanks @felipemontoya

Comment thread backend/openedx_ai_extensions/api/v1/workflows/permissions.py Outdated
Comment thread backend/openedx_ai_extensions/api/v1/workflows/permissions.py Outdated
Comment thread backend/openedx_ai_extensions/api/v1/workflows/permissions.py Outdated
@felipemontoya felipemontoya merged commit 76e5107 into openedx:main May 8, 2026
10 checks passed
@github-project-automation github-project-automation Bot moved this from Waiting on Author to Done in Contributions May 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core contributor PR author is a Core Contributor (who may or may not have write access to this repo). open-source-contribution PR author is not from Axim or 2U

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

7 participants