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

[WIP] Add Mooclet Policy Parameters JSON Editor to Design Step #2091

Draft
wants to merge 6 commits into
base: dev
Choose a base branch
from

Conversation

zackcl
Copy link
Collaborator

@zackcl zackcl commented Nov 4, 2024

This PR adds the "Mooclet Policy Parameters" JSON editor below the "Payloads" table in the "Design" step. I've moved the existing JSON editor styles from the "Add Metrics" modal (add-metrics.component.scss and add-metrics.theme.scss) to styles.scss so that the styles can be applied globally.

Screenshot 2024-11-04 at 9 30 54 PM

TODO:

  • Make the "Mooclet Policy Parameters" JSON editor visible only when the "Assignment Algorithm" isn't "Random" or "Stratified Random Sampling"
  • Add mock policy parameter interfaces (schemas) and the default values to display in the JSON editor
  • Fetch all available policies, schemas, and default parameters from the backend either on startup or stepper open
  • Implement validation of the user-edited JSON object

Related Issues: #2074, #1937

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

Successfully merging this pull request may close these issues.

1 participant