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

Refactor parseYAML and validateTreatmenSchema #105

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

shapeseas
Copy link
Collaborator

  • Use the data structure from safeParse in both. This is a result with success: true/false and, if true, data: [], if false, error: [].
  • Now there is a consistency in return from parseYAML and validateTreatmentSchema

 - Use the data structure from safeParse in both. This is a result with
     success: true/false and, if true, data: [], if false, error: [].
 - Now there is a consistency in return from parseYAML and
     validateTreatmentSchema
- Define a language and it's associated functions (parse, validate,
  save, loadDefault) in languageConfig.ts, ex. yaml deals with any
  treatments
- Makes the Code Editor more modular, as any new languages don't require
  edits to the CodeEditor itself
- TODO: dealing with multiple files (e.g. editing a prompt in the code
  editor using markdown), loading to/from files (localStorage is
  hardcoded which won't work)
Copy link

cypress bot commented Nov 7, 2024

deliberation-researcher-portal    Run #166

Run Properties:  status check failed Failed #166  •  git commit e257fd2561: Merge branch 'main' into eric/refactor-editor
Project deliberation-researcher-portal
Branch Review eric/refactor-editor
Run status status check failed Failed #166
Run duration 04m 02s
Commit git commit e257fd2561: Merge branch 'main' into eric/refactor-editor
Committer Eric Shapiro
View all properties for this run ↗︎

Test results
Tests that failed  Failures 1
Tests that were flaky  Flaky 0
Tests that did not run due to a developer annotating a test with .skip  Pending 0
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 16
View all changes introduced in this branch ↗︎

Tests for review

Failed  cypress/e2e/mockPlayer.cy.ts • 1 failed test

View Output

Test Artifacts
test spec > passes Test Replay Screenshots

@shapeseas shapeseas marked this pull request as ready for review December 30, 2024 18:59
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.

1 participant