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

Feature/ADF-1789/Side by side authoring #2518

Merged
Merged
Show file tree
Hide file tree
Changes from 24 commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
a239f1b
feat: manage the test translation status
jsconan Oct 18, 2024
221b0ee
feat: style for the test translation status
jsconan Oct 18, 2024
b9ff3fd
fix: height of the side bar overflow the page when the test translati…
jsconan Oct 18, 2024
e2634a0
feat: first implementation for translating titles in the test
jsconan Oct 18, 2024
707516d
fix: console error when validating a field not having DOM identifier
jsconan Oct 21, 2024
6cb5f8a
feat: set the identifiers to readonly when the translation flag is set
jsconan Oct 21, 2024
5d1e0df
feat: apply the translation mode to all titles and keep connection wi…
jsconan Oct 21, 2024
db187fd
refactor: move the translation related model preparation to a shared …
jsconan Oct 21, 2024
5545355
refactor: invert the order of original/translation to translation/ori…
jsconan Oct 22, 2024
5e42561
feat: add support for translating rubric blocks
jsconan Oct 22, 2024
7a54761
refactor: move most of the translation management to the helpers, get…
jsconan Oct 23, 2024
1076156
fix: properties mismatch when getting the translation language
jsconan Oct 23, 2024
df76a8a
feat: show the translation language with the test title
jsconan Oct 23, 2024
418d216
fix: use a better semantic selector for the configuration problems in…
jsconan Oct 23, 2024
db6bd1e
feat: add the translation status for each item
jsconan Oct 23, 2024
1237cf5
feat: split and expose more translation helpers, keep the origin mode…
jsconan Oct 23, 2024
59bda45
feat: sync new parts with the original model if they exist
jsconan Oct 23, 2024
18881ec
refactor: use a single request when getting the items status instead …
jsconan Oct 24, 2024
d5bd58c
fix: better connect the translation status with items in the test model
jsconan Oct 29, 2024
ebe6c90
feat: hide the actions on the testparts/sections/items/rubrics
jsconan Oct 29, 2024
32eb00a
Merge branch 'feat/HKD-6/integration' into feature/ADF-1789/side-by-s…
jsconan Oct 29, 2024
6930c99
fix: adjust size of reduced toolbars in side-by-side authoring
jsconan Oct 29, 2024
31fef68
feat: hide properties in side-by-side authoring
jsconan Oct 29, 2024
998ee1c
feat: hide the items panel in side-by-side authoring
jsconan Oct 29, 2024
425101b
fix: restore the back button in side-by-side authoring
jsconan Oct 30, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion actions/class.Creator.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,9 @@ public function index()
$testModel = $this->getServiceManager()->get(TestModelService::SERVICE_ID);

// Add support for translation and side-by-side view
$originResourceUri = $this->getRequestParameter('originResourceUri');
$this->setData('translation', $this->getRequestParameter('translation') ?? "false");
$this->setData('originResourceUri', json_encode($this->getRequestParameter('originResourceUri')));
$this->setData('originResourceUri', json_encode($originResourceUri));

$items = $testModel->getItems(new core_kernel_classes_Resource(tao_helpers_Uri::decode($testUri)));
foreach ($items as $item) {
Expand All @@ -63,6 +64,7 @@ public function index()
$this->setData('categoriesPresets', json_encode($categoriesPresetService->getAvailablePresets($runtimeConfig)));

$this->setData('loadUrl', _url('getTest', null, null, ['uri' => $testUri]));
$this->setData('loadOriginUrl', _url('getTest', null, null, ['uri' => $originResourceUri]));
$this->setData('saveUrl', _url('saveTest', null, null, ['uri' => $testUri]));

if (common_ext_ExtensionsManager::singleton()->isInstalled('taoBlueprints')) {
Expand Down
2 changes: 1 addition & 1 deletion views/css/creator.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion views/css/creator.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion views/css/test-runner.css

Large diffs are not rendered by default.

Loading