diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5f8078267..df32d924a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,11 +1,22 @@ name: Release -on: workflow_dispatch +on: + workflow_dispatch: + inputs: + release_type: + description: 'Final release or beta' + required: true + type: choice + options: + - final + - beta jobs: release: if: github.repository == 'moodlemobile/moodleapp' runs-on: ubuntu-latest + env: + RELEASE_TYPE: ${{ github.event.inputs.release_type || 'final' }} steps: - uses: actions/checkout@v2 @@ -20,4 +31,4 @@ jobs: - name: Create release tags env: GIT_TOKEN: ${{ secrets.GIT_TOKEN }} - run: ./.github/scripts/release.sh + run: ./.github/scripts/release.sh $RELEASE_TYPE diff --git a/src/addons/mod/workshop/components/index/addon-mod-workshop-index.html b/src/addons/mod/workshop/components/index/addon-mod-workshop-index.html index a9ef7ca64..07801751f 100644 --- a/src/addons/mod/workshop/components/index/addon-mod-workshop-index.html +++ b/src/addons/mod/workshop/components/index/addon-mod-workshop-index.html @@ -13,15 +13,15 @@ [hasDataToSync]="hasOffline" (completionChanged)="onCompletionChange()"> - + -

{{ phases[workshop!.phase].title }}

+

{{ phases[workshop.phase].title }}

- - + @@ -45,7 +45,7 @@
- +

{{ 'core.description' | translate }}

@@ -56,14 +56,14 @@
-
+
- - + +

{{ 'addon.mod_workshop.conclusion' | translate }}

-
@@ -92,11 +92,11 @@
- +

{{ 'addon.mod_workshop.areainstructauthors' | translate }}

-
@@ -106,10 +106,10 @@ -

+

{{ 'addon.mod_workshop.yoursubmission' | translate }}

-

+

{{ 'addon.mod_workshop.yoursubmissionwithassessments' | translate }}

@@ -119,13 +119,13 @@

{{ 'addon.mod_workshop.noyoursubmission' | translate }}

-
- + @@ -133,7 +133,7 @@ - @@ -141,14 +141,13 @@ - - + +

{{ 'addon.mod_workshop.areainstructreviewers' | translate }}

+ [text]="workshop.instructreviewers" contextLevel="module" [contextInstanceId]="module.id" [courseId]="courseId">
@@ -167,7 +166,7 @@ @@ -175,13 +174,13 @@
- = PHASE_SUBMISSION && ((grades && grades.length) || (groupInfo && (groupInfo.separateGroups || groupInfo.visibleGroups)))"> -

{{ 'addon.mod_workshop.submissionsreport' | +

{{ 'addon.mod_workshop.submissionsreport' | translate }}

-

{{ 'addon.mod_workshop.gradesreport' | translate }} +

{{ 'addon.mod_workshop.gradesreport' | translate }}

@@ -189,7 +188,7 @@ - @@ -197,13 +196,13 @@ - + {{ 'core.previous' | translate }} - + {{ 'core.next' | translate }} diff --git a/src/addons/mod/workshop/components/index/index.ts b/src/addons/mod/workshop/components/index/index.ts index c8a255e7a..382a796c0 100644 --- a/src/addons/mod/workshop/components/index/index.ts +++ b/src/addons/mod/workshop/components/index/index.ts @@ -291,13 +291,13 @@ export class AddonModWorkshopIndexComponent extends CoreCourseModuleMainActivity await Promise.all(grades.map(async (grade) => { const submission: AddonModWorkshopSubmissionDataWithOfflineData = { - id: grade.submissionid, + id: grade.submissionid || 0, workshopid: workshop.id, example: false, authorid: grade.userid, - timecreated: grade.submissionmodified, - timemodified: grade.submissionmodified, - title: grade.submissiontitle, + timecreated: grade.submissionmodified || 0, + timemodified: grade.submissionmodified || 0, + title: grade.submissiontitle || '', content: '', contenttrust: 0, attachment: 0, diff --git a/src/addons/mod/workshop/components/submission/addon-mod-workshop-submission.html b/src/addons/mod/workshop/components/submission/addon-mod-workshop-submission.html index 68efe5b4e..a239d2aef 100644 --- a/src/addons/mod/workshop/components/submission/addon-mod-workshop-submission.html +++ b/src/addons/mod/workshop/components/submission/addon-mod-workshop-submission.html @@ -4,7 +4,7 @@ -

+

@@ -68,7 +68,7 @@ -

+

diff --git a/src/addons/mod/workshop/services/workshop.ts b/src/addons/mod/workshop/services/workshop.ts index 582d61195..5e551e376 100644 --- a/src/addons/mod/workshop/services/workshop.ts +++ b/src/addons/mod/workshop/services/workshop.ts @@ -1766,9 +1766,9 @@ export type AddonModWorkshoGradesReportData = { export type AddonModWorkshopGradesData = { userid: number; // The id of the user being displayed in the report. - submissionid: number; // Submission id. - submissiontitle: string; // Submission title. - submissionmodified: number; // Timestamp submission was updated. + submissionid?: number; // Submission id. + submissiontitle?: string; // Submission title. + submissionmodified?: number; // Timestamp submission was updated. submissiongrade?: number; // Aggregated grade for the submission. gradinggrade?: number; // Computed grade for the assessment. submissiongradeover?: number; // Grade for the assessment overrided by the teacher. diff --git a/src/core/components/mod-icon/mod-icon.scss b/src/core/components/mod-icon/mod-icon.scss index d8a742862..d7a2d78b0 100644 --- a/src/core/components/mod-icon/mod-icon.scss +++ b/src/core/components/mod-icon/mod-icon.scss @@ -26,13 +26,6 @@ } } } - - &.other { - img { - filter: var(--filter); - } - } - } img { diff --git a/src/core/features/settings/pages/licenses/licenses.html b/src/core/features/settings/pages/licenses/licenses.html index fe3131614..485c3c63e 100644 --- a/src/core/features/settings/pages/licenses/licenses.html +++ b/src/core/features/settings/pages/licenses/licenses.html @@ -12,7 +12,7 @@ + [placeholder]="'core.filter' | translate" class="ion-margin-top"> diff --git a/src/core/features/user/pages/about/about.scss b/src/core/features/user/pages/about/about.scss index 72c979e18..aff9ba566 100644 --- a/src/core/features/user/pages/about/about.scss +++ b/src/core/features/user/pages/about/about.scss @@ -1,6 +1,9 @@ :host { - .core-user-profile-maininfo::part(native) { - flex-direction: column; + .core-user-profile-maininfo { + padding-top: 16px; + &::part(native) { + flex-direction: column; + } } core-user-avatar { --core-avatar-size: var(--core-large-avatar-size); diff --git a/src/core/features/user/tests/behat/snapshots/test-basic-usage-of-user-features-view-profile_21.png b/src/core/features/user/tests/behat/snapshots/test-basic-usage-of-user-features-view-profile_21.png index 1fb332174..72b3fce00 100644 Binary files a/src/core/features/user/tests/behat/snapshots/test-basic-usage-of-user-features-view-profile_21.png and b/src/core/features/user/tests/behat/snapshots/test-basic-usage-of-user-features-view-profile_21.png differ diff --git a/src/theme/theme.base.scss b/src/theme/theme.base.scss index 1d01e3107..99d13131a 100644 --- a/src/theme/theme.base.scss +++ b/src/theme/theme.base.scss @@ -800,7 +800,7 @@ body.core-iframe-fullscreen ion-router-outlet { .item.item-file { ion-thumbnail { - --size: 24px; + --size: 32px; width: var(--size); height: var(--size); }