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

Merge down hotfixes into unstable #3734

Merged
merged 74 commits into from
Oct 12, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
74 commits
Select commit Hold shift + click to select a range
07520a8
Merge branch 'master' into hotfixes
bjester Sep 16, 2022
7a87cc6
Merge pull request #3644 from learningequality/unstable
bjester Sep 19, 2022
6fcbeef
Ensure we set item-text, so option text renders correctly
bjester Sep 22, 2022
7760c1d
Update metadata inheritance behaviour to pass through folders and onl…
rtibbles Sep 23, 2022
2b406ba
Merge pull request #3667 from bjester/multi-select-text
marcellamaki Sep 23, 2022
0ed50bf
Refactor nested field getter for bulk editing
bjester Sep 23, 2022
b18228c
Make language inherited from ancestors also.
rtibbles Sep 23, 2022
8c89cc9
Merge pull request #3671 from rtibbles/topic_metadata_updates
bjester Sep 23, 2022
fbe6016
Merge pull request #3670 from bjester/bulk-metadata-editing
rtibbles Sep 23, 2022
d767f21
Resolve issue with selection mismatch between autocomplete and checkbox
bjester Sep 23, 2022
e8a6530
Merge pull request #3674 from bjester/category-option-selection
rtibbles Sep 23, 2022
80df99d
Adds testing for publishing of old and new mastery models. Fixes issu…
rtibbles Sep 27, 2022
8128d94
Coerce returned channel_id to be a simple string rather than full uuid.
rtibbles Sep 27, 2022
1b1ed50
Remove duplication apply modifications function.
rtibbles Sep 27, 2022
ac9ace6
Update all indexedDB listener mutations to set the map to ensure reac…
rtibbles Sep 27, 2022
7b482e7
Coerce all file durations with floor instead of ceil.
rtibbles Sep 27, 2022
796b011
Merge pull request #3685 from rtibbles/hunting_for_ceils
rtibbles Sep 28, 2022
0990594
Add reactivity test for Content node indexedDB update mutation.
rtibbles Sep 28, 2022
2eb9936
Fixed paragraph formatting and broken links within studio welcome email
LianaHarris360 Sep 28, 2022
e37f682
Set empty nested maps if they don't exist.
rtibbles Sep 28, 2022
4bffcaf
Update strings based on review.
rtibbles Sep 28, 2022
ac85bcc
Update resources needed.
rtibbles Sep 29, 2022
22d3a47
Adds a persistent hint to add more detail for other supplies.
rtibbles Sep 29, 2022
4832325
Updated domain value for dictionaries within users.py
LianaHarris360 Sep 29, 2022
4ea3285
Handle reverting moves; fix error when no changes were observed
bjester Sep 29, 2022
bfd0bef
Handle case where multiple content tags exist for tag_name and null c…
rtibbles Sep 29, 2022
c0eb5df
Remove unused decorator from models.py
rtibbles Sep 29, 2022
dd226be
Add tests for tag syncing and regression test for fix.
rtibbles Sep 29, 2022
292e59c
Set original_channel_id on the frontend to prevent errors on first re…
rtibbles Sep 29, 2022
10f4e34
Only prevent refresh from the backend if changes have not been synced.
rtibbles Sep 29, 2022
855a897
Merge pull request #3700 from bjester/fix-revert
rtibbles Sep 29, 2022
31c7d64
Do existence check on navigator.clipboard.
rtibbles Sep 29, 2022
99a75c8
Merge pull request #3687 from rtibbles/mutations
bjester Sep 29, 2022
eb510f0
Merge pull request #3697 from rtibbles/strings_n_things
bjester Sep 29, 2022
9129835
Sets a default ordering on the channel endpoint.
rtibbles Sep 29, 2022
7f78087
Add separate conditions for label mapping mis-match so strings displa…
marcellamaki Sep 30, 2022
c76a65e
Merge pull request #3701 from rtibbles/that_syncing_feeling_again
bjester Sep 30, 2022
a81113b
Merge pull request #3684 from rtibbles/mastery_not_yet_100
bjester Sep 30, 2022
0e22f28
Merge pull request #3704 from marcellamaki/fix-metadata-labels
bjester Sep 30, 2022
7de1bf1
Change Reference to be a completion option, rather than a duration op…
marcellamaki Sep 30, 2022
738ad31
Update gherkin scenarios corresponding to changes in completion to no…
marcellamaki Sep 30, 2022
abea46c
Update tests in line with new conditions
marcellamaki Sep 30, 2022
e26f210
Add missing string after rebase
marcellamaki Sep 30, 2022
0e449db
Updated slide presentation link
LianaHarris360 Sep 30, 2022
0b482e6
Update document model/threshold behavior for reference option
marcellamaki Sep 30, 2022
02e7666
Resolve issues with editing and browsing newly added topics
bjester Sep 30, 2022
08f874a
Fix string
marcellamaki Sep 30, 2022
765c113
Add existance check to completion_criteria to prevent error in comple…
marcellamaki Sep 30, 2022
05b3149
Merge pull request #3705 from marcellamaki/updates-to-completion-dura…
rtibbles Sep 30, 2022
63fa6aa
Simplify layout fluidness, resolving issues with dropdown menu display
bjester Sep 26, 2022
b51181c
Add DropdownWrapper, refactor for consistent display
bjester Sep 28, 2022
77dc228
Stop searching when body is reached
bjester Sep 29, 2022
98faffb
Flyby RTL fixes
bjester Sep 29, 2022
e135891
Remove lazy so test will pass
bjester Sep 29, 2022
514acc0
Merge pull request #3696 from LianaHarris360/welcome-email-formatting
bjester Sep 30, 2022
982fc02
Update where method logic to prevent fetches that would fail
bjester Sep 30, 2022
909ee05
Merge pull request #3707 from bjester/topics-are-folders
rtibbles Sep 30, 2022
6bb154d
Revert incorrect RTL fixes due to devserver
bjester Sep 30, 2022
4a98923
Add dropdown wrapper to a couple more selects
bjester Sep 30, 2022
d97db89
Merge pull request #3679 from bjester/import-search-layout
marcellamaki Sep 30, 2022
e8421ab
Merge pull request #3698 from rtibbles/clipboard_context
marcellamaki Sep 30, 2022
98f38d8
Merge pull request #3702 from rtibbles/ordah_ordah
marcellamaki Oct 3, 2022
32f611f
Tweaks to welcome email, and signatures across all html emails
bjester Oct 4, 2022
b3c9024
Merge pull request #3714 from bjester/email-tweaks
bjester Oct 4, 2022
fbb8b46
Remove feature flag for channel quizzes, to improve completion and du…
marcellamaki Oct 5, 2022
247481f
Hide published status when syncing
bjester Oct 5, 2022
ed17889
Merge pull request #3717 from bjester/sync-progress
rtibbles Oct 6, 2022
4d89608
Remove obsolete test
marcellamaki Oct 6, 2022
f079615
Merge pull request #3722 from marcellamaki/updates-to-completion-dura…
rtibbles Oct 6, 2022
a44fa67
Add logging around task fetching and enqueuing
bjester Oct 7, 2022
1561225
Reset new/updated descendant flag on publish
bjester Oct 12, 2022
08d80b1
Merge pull request #3732 from bjester/publish-status
rtibbles Oct 12, 2022
ce9a704
Merge pull request #3724 from bjester/fetch-task-logging
rtibbles Oct 12, 2022
2972b71
Merge branch 'unstable' into hotfixes-mergedd
bjester Oct 12, 2022
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
25 changes: 16 additions & 9 deletions contentcuration/contentcuration/frontend/accounts/pages/Create.vue
Original file line number Diff line number Diff line change
Expand Up @@ -99,15 +99,20 @@
<h1 class="font-weight-bold my-2 subheading">
{{ $tr('sourceLabel') }}*
</h1>
<VSelect
v-model="form.source"
:items="sourceOptions"
item-text="label"
item-value="id"
box
menu-props="offsetY"
:label="$tr('sourcePlaceholder')"
/>
<DropdownWrapper>
<template #default="{ attach, menuProps }">
<VSelect
v-model="form.source"
:items="sourceOptions"
item-text="label"
item-value="id"
box
:menu-props="menuProps"
:attach="attach"
:label="$tr('sourcePlaceholder')"
/>
</template>
</DropdownWrapper>
<VSlideYTransition>
<TextArea
v-if="form.source === sources.ORGANIZATION"
Expand Down Expand Up @@ -185,10 +190,12 @@
import Banner from 'shared/views/Banner';
import Checkbox from 'shared/views/form/Checkbox';
import { policies } from 'shared/constants';
import DropdownWrapper from 'shared/views/form/DropdownWrapper';

export default {
name: 'Create',
components: {
DropdownWrapper,
ImmersiveModalLayout,
TextField,
EmailField,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,14 @@
{{ value }}
</div>
</VChip>
<VBtn icon small right data-test="copy" @click="copyToClipboard">
<VBtn
v-if="clipboardAvailable"
icon
small
right
data-test="copy"
@click="copyToClipboard"
>
<Icon small>
content_copy
</Icon>
Expand All @@ -30,11 +37,18 @@
type: String,
},
},
computed: {
clipboardAvailable() {
return Boolean(navigator.clipboard);
},
},
methods: {
copyToClipboard() {
navigator.clipboard.writeText(this.value).then(() => {
this.$store.dispatch('showSnackbarSimple', this.successMessage);
});
if (this.clipboardAvailable) {
navigator.clipboard.writeText(this.value).then(() => {
this.$store.dispatch('showSnackbarSimple', this.successMessage);
});
}
},
},
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,14 @@ function makeWrapper() {
describe('clipboardChip', () => {
let wrapper;
beforeEach(() => {
navigator.clipboard = {
writeText: jest.fn(),
};
wrapper = makeWrapper();
});
afterEach(() => {
delete navigator.clipboard;
});
it('should fire a copy operation on button click', () => {
const copyToClipboard = jest.fn();
wrapper.setMethods({ copyToClipboard });
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,20 @@
:rules="spaceRules"
/>
</VFlex>
<VFlex style="max-width: 75px;">
<VSelect
v-model="unit"
:items="unitOptions"
:menuProps="{ offsetY: true }"
box
single-line
required
:rules="unitRules"
/>
</VFlex>
<DropdownWrapper component="VFlex" style="max-width: 75px;">
<template #default="{ attach, menuProps }">
<VSelect
v-model="unit"
:items="unitOptions"
:attach="attach"
:menuProps="menuProps"
box
single-line
required
:rules="unitRules"
/>
</template>
</DropdownWrapper>
</VLayout>
<VBtn
v-if="showCancel"
Expand Down Expand Up @@ -55,6 +58,7 @@
import { mapActions } from 'vuex';
import findLastKey from 'lodash/findLastKey';
import { ONE_B, ONE_KB, ONE_MB, ONE_GB, ONE_TB } from 'shared/constants';
import DropdownWrapper from 'shared/views/form/DropdownWrapper';

const units = {
ONE_B,
Expand All @@ -66,6 +70,7 @@

export default {
name: 'UserStorage',
components: { DropdownWrapper },
props: {
value: {
type: Number,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,21 @@
<Uploader ref="uploader" :presetID="imagePreset">
<template #default="{ handleFiles }">
<VLayout>
<VFlex xs7 lg5>
<VSelect
:key="kindSelectKey"
:items="kindSelectItems"
:value="kind"
:label="$tr('questionTypeLabel')"
data-test="kindSelect"
:menu-props="{ offsetY: true }"
box
@input="onKindUpdate"
/>
</VFlex>
<DropdownWrapper component="VFlex" xs7 lg5>
<template #default="{ attach, menuProps }">
<VSelect
:key="kindSelectKey"
:items="kindSelectItems"
:value="kind"
:label="$tr('questionTypeLabel')"
data-test="kindSelect"
:menu-props="menuProps"
:attach="attach"
box
@input="onKindUpdate"
/>
</template>
</DropdownWrapper>
</VLayout>

<VLayout>
Expand Down Expand Up @@ -115,10 +118,12 @@
import MarkdownEditor from 'shared/views/MarkdownEditor/MarkdownEditor/MarkdownEditor';
import MarkdownViewer from 'shared/views/MarkdownEditor/MarkdownViewer/MarkdownViewer';
import { FormatPresetsNames } from 'shared/leUtils/FormatPresets';
import DropdownWrapper from 'shared/views/form/DropdownWrapper';

export default {
name: 'AssessmentItemEditor',
components: {
DropdownWrapper,
ErrorList,
MarkdownEditor,
MarkdownViewer,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -331,8 +331,15 @@
return null;
},
levels(level) {
const match = Object.keys(ContentLevel).find(key => ContentLevel[key] === level);
let match = Object.keys(ContentLevel).find(key => ContentLevel[key] === level);
if (match) {
if (match === 'PROFESSIONAL') {
match = 'specializedProfessionalTraining';
} else if (match === 'WORK_SKILLS') {
match = 'allLevelsWorkSkills';
} else if (match === 'BASIC_SKILLS') {
match = 'allLevelsBasicSkills';
}
return this.translateMetadataString(camelCase(match));
}
return null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
<script>

import { mapActions, mapGetters } from 'vuex';
import { RouteNames } from '../constants';
import { RouteNames, TabNames } from '../constants';
import MoveModal from './move/MoveModal';
import { ContentNode } from 'shared/data/resources';
import { withChangeTracker } from 'shared/data/changes';
Expand Down Expand Up @@ -119,6 +119,7 @@
params: {
...this.$route.params,
detailNodeIds: newId,
tab: TabNames.DETAILS,
},
});
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -593,7 +593,21 @@
.sort()
.filter(k => ids.includes(ContentLevel[k]));
if (matches && matches.length > 0) {
return this.metadataListText(matches);
let mappedMatches = [];
let newMatch;
matches.map(match => {
if (match === 'PROFESSIONAL') {
newMatch = 'specializedProfessionalTraining';
} else if (match === 'WORK_SKILLS') {
newMatch = 'allLevelsWorkSkills';
} else if (match === 'BASIC_SKILLS') {
newMatch = 'allLevelsBasicSkills';
} else {
newMatch = match;
}
mappedMatches.push(newMatch);
});
return this.metadataListText(mappedMatches);
} else {
return '-';
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
:value="accessibilityItem.value"
:label="accessibilityItem.label"
color="primary"
:data-test="`checkbox-${accessibilityItem.label}`"
:data-test="`checkbox-${accessibilityItem.help}`"
>
<template #label>
<span class="text-xs-left">{{ accessibilityItem.label }}</span>
Expand All @@ -22,7 +22,7 @@
:text="$tr(accessibilityItem.help)"
bottom
class="px-2"
:data-test="`tooltip-${accessibilityItem.label}`"
:data-test="`tooltip-${accessibilityItem.help}`"
/>
</template>
</Checkbox>
Expand Down Expand Up @@ -89,11 +89,11 @@
/**
* Strings for the help tooltips
*/
altText: `Alternative text is provided for visual content (e.g., via the HTML alt attribute).`,
audioDescription: `Audio descriptions are available (e.g., via an HTML5 track element with kind="descriptions")`,
highContrast: `Content meets the visual contrast threshold set out in WCAG Success Criteria 1.4.6`,
signLanguage: `Synchronized sign language intepretation is available for audio and video content.`,
taggedPdf: `The structures in a PDF have been tagged to improve the navigation of the content.`,
altText: `Visual elements in the resource have descriptions that can be accessed by screen readers for the benefit of blind learners`,
audioDescription: `The resource contains a second narration audio track that provides additional information for the benefit of blind users and those with low vision`,
highContrast: `The resource text and visual elements are displayed with high contrast for the benefit of users with low vision`,
signLanguage: `Synchronized sign language intepretation is available for audio and video content`,
taggedPdf: `The document contains PDF tags that can be accessed by screen readers for the benefit of blind learners`,
/* eslint-enable kolibri/vue-no-unused-translations */
},
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,22 @@
</VFlex>
<VFlex
v-else-if="selectedDuration === 'shortActivity' || selectedDuration === 'longActivity'"
class="activity-duration-container"
md3
sm3
>
<VAutocomplete
v-model.number="minutes"
:step="increments"
box
:label="$tr('minutesRequired')"
:items="availableNumbers"
:menu-props="{ offsetY: true, lazy: true, zIndex: 4 }"
attach=".activity-duration-container"
/>
<DropdownWrapper>
<template #default="{ attach, menuProps }">
<VAutocomplete
v-model.number="minutes"
:step="increments"
box
:label="$tr('minutesRequired')"
:items="availableNumbers"
:menu-props="menuProps"
:attach="attach"
/>
</template>
</DropdownWrapper>
</VFlex>
<VFlex v-else md3 sm3>
<VTextField
Expand Down Expand Up @@ -58,6 +61,7 @@
getActivityDurationValidators,
translateValidator,
} from 'shared/utils/validation';
import DropdownWrapper from 'shared/views/form/DropdownWrapper';

const SHORT_MIN = 1;
const SHORT_MAX = 30;
Expand All @@ -70,6 +74,7 @@

export default {
name: 'ActivityDuration',
components: { DropdownWrapper },
props: {
selectedDuration: {
type: String,
Expand Down Expand Up @@ -183,19 +188,15 @@
$trs: {
minutesRequired: 'Minutes',
optionalLabel:
'(Optional) Duration until resource is marked as complete. This value will not be shown to learners.',
'(Optional) Time required for the resource to be marked as completed. This value will not be displayed to learners.',
notOptionalLabel:
'Duration until resource is marked as complete. This value will not be shown to learners.',
'Time required for the resource to be marked as completed. This value will not be displayed to learners.',
},
};

</script>
<style lang="less" scoped>

.activity-duration-container {
position: relative;
}

.defaultUpload {
margin: 0.8em;
font-size: 1.2em;
Expand Down
Loading