empirical-org / Empirical-Core

Empirical Core is the mono repo for the Quill.org codebase. This repo contains both the Quill Learning Tools, such as Quill Connect, and the Quill Learning Management System, the platform that enables teachers to provide assignments and view results. (Empirical is the name of the nonprofit building Quill.org).
http://www.quill.org/
GNU Affero General Public License v3.0
25 stars 4 forks source link

trial runner page pt 3 #12518

Open emilia-friedberg opened 4 days ago

emilia-friedberg commented 4 days ago

WHAT

Add functionality to view and create prompt examples, and actually run the trial from the TrialRunner page. This is the last of the work for this page.

WHY

We want to be able to run trials in the Evidence CMS.

HOW

Mostly following React/Rails paradigms established elsewhere in the project. I did notice, in the course of testing this, that the structure I was using for requestPut and requestPost handling wasn't handling errors correctly (due to the backend returning a 404 instead of a 200), so I updated some of the functions in that file to fix that.

Bonus: noticed the RadioButton component had the wrong type set, so I updated that, which updated some other snapshots around the site.

Screenshots

Screenshot 2024-11-04 at 12 23 28 PM Screenshot 2024-11-04 at 12 23 53 PM Screenshot 2024-11-04 at 12 23 37 PM

Notion Card Links

https://www.notion.so/quill/Trial-Runner-Page-12ed42e6f9418002b2f0e2e7917a8117?pvs=4

What have you done to QA this feature?

Tested on staging, and having Jamie test on staging.

PR Checklist Your Answer
Have you added and/or updated tests? YES
Have you deployed to Staging? YES
Self-Review: Have you done an initial self-review of the code below on Github? YES