Skip to content

Commit fe6eb88

Browse files
oatymartwazelin
andauthored
Feature/additive custom claims UI (#169)
* feat: add preset claims while keeping existing claim contents * feat: add more custom claims * chore: update CHANGELOG * Update CHANGELOG.md Co-authored-by: Sergei Mikhailov <sergei.mikhailov@taotesting.com> Signed-off-by: Martin Nicholson <43652944+oatymart@users.noreply.github.com> * chore: update application_version --------- Signed-off-by: Martin Nicholson <43652944+oatymart@users.noreply.github.com> Co-authored-by: Sergei Mikhailov <sergei.mikhailov@taotesting.com>
1 parent 01f33a9 commit fe6eb88

4 files changed

Lines changed: 20 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,16 @@
11
CHANGELOG
22
=========
33

4+
2.11.0
5+
------
6+
7+
* Made claim selection non-destructive
8+
9+
2.10.3
10+
------
11+
12+
Fixed handling of concurrent AGS requests
13+
414
2.10.2
515
------
616

config/devkit/claims.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ parameters:
8181
deliverySettings.review.showScore: 'true'
8282
deliverySettings.review.showQuestion: 'false'
8383
deliverySettings.review.showUnShuffled: 'true'
84+
deliverySettings.review.allInOne: 'false'
8485
Custom – Proctored:
8586
name: !php/const \OAT\Library\Lti1p3Core\Message\Payload\LtiMessagePayloadInterface::CLAIM_LTI_CUSTOM
8687
value:
@@ -92,3 +93,7 @@ parameters:
9293
deliverySettings.plugins.add: 'taoQtiNuiTest/runner/plugins/panel/a11y/plugin'
9394
deliverySettings.plugins.remove: 'taoQtiNuiTest/runner/plugins/tools/highlighter/plugin,taoQtiNuiTest/runner/plugins/tools/scratchpad/plugin'
9495
deliverySettings.plugins: '{"readAloud": {"readAloudOption": "always-enabled"}, "a11yMenuPanel": {"openOnStart": true, "contrastTheme": {"enabled": true, "themes": ["default", "whiteOnBlue", "yellowOnBlack", "blueOnYellow", "greyOnGreen"]}, "groups": ["group-contrast", "group-pointer", "group-text", "group-zoom"]}}'
96+
Custom – Item Runner:
97+
name: !php/const \OAT\Library\Lti1p3Core\Message\Payload\LtiMessagePayloadInterface::CLAIM_LTI_CUSTOM
98+
value:
99+
deliverySettings.itemRunnerConfigElements: '{"ExtendedTextInteraction": {"spellCheckConfig": {"enabled": true, "providerId": "wproofreader", "providerConfig": {"lang": "nb_NO"}}}}'

config/services.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ parameters:
88
application_env: '%env(resolve:APP_ENV)%'
99
application_api_key: '%env(resolve:APP_API_KEY)%'
1010
application_vendors: '%kernel.project_dir%/vendor/composer/installed.php'
11-
application_version: '2.10.3'
11+
application_version: '2.11.0'
1212
container.dumper.inline_factories: true
1313
cache.redis.namespace: '%env(default:cache.redis.namespace.default:REDIS_CACHE_NAMESPACE)%'
1414
cache.redis.namespace.default: 'devkit'

templates/platform/message/ltiResourceLinkLaunch.html.twig

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,10 @@
225225
$(".editorClaim").click(function(event){
226226
try {
227227
var claims = JSON.parse($("#lti_resource_link_launch_claims").val() || "{}");
228-
claims[$(this).data('name')] = $(this).data('value');
228+
claims[$(this).data('name')] = {
229+
...$(this).data('value'),
230+
...claims[$(this).data('name')]
231+
};
229232
$("#lti_resource_link_launch_claims").val(JSON.stringify(claims, undefined, 4));
230233
$("#lti_resource_link_launch_claims").removeClass('is-invalid');
231234
$("#lti_resource_link_launch_claims").addClass('is-valid');

0 commit comments

Comments
 (0)