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

Support n-dimensional coord Qs #1251

Draft
wants to merge 4 commits into
base: master
Choose a base branch
from
Draft

Conversation

axlewin
Copy link
Contributor

@axlewin axlewin commented Dec 18, 2024

Extend coordinate questions to support any number of dimensions by replacing the x and y properties with a list of strings (and similarly for placeholder values).

This should be merged after the corresponding content changes and alongside the API validator changes.

Having null values in the coordinates array causes errors with Array.with(). It also causes persistence problems if an answer is submitted with blanks and then re-attempted.

Instead, initialise every coordinate value as the empty string.
Copy link

codecov bot commented Dec 18, 2024

Codecov Report

Attention: Patch coverage is 0% with 18 lines in your changes missing coverage. Please review.

Project coverage is 36.60%. Comparing base (b718bc8) to head (c4c5e11).

Files with missing lines Patch % Lines
...app/components/content/IsaacCoordinateQuestion.tsx 0.00% 18 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1251      +/-   ##
==========================================
- Coverage   36.61%   36.60%   -0.02%     
==========================================
  Files         451      451              
  Lines       19779    19785       +6     
  Branches     6486     6506      +20     
==========================================
  Hits         7243     7243              
- Misses      11881    12504     +623     
+ Partials      655       38     -617     

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

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