From 5567884bf089b5420bfcf45a45a84b9526953511 Mon Sep 17 00:00:00 2001 From: Lars Date: Thu, 24 Oct 2024 11:29:29 +0200 Subject: [PATCH 01/18] chore(editor): Release v0.17.0 of editor --- packages/editor/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/editor/package.json b/packages/editor/package.json index d5203f10e6..ea01e64f55 100644 --- a/packages/editor/package.json +++ b/packages/editor/package.json @@ -1,6 +1,6 @@ { "name": "@serlo/editor", - "version": "0.16.0", + "version": "0.17.0", "homepage": "https://de.serlo.org/editor", "bugs": { "url": "https://github.com/serlo/frontend/issues" From ea0779c2d08417f74eaf8e9b7c1787583014f728 Mon Sep 17 00:00:00 2001 From: GitHub Action Bot <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 24 Oct 2024 09:31:45 +0000 Subject: [PATCH 02/18] chore: update changelog for version 0.17.0 --- packages/editor/CHANGELOG.md | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/packages/editor/CHANGELOG.md b/packages/editor/CHANGELOG.md index e9d179787c..a67e43b188 100644 --- a/packages/editor/CHANGELOG.md +++ b/packages/editor/CHANGELOG.md @@ -1,7 +1,13 @@ -## Changelog for version 0.16.0 +## Changelog for version 0.17.0 -- feat(editor): Enable gallery plugin, free text excercise plugin and interactive image (dropzone) plugin -- fix(rows): check if interactive exercise plugins are supported in menu items filter -- Some changes to make editor code work in serlo-editor-as-lti-tool -- fix(editor-packages): Use one redux store per instance of editor -- fix(e2e): adapt math tests +- feat(editor): show user a warning in test environments that content might disappear. Thank you @LarsTheGlidingSquirrel in https://github.com/serlo/frontend/pull/4216 +- refactor: show editor version in DOM through `data-editor-version`. Thank you @LarsTheGlidingSquirrel in https://github.com/serlo/frontend/pull/4215 +- fix(edusharing-plugin): use correct import. Thank you @LarsTheGlidingSquirrel in https://github.com/serlo/frontend/pull/4214 +- fix(edusharing-plugin): not use `dangerouslySetInnerHtml` & sanitize html to prevent XSS. Thank you @LarsTheGlidingSquirrel in https://github.com/serlo/frontend/pull/4213 +- fix(editor): prevent creating exercises in multimedia, other exercise, solution. Thank you @LarsTheGlidingSquirrel in https://github.com/serlo/frontend/pull/4212 +- refactor(frontend): remove revision history loader. Thank you @elbotho in https://github.com/serlo/frontend/pull/4211 +- fix(exercise): make sure math controls end up in text toolbar not in exercise toolbar. Thank you @elbotho in https://github.com/serlo/frontend/pull/4210 +- fix(exercise): add suspense to avoid error. Thank you @elbotho in https://github.com/serlo/frontend/pull/4208 +- refactor(editor): refactor providers, hack last frontend deps. Thank you @elbotho in https://github.com/serlo/frontend/pull/4206 + +**Full Changelog**: https://github.com/serlo/frontend/compare/v0.16.0...v0.17.0 From aee1a02659dcd29b627cd71129bbaf94bd86b7ce Mon Sep 17 00:00:00 2001 From: Mikey Stengel Date: Thu, 24 Oct 2024 11:52:06 +0200 Subject: [PATCH 03/18] fix(editor): Restore old changelog and see if Github action now works --- packages/editor/CHANGELOG.md | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/packages/editor/CHANGELOG.md b/packages/editor/CHANGELOG.md index a67e43b188..3d548b7c55 100644 --- a/packages/editor/CHANGELOG.md +++ b/packages/editor/CHANGELOG.md @@ -1,13 +1,7 @@ -## Changelog for version 0.17.0 +# Changelog for version 0.16 -- feat(editor): show user a warning in test environments that content might disappear. Thank you @LarsTheGlidingSquirrel in https://github.com/serlo/frontend/pull/4216 -- refactor: show editor version in DOM through `data-editor-version`. Thank you @LarsTheGlidingSquirrel in https://github.com/serlo/frontend/pull/4215 -- fix(edusharing-plugin): use correct import. Thank you @LarsTheGlidingSquirrel in https://github.com/serlo/frontend/pull/4214 -- fix(edusharing-plugin): not use `dangerouslySetInnerHtml` & sanitize html to prevent XSS. Thank you @LarsTheGlidingSquirrel in https://github.com/serlo/frontend/pull/4213 -- fix(editor): prevent creating exercises in multimedia, other exercise, solution. Thank you @LarsTheGlidingSquirrel in https://github.com/serlo/frontend/pull/4212 -- refactor(frontend): remove revision history loader. Thank you @elbotho in https://github.com/serlo/frontend/pull/4211 -- fix(exercise): make sure math controls end up in text toolbar not in exercise toolbar. Thank you @elbotho in https://github.com/serlo/frontend/pull/4210 -- fix(exercise): add suspense to avoid error. Thank you @elbotho in https://github.com/serlo/frontend/pull/4208 -- refactor(editor): refactor providers, hack last frontend deps. Thank you @elbotho in https://github.com/serlo/frontend/pull/4206 - -**Full Changelog**: https://github.com/serlo/frontend/compare/v0.16.0...v0.17.0 +feat(editor): Enable gallery plugin, free text excercise plugin and interactive image (dropzone) plugin +fix(rows): check if interactive exercise plugins are supported in menu items filter +Some changes to make editor code work in serlo-editor-as-lti-tool +fix(editor-packages): Use one redux store per instance of editor +fix(e2e): adapt math tests From f422235621542f90962ddfde0d19ceb1774b6608 Mon Sep 17 00:00:00 2001 From: GitHub Action Bot <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 24 Oct 2024 09:54:31 +0000 Subject: [PATCH 04/18] chore: update changelog for version 0.17.0 --- packages/editor/CHANGELOG.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/packages/editor/CHANGELOG.md b/packages/editor/CHANGELOG.md index 3d548b7c55..b8104c32a3 100644 --- a/packages/editor/CHANGELOG.md +++ b/packages/editor/CHANGELOG.md @@ -1,3 +1,16 @@ +## Changelog for version 0.17.0 + +- feat(editor): show user a warning in test environments that content might disappear. Thank you [@LarsTheGlidingSquirrel](https://github.com/LarsTheGlidingSquirrel) in https://github.com/serlo/frontend/pull/4216 +- refactor: show editor version in DOM through `data-editor-version`. Thank you [@LarsTheGlidingSquirrel](https://github.com/LarsTheGlidingSquirrel) in https://github.com/serlo/frontend/pull/4215 +- fix(edusharing-plugin): use correct import. Thank you [@LarsTheGlidingSquirrel](https://github.com/LarsTheGlidingSquirrel) in https://github.com/serlo/frontend/pull/4214 +- fix(edusharing-plugin): not use `dangerouslySetInnerHtml` & sanitize html to prevent XSS. Thank you [@LarsTheGlidingSquirrel](https://github.com/LarsTheGlidingSquirrel) in https://github.com/serlo/frontend/pull/4213 +- fix(editor): prevent creating exercises in multimedia, other exercise, solution. Thank you [@LarsTheGlidingSquirrel](https://github.com/LarsTheGlidingSquirrel) in https://github.com/serlo/frontend/pull/4212 +- refactor(frontend): remove revision history loader. Thank you [@elbotho](https://github.com/elbotho) in https://github.com/serlo/frontend/pull/4211 +- fix(exercise): make sure math controls end up in text toolbar not in exercise toolbar. Thank you [@elbotho](https://github.com/elbotho) in https://github.com/serlo/frontend/pull/4210 +- fix(exercise): add suspense to avoid error. Thank you [@elbotho](https://github.com/elbotho) in https://github.com/serlo/frontend/pull/4208 + +**Full Changelog**: https://github.com/serlo/frontend/compare/v0.16.0...v0.17.0 + # Changelog for version 0.16 feat(editor): Enable gallery plugin, free text excercise plugin and interactive image (dropzone) plugin From 63515a16e0e941ebad59014759957483a431a34c Mon Sep 17 00:00:00 2001 From: Mikey Stengel Date: Thu, 24 Oct 2024 12:02:25 +0200 Subject: [PATCH 05/18] fix(ci): Always include -editor suffix when pushing the tag --- .github/workflows/editor.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/editor.yaml b/.github/workflows/editor.yaml index 033833e46d..f945976b57 100644 --- a/.github/workflows/editor.yaml +++ b/.github/workflows/editor.yaml @@ -46,8 +46,8 @@ jobs: - name: Create and push Git tag if: steps.check_published.outputs.already_published == 'false' run: | - git tag v$CURRENT_VERSION - git push origin v$CURRENT_VERSION + git tag v$CURRENT_VERSION-editor + git push origin v$CURRENT_VERSION-editor - name: Extract changelog for current version id: extract_changelog From e056dd81f0949bf31e9037f971f0ae287b41aa4e Mon Sep 17 00:00:00 2001 From: Mikey Stengel Date: Thu, 24 Oct 2024 12:02:39 +0200 Subject: [PATCH 06/18] refactor(ci): Increase last PRs if no tag found to 50 --- .github/workflows/editor-changelog.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/editor-changelog.yaml b/.github/workflows/editor-changelog.yaml index e2d6d7760a..b0dec93329 100644 --- a/.github/workflows/editor-changelog.yaml +++ b/.github/workflows/editor-changelog.yaml @@ -89,13 +89,13 @@ jobs: if: env.no_editor_changes == 'true' run: exit 0 - - name: Get merged PRs affecting editor package (last 10 if no tag) + - name: Get merged PRs affecting editor package (last 50 if no tag) if: env.version_changed == 'true' && env.no_editor_changes == 'false' id: get_prs run: | if [ -z "$LAST_TAG" ]; then - # No tag, get last 10 PRs - PRS=$(curl -s "https://api.github.com/repos/serlo/frontend/pulls?state=closed&per_page=10" | jq -r '.[] | .number' | tr '\n' ' ') + # No tag, get last 50 PRs + PRS=$(curl -s "https://api.github.com/repos/serlo/frontend/pulls?state=closed&per_page=50" | jq -r '.[] | .number' | tr '\n' ' ') else # Fetch PRs since last tag PRS=$(curl -s "https://api.github.com/repos/serlo/frontend/pulls?state=closed&per_page=100" | jq -r '.[] | select(.merged_at != null and .merged_at > $GITHUB_ENV.LAST_TAG and .head.repo.full_name == "serlo/frontend") | .number' | tr '\n' ' ') From aa84210b1e3228994a3bd24b54bc265ba02dc6ac Mon Sep 17 00:00:00 2001 From: Mikey Stengel Date: Thu, 24 Oct 2024 12:07:25 +0200 Subject: [PATCH 07/18] refactor(ci): Make string concatination more clear --- .github/workflows/editor.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/editor.yaml b/.github/workflows/editor.yaml index f945976b57..e01e7eb12a 100644 --- a/.github/workflows/editor.yaml +++ b/.github/workflows/editor.yaml @@ -46,8 +46,9 @@ jobs: - name: Create and push Git tag if: steps.check_published.outputs.already_published == 'false' run: | - git tag v$CURRENT_VERSION-editor - git push origin v$CURRENT_VERSION-editor + TAG_NAME="v${CURRENT_VERSION}-editor" + git tag "$TAG_NAME" + git push origin "$TAG_NAME" - name: Extract changelog for current version id: extract_changelog From a3d3b2bd48b3ff365234bd92fa682f250c66f739 Mon Sep 17 00:00:00 2001 From: Mikey Stengel Date: Thu, 24 Oct 2024 12:14:04 +0200 Subject: [PATCH 08/18] fix(editor): Typo in changelog, try again to generate changelog with new tag v0.16.0-editor, thanks to Lars! --- packages/editor/CHANGELOG.md | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/packages/editor/CHANGELOG.md b/packages/editor/CHANGELOG.md index b8104c32a3..ff23df5ed9 100644 --- a/packages/editor/CHANGELOG.md +++ b/packages/editor/CHANGELOG.md @@ -1,19 +1,6 @@ -## Changelog for version 0.17.0 +## Changelog for version 0.16 -- feat(editor): show user a warning in test environments that content might disappear. Thank you [@LarsTheGlidingSquirrel](https://github.com/LarsTheGlidingSquirrel) in https://github.com/serlo/frontend/pull/4216 -- refactor: show editor version in DOM through `data-editor-version`. Thank you [@LarsTheGlidingSquirrel](https://github.com/LarsTheGlidingSquirrel) in https://github.com/serlo/frontend/pull/4215 -- fix(edusharing-plugin): use correct import. Thank you [@LarsTheGlidingSquirrel](https://github.com/LarsTheGlidingSquirrel) in https://github.com/serlo/frontend/pull/4214 -- fix(edusharing-plugin): not use `dangerouslySetInnerHtml` & sanitize html to prevent XSS. Thank you [@LarsTheGlidingSquirrel](https://github.com/LarsTheGlidingSquirrel) in https://github.com/serlo/frontend/pull/4213 -- fix(editor): prevent creating exercises in multimedia, other exercise, solution. Thank you [@LarsTheGlidingSquirrel](https://github.com/LarsTheGlidingSquirrel) in https://github.com/serlo/frontend/pull/4212 -- refactor(frontend): remove revision history loader. Thank you [@elbotho](https://github.com/elbotho) in https://github.com/serlo/frontend/pull/4211 -- fix(exercise): make sure math controls end up in text toolbar not in exercise toolbar. Thank you [@elbotho](https://github.com/elbotho) in https://github.com/serlo/frontend/pull/4210 -- fix(exercise): add suspense to avoid error. Thank you [@elbotho](https://github.com/elbotho) in https://github.com/serlo/frontend/pull/4208 - -**Full Changelog**: https://github.com/serlo/frontend/compare/v0.16.0...v0.17.0 - -# Changelog for version 0.16 - -feat(editor): Enable gallery plugin, free text excercise plugin and interactive image (dropzone) plugin +feat(editor): Enable gallery plugin, free text exercise plugin and interactive image (dropzone) plugin fix(rows): check if interactive exercise plugins are supported in menu items filter Some changes to make editor code work in serlo-editor-as-lti-tool fix(editor-packages): Use one redux store per instance of editor From 7675616e458e215322c7988774a0e85b9ca9e827 Mon Sep 17 00:00:00 2001 From: GitHub Action Bot <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 24 Oct 2024 10:16:50 +0000 Subject: [PATCH 09/18] chore: update changelog for version 0.17.0 --- packages/editor/CHANGELOG.md | 39 ++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/packages/editor/CHANGELOG.md b/packages/editor/CHANGELOG.md index ff23df5ed9..7bea26ab2c 100644 --- a/packages/editor/CHANGELOG.md +++ b/packages/editor/CHANGELOG.md @@ -1,3 +1,42 @@ +## Changelog for version 0.17.0 + +- feat(editor): show user a warning in test environments that content might disappear. Thank you [@LarsTheGlidingSquirrel](https://github.com/LarsTheGlidingSquirrel) in https://github.com/serlo/frontend/pull/4216 +- refactor: show editor version in DOM through `data-editor-version`. Thank you [@LarsTheGlidingSquirrel](https://github.com/LarsTheGlidingSquirrel) in https://github.com/serlo/frontend/pull/4215 +- fix(edusharing-plugin): use correct import. Thank you [@LarsTheGlidingSquirrel](https://github.com/LarsTheGlidingSquirrel) in https://github.com/serlo/frontend/pull/4214 +- fix(edusharing-plugin): not use `dangerouslySetInnerHtml` & sanitize html to prevent XSS. Thank you [@LarsTheGlidingSquirrel](https://github.com/LarsTheGlidingSquirrel) in https://github.com/serlo/frontend/pull/4213 +- fix(editor): prevent creating exercises in multimedia, other exercise, solution. Thank you [@LarsTheGlidingSquirrel](https://github.com/LarsTheGlidingSquirrel) in https://github.com/serlo/frontend/pull/4212 +- refactor(frontend): remove revision history loader. Thank you [@elbotho](https://github.com/elbotho) in https://github.com/serlo/frontend/pull/4211 +- fix(exercise): make sure math controls end up in text toolbar not in exercise toolbar. Thank you [@elbotho](https://github.com/elbotho) in https://github.com/serlo/frontend/pull/4210 +- fix(exercise): add suspense to avoid error. Thank you [@elbotho](https://github.com/elbotho) in https://github.com/serlo/frontend/pull/4208 +- refactor(editor): refactor providers, hack last frontend deps. Thank you [@elbotho](https://github.com/elbotho) in https://github.com/serlo/frontend/pull/4206 +- refactor(audio): move privacy wrapper out of editor. Thank you [@elbotho](https://github.com/elbotho) in https://github.com/serlo/frontend/pull/4205 +- refactor(editor): move serlo content loaders out of editor. Thank you [@elbotho](https://github.com/elbotho) in https://github.com/serlo/frontend/pull/4204 +- refactor(course): use a wrapper to inject router into course renderer. Thank you [@elbotho](https://github.com/elbotho) in https://github.com/serlo/frontend/pull/4203 +- refactor(editor): move save modal outside of editor, refactor. Thank you [@elbotho](https://github.com/elbotho) in https://github.com/serlo/frontend/pull/4202 +- refactor(frontend): remove notification settings from save modal. Thank you [@elbotho](https://github.com/elbotho) in https://github.com/serlo/frontend/pull/4201 +- refactor(frontend): remove email notification setting. Thank you [@elbotho](https://github.com/elbotho) in https://github.com/serlo/frontend/pull/4200 +- refactor(editor): move main toolbar / undoredo to editor. Thank you [@elbotho](https://github.com/elbotho) in https://github.com/serlo/frontend/pull/4199 +- refactor(injection): clean code, allow staging for now. Thank you [@elbotho](https://github.com/elbotho) in https://github.com/serlo/frontend/pull/4198 +- feat(image): add new upload code for testing. Thank you [@elbotho](https://github.com/elbotho) in https://github.com/serlo/frontend/pull/4197 +- refactor(editor): add hook for serlo quickbar data, duplicate some code. Thank you [@elbotho](https://github.com/elbotho) in https://github.com/serlo/frontend/pull/4195 +- refactor(article): replace frontend link comp. Thank you [@elbotho](https://github.com/elbotho) in https://github.com/serlo/frontend/pull/4194 +- refactor(page-patners): remove frontend dependency. Thank you [@elbotho](https://github.com/elbotho) in https://github.com/serlo/frontend/pull/4193 +- refactor(injection): move serlo code back to editor & add server endpoint for fetch. Thank you [@elbotho](https://github.com/elbotho) in https://github.com/serlo/frontend/pull/4192 +- feat(blanks): hide exercise task until child plugin is selected, focus child plugin after selection. Thank you [@elbotho](https://github.com/elbotho) in https://github.com/serlo/frontend/pull/4188 +- Fix/ci and publish new editor version. Thank you [@CodingDive](https://github.com/CodingDive) in https://github.com/serlo/frontend/pull/4184 +- feat(editor): Enable gallery plugin, free text excercise plugin and interactive image (dropzone) plugin. Thank you [@CodingDive](https://github.com/CodingDive) in https://github.com/serlo/frontend/pull/4183 +- Deployment. Thank you [@elbotho](https://github.com/elbotho) in https://github.com/serlo/frontend/pull/4182 +- fix(rows): check if interactive exercise plugins are supported in menu items filter. Thank you [@elbotho](https://github.com/elbotho) in https://github.com/serlo/frontend/pull/4180 +- Some changes to make editor code work in serlo-editor-as-lti-tool. Thank you [@LarsTheGlidingSquirrel](https://github.com/LarsTheGlidingSquirrel) in https://github.com/serlo/frontend/pull/4178 +- fix(editor-packages): Use one redux store per instance of editor. Thank you [@CodingDive](https://github.com/CodingDive) in https://github.com/serlo/frontend/pull/4175 +- fix(e2e): adapt math tests. Thank you [@elbotho](https://github.com/elbotho) in https://github.com/serlo/frontend/pull/4172 +- ci(editor): Write custom github action for generating changelog from PR names and throw out the changeset package. Thank you [@CodingDive](https://github.com/CodingDive) in https://github.com/serlo/frontend/pull/4171 +- ci(fix): Only publish new version after PR gets merged. Thank you [@CodingDive](https://github.com/CodingDive) in https://github.com/serlo/frontend/pull/4169 +- Ci/GitHub action creates pr with changeset. Thank you [@CodingDive](https://github.com/CodingDive) in https://github.com/serlo/frontend/pull/4166 +- refactor: move experiments to editor. Thank you [@elbotho](https://github.com/elbotho) in https://github.com/serlo/frontend/pull/4165 + +**Full Changelog**: https://github.com/serlo/frontend/compare/v0.16.0...v0.17.0 + ## Changelog for version 0.16 feat(editor): Enable gallery plugin, free text exercise plugin and interactive image (dropzone) plugin From 9ab87ee3386c9cd703ec3953aa95c558e3a6948e Mon Sep 17 00:00:00 2001 From: Mikey Stengel Date: Thu, 24 Oct 2024 12:35:54 +0200 Subject: [PATCH 10/18] refactor(ci): Add debugging and try to figure out why last tag is not shown. Try git tag -l over describe --- .github/workflows/editor-changelog.yaml | 13 +++++++-- packages/editor/CHANGELOG.md | 39 ------------------------- 2 files changed, 11 insertions(+), 41 deletions(-) diff --git a/.github/workflows/editor-changelog.yaml b/.github/workflows/editor-changelog.yaml index b0dec93329..43dd690b05 100644 --- a/.github/workflows/editor-changelog.yaml +++ b/.github/workflows/editor-changelog.yaml @@ -60,11 +60,20 @@ jobs: id: get_last_tag run: | git fetch --all --tags - LAST_TAG=$(git describe --tags --match "v*-editor" --abbrev=0 2>/dev/null || echo "none") - if [ "$LAST_TAG" == "none" ]; then + echo "Testing different git describe variants:" + echo "1. Basic describe:" + git describe --tags + echo "2. Just matching editor tags:" + git tag -l "v*-editor" | sort -V | tail -n 1 + echo "3. Original command:" + git describe --tags --match "v*-editor" --abbrev=0 || echo "failed" + + LAST_TAG=$(git tag -l "v*-editor" | sort -V | tail -n 1) + if [ -z "$LAST_TAG" ]; then echo "No previous tag found, this is the first release" echo "LAST_TAG=" >> $GITHUB_ENV else + echo "Found tag: $LAST_TAG" echo "LAST_TAG=$LAST_TAG" >> $GITHUB_ENV fi diff --git a/packages/editor/CHANGELOG.md b/packages/editor/CHANGELOG.md index 7bea26ab2c..ff23df5ed9 100644 --- a/packages/editor/CHANGELOG.md +++ b/packages/editor/CHANGELOG.md @@ -1,42 +1,3 @@ -## Changelog for version 0.17.0 - -- feat(editor): show user a warning in test environments that content might disappear. Thank you [@LarsTheGlidingSquirrel](https://github.com/LarsTheGlidingSquirrel) in https://github.com/serlo/frontend/pull/4216 -- refactor: show editor version in DOM through `data-editor-version`. Thank you [@LarsTheGlidingSquirrel](https://github.com/LarsTheGlidingSquirrel) in https://github.com/serlo/frontend/pull/4215 -- fix(edusharing-plugin): use correct import. Thank you [@LarsTheGlidingSquirrel](https://github.com/LarsTheGlidingSquirrel) in https://github.com/serlo/frontend/pull/4214 -- fix(edusharing-plugin): not use `dangerouslySetInnerHtml` & sanitize html to prevent XSS. Thank you [@LarsTheGlidingSquirrel](https://github.com/LarsTheGlidingSquirrel) in https://github.com/serlo/frontend/pull/4213 -- fix(editor): prevent creating exercises in multimedia, other exercise, solution. Thank you [@LarsTheGlidingSquirrel](https://github.com/LarsTheGlidingSquirrel) in https://github.com/serlo/frontend/pull/4212 -- refactor(frontend): remove revision history loader. Thank you [@elbotho](https://github.com/elbotho) in https://github.com/serlo/frontend/pull/4211 -- fix(exercise): make sure math controls end up in text toolbar not in exercise toolbar. Thank you [@elbotho](https://github.com/elbotho) in https://github.com/serlo/frontend/pull/4210 -- fix(exercise): add suspense to avoid error. Thank you [@elbotho](https://github.com/elbotho) in https://github.com/serlo/frontend/pull/4208 -- refactor(editor): refactor providers, hack last frontend deps. Thank you [@elbotho](https://github.com/elbotho) in https://github.com/serlo/frontend/pull/4206 -- refactor(audio): move privacy wrapper out of editor. Thank you [@elbotho](https://github.com/elbotho) in https://github.com/serlo/frontend/pull/4205 -- refactor(editor): move serlo content loaders out of editor. Thank you [@elbotho](https://github.com/elbotho) in https://github.com/serlo/frontend/pull/4204 -- refactor(course): use a wrapper to inject router into course renderer. Thank you [@elbotho](https://github.com/elbotho) in https://github.com/serlo/frontend/pull/4203 -- refactor(editor): move save modal outside of editor, refactor. Thank you [@elbotho](https://github.com/elbotho) in https://github.com/serlo/frontend/pull/4202 -- refactor(frontend): remove notification settings from save modal. Thank you [@elbotho](https://github.com/elbotho) in https://github.com/serlo/frontend/pull/4201 -- refactor(frontend): remove email notification setting. Thank you [@elbotho](https://github.com/elbotho) in https://github.com/serlo/frontend/pull/4200 -- refactor(editor): move main toolbar / undoredo to editor. Thank you [@elbotho](https://github.com/elbotho) in https://github.com/serlo/frontend/pull/4199 -- refactor(injection): clean code, allow staging for now. Thank you [@elbotho](https://github.com/elbotho) in https://github.com/serlo/frontend/pull/4198 -- feat(image): add new upload code for testing. Thank you [@elbotho](https://github.com/elbotho) in https://github.com/serlo/frontend/pull/4197 -- refactor(editor): add hook for serlo quickbar data, duplicate some code. Thank you [@elbotho](https://github.com/elbotho) in https://github.com/serlo/frontend/pull/4195 -- refactor(article): replace frontend link comp. Thank you [@elbotho](https://github.com/elbotho) in https://github.com/serlo/frontend/pull/4194 -- refactor(page-patners): remove frontend dependency. Thank you [@elbotho](https://github.com/elbotho) in https://github.com/serlo/frontend/pull/4193 -- refactor(injection): move serlo code back to editor & add server endpoint for fetch. Thank you [@elbotho](https://github.com/elbotho) in https://github.com/serlo/frontend/pull/4192 -- feat(blanks): hide exercise task until child plugin is selected, focus child plugin after selection. Thank you [@elbotho](https://github.com/elbotho) in https://github.com/serlo/frontend/pull/4188 -- Fix/ci and publish new editor version. Thank you [@CodingDive](https://github.com/CodingDive) in https://github.com/serlo/frontend/pull/4184 -- feat(editor): Enable gallery plugin, free text excercise plugin and interactive image (dropzone) plugin. Thank you [@CodingDive](https://github.com/CodingDive) in https://github.com/serlo/frontend/pull/4183 -- Deployment. Thank you [@elbotho](https://github.com/elbotho) in https://github.com/serlo/frontend/pull/4182 -- fix(rows): check if interactive exercise plugins are supported in menu items filter. Thank you [@elbotho](https://github.com/elbotho) in https://github.com/serlo/frontend/pull/4180 -- Some changes to make editor code work in serlo-editor-as-lti-tool. Thank you [@LarsTheGlidingSquirrel](https://github.com/LarsTheGlidingSquirrel) in https://github.com/serlo/frontend/pull/4178 -- fix(editor-packages): Use one redux store per instance of editor. Thank you [@CodingDive](https://github.com/CodingDive) in https://github.com/serlo/frontend/pull/4175 -- fix(e2e): adapt math tests. Thank you [@elbotho](https://github.com/elbotho) in https://github.com/serlo/frontend/pull/4172 -- ci(editor): Write custom github action for generating changelog from PR names and throw out the changeset package. Thank you [@CodingDive](https://github.com/CodingDive) in https://github.com/serlo/frontend/pull/4171 -- ci(fix): Only publish new version after PR gets merged. Thank you [@CodingDive](https://github.com/CodingDive) in https://github.com/serlo/frontend/pull/4169 -- Ci/GitHub action creates pr with changeset. Thank you [@CodingDive](https://github.com/CodingDive) in https://github.com/serlo/frontend/pull/4166 -- refactor: move experiments to editor. Thank you [@elbotho](https://github.com/elbotho) in https://github.com/serlo/frontend/pull/4165 - -**Full Changelog**: https://github.com/serlo/frontend/compare/v0.16.0...v0.17.0 - ## Changelog for version 0.16 feat(editor): Enable gallery plugin, free text exercise plugin and interactive image (dropzone) plugin From bb756b7e5cbb1cbf05960bf285674fab812bd903 Mon Sep 17 00:00:00 2001 From: Mikey Stengel Date: Thu, 24 Oct 2024 12:50:48 +0200 Subject: [PATCH 11/18] fix(ci): Get rid of git describe entirely as it'd require us to fetch the whole git history --- .github/workflows/editor-changelog.yaml | 32 ++++++++++--------------- 1 file changed, 12 insertions(+), 20 deletions(-) diff --git a/.github/workflows/editor-changelog.yaml b/.github/workflows/editor-changelog.yaml index 43dd690b05..5512f77a0f 100644 --- a/.github/workflows/editor-changelog.yaml +++ b/.github/workflows/editor-changelog.yaml @@ -56,26 +56,18 @@ jobs: run: exit 0 - name: Get last tag for editor package (if available) - if: env.version_changed == 'true' - id: get_last_tag - run: | - git fetch --all --tags - echo "Testing different git describe variants:" - echo "1. Basic describe:" - git describe --tags - echo "2. Just matching editor tags:" - git tag -l "v*-editor" | sort -V | tail -n 1 - echo "3. Original command:" - git describe --tags --match "v*-editor" --abbrev=0 || echo "failed" - - LAST_TAG=$(git tag -l "v*-editor" | sort -V | tail -n 1) - if [ -z "$LAST_TAG" ]; then - echo "No previous tag found, this is the first release" - echo "LAST_TAG=" >> $GITHUB_ENV - else - echo "Found tag: $LAST_TAG" - echo "LAST_TAG=$LAST_TAG" >> $GITHUB_ENV - fi + if: env.version_changed == 'true' + id: get_last_tag + run: | + git fetch --all --tags + LAST_TAG=$(git tag -l "v*-editor" | sort -V | tail -n 1 || echo "none") + if [ "$LAST_TAG" == "none" ]; then + echo "No previous tag found, this is the first release" + echo "LAST_TAG=" >> $GITHUB_ENV + else + echo "Found tag: $LAST_TAG" + echo "LAST_TAG=$LAST_TAG" >> $GITHUB_ENV + fi - name: Check if there are changes in packages/editor since last tag if: env.version_changed == 'true' From 00a823c72fcb82ba4819d4ff06adc22b0ed237cf Mon Sep 17 00:00:00 2001 From: Mikey Stengel Date: Thu, 24 Oct 2024 12:54:42 +0200 Subject: [PATCH 12/18] fix(ci): Yaml formatting --- .github/workflows/editor-changelog.yaml | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/workflows/editor-changelog.yaml b/.github/workflows/editor-changelog.yaml index 5512f77a0f..cf1c1e5908 100644 --- a/.github/workflows/editor-changelog.yaml +++ b/.github/workflows/editor-changelog.yaml @@ -56,18 +56,18 @@ jobs: run: exit 0 - name: Get last tag for editor package (if available) - if: env.version_changed == 'true' - id: get_last_tag - run: | - git fetch --all --tags - LAST_TAG=$(git tag -l "v*-editor" | sort -V | tail -n 1 || echo "none") - if [ "$LAST_TAG" == "none" ]; then - echo "No previous tag found, this is the first release" - echo "LAST_TAG=" >> $GITHUB_ENV - else - echo "Found tag: $LAST_TAG" - echo "LAST_TAG=$LAST_TAG" >> $GITHUB_ENV - fi + if: env.version_changed == 'true' + id: get_last_tag + run: | + git fetch --all --tags + LAST_TAG=$(git tag -l "v*-editor" | sort -V | tail -n 1 || echo "none") + if [ "$LAST_TAG" == "none" ]; then + echo "No previous tag found, this is the first release" + echo "LAST_TAG=" >> $GITHUB_ENV + else + echo "Found tag: $LAST_TAG" + echo "LAST_TAG=$LAST_TAG" >> $GITHUB_ENV + fi - name: Check if there are changes in packages/editor since last tag if: env.version_changed == 'true' From 176d701b9b68049dede995c13247287d94731d19 Mon Sep 17 00:00:00 2001 From: Mikey Stengel Date: Thu, 24 Oct 2024 13:00:02 +0200 Subject: [PATCH 13/18] fix(ci): Fix fetching all PRs since last tag --- .github/workflows/editor-changelog.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/editor-changelog.yaml b/.github/workflows/editor-changelog.yaml index cf1c1e5908..7139c29f70 100644 --- a/.github/workflows/editor-changelog.yaml +++ b/.github/workflows/editor-changelog.yaml @@ -99,7 +99,10 @@ jobs: PRS=$(curl -s "https://api.github.com/repos/serlo/frontend/pulls?state=closed&per_page=50" | jq -r '.[] | .number' | tr '\n' ' ') else # Fetch PRs since last tag - PRS=$(curl -s "https://api.github.com/repos/serlo/frontend/pulls?state=closed&per_page=100" | jq -r '.[] | select(.merged_at != null and .merged_at > $GITHUB_ENV.LAST_TAG and .head.repo.full_name == "serlo/frontend") | .number' | tr '\n' ' ') + PRS=$(curl -s "https://api.github.com/repos/serlo/frontend/pulls?state=closed&per_page=100" | \ + jq -r --arg LAST_TAG "$LAST_TAG" \ + '.[] | select(.merged_at != null and .merged_at > $LAST_TAG and .head.repo.full_name == "serlo/frontend") | .number' | \ + tr '\n' ' ') fi echo "PR_NUMBERS=$PRS" >> $GITHUB_ENV From 8fbe31a1620f94a0a7c531d0bbf2d56fd3957bfd Mon Sep 17 00:00:00 2001 From: Mikey Stengel Date: Thu, 24 Oct 2024 13:06:53 +0200 Subject: [PATCH 14/18] refactor(ci): Base the fetching of merged PRs on the date of the associated commit from the tag instead of when the tag was pushed (because I just pushed a new tag with an older commit) --- .github/workflows/editor-changelog.yaml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/editor-changelog.yaml b/.github/workflows/editor-changelog.yaml index 7139c29f70..90ae7add69 100644 --- a/.github/workflows/editor-changelog.yaml +++ b/.github/workflows/editor-changelog.yaml @@ -98,10 +98,12 @@ jobs: # No tag, get last 50 PRs PRS=$(curl -s "https://api.github.com/repos/serlo/frontend/pulls?state=closed&per_page=50" | jq -r '.[] | .number' | tr '\n' ' ') else - # Fetch PRs since last tag + # Get the commit date of the last tag + TAG_DATE=$(git log -1 --format=%aI $LAST_TAG) + # Fetch PRs since tag commit date PRS=$(curl -s "https://api.github.com/repos/serlo/frontend/pulls?state=closed&per_page=100" | \ - jq -r --arg LAST_TAG "$LAST_TAG" \ - '.[] | select(.merged_at != null and .merged_at > $LAST_TAG and .head.repo.full_name == "serlo/frontend") | .number' | \ + jq -r --arg TAG_DATE "$TAG_DATE" \ + '.[] | select(.merged_at != null and .merged_at > $TAG_DATE and .head.repo.full_name == "serlo/frontend") | .number' | \ tr '\n' ' ') fi echo "PR_NUMBERS=$PRS" >> $GITHUB_ENV From 81f624c871763e25c774bd8149bca56e8d63fca1 Mon Sep 17 00:00:00 2001 From: GitHub Action Bot <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 24 Oct 2024 11:10:08 +0000 Subject: [PATCH 15/18] chore: update changelog for version 0.17.0 --- packages/editor/CHANGELOG.md | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/packages/editor/CHANGELOG.md b/packages/editor/CHANGELOG.md index ff23df5ed9..9183430fc5 100644 --- a/packages/editor/CHANGELOG.md +++ b/packages/editor/CHANGELOG.md @@ -1,3 +1,32 @@ +## Changelog for version 0.17.0 + +- feat(editor): show user a warning in test environments that content might disappear. Thank you [@LarsTheGlidingSquirrel](https://github.com/LarsTheGlidingSquirrel) in https://github.com/serlo/frontend/pull/4216 +- refactor: show editor version in DOM through `data-editor-version`. Thank you [@LarsTheGlidingSquirrel](https://github.com/LarsTheGlidingSquirrel) in https://github.com/serlo/frontend/pull/4215 +- fix(edusharing-plugin): use correct import. Thank you [@LarsTheGlidingSquirrel](https://github.com/LarsTheGlidingSquirrel) in https://github.com/serlo/frontend/pull/4214 +- fix(edusharing-plugin): not use `dangerouslySetInnerHtml` & sanitize html to prevent XSS. Thank you [@LarsTheGlidingSquirrel](https://github.com/LarsTheGlidingSquirrel) in https://github.com/serlo/frontend/pull/4213 +- fix(editor): prevent creating exercises in multimedia, other exercise, solution. Thank you [@LarsTheGlidingSquirrel](https://github.com/LarsTheGlidingSquirrel) in https://github.com/serlo/frontend/pull/4212 +- refactor(frontend): remove revision history loader. Thank you [@elbotho](https://github.com/elbotho) in https://github.com/serlo/frontend/pull/4211 +- fix(exercise): make sure math controls end up in text toolbar not in exercise toolbar. Thank you [@elbotho](https://github.com/elbotho) in https://github.com/serlo/frontend/pull/4210 +- fix(exercise): add suspense to avoid error. Thank you [@elbotho](https://github.com/elbotho) in https://github.com/serlo/frontend/pull/4208 +- refactor(editor): refactor providers, hack last frontend deps. Thank you [@elbotho](https://github.com/elbotho) in https://github.com/serlo/frontend/pull/4206 +- refactor(audio): move privacy wrapper out of editor. Thank you [@elbotho](https://github.com/elbotho) in https://github.com/serlo/frontend/pull/4205 +- refactor(editor): move serlo content loaders out of editor. Thank you [@elbotho](https://github.com/elbotho) in https://github.com/serlo/frontend/pull/4204 +- refactor(course): use a wrapper to inject router into course renderer. Thank you [@elbotho](https://github.com/elbotho) in https://github.com/serlo/frontend/pull/4203 +- refactor(editor): move save modal outside of editor, refactor. Thank you [@elbotho](https://github.com/elbotho) in https://github.com/serlo/frontend/pull/4202 +- refactor(frontend): remove notification settings from save modal. Thank you [@elbotho](https://github.com/elbotho) in https://github.com/serlo/frontend/pull/4201 +- refactor(frontend): remove email notification setting. Thank you [@elbotho](https://github.com/elbotho) in https://github.com/serlo/frontend/pull/4200 +- refactor(editor): move main toolbar / undoredo to editor. Thank you [@elbotho](https://github.com/elbotho) in https://github.com/serlo/frontend/pull/4199 +- refactor(injection): clean code, allow staging for now. Thank you [@elbotho](https://github.com/elbotho) in https://github.com/serlo/frontend/pull/4198 +- feat(image): add new upload code for testing. Thank you [@elbotho](https://github.com/elbotho) in https://github.com/serlo/frontend/pull/4197 +- refactor(editor): add hook for serlo quickbar data, duplicate some code. Thank you [@elbotho](https://github.com/elbotho) in https://github.com/serlo/frontend/pull/4195 +- refactor(article): replace frontend link comp. Thank you [@elbotho](https://github.com/elbotho) in https://github.com/serlo/frontend/pull/4194 +- refactor(page-patners): remove frontend dependency. Thank you [@elbotho](https://github.com/elbotho) in https://github.com/serlo/frontend/pull/4193 +- refactor(injection): move serlo code back to editor & add server endpoint for fetch. Thank you [@elbotho](https://github.com/elbotho) in https://github.com/serlo/frontend/pull/4192 +- feat(blanks): hide exercise task until child plugin is selected, focus child plugin after selection. Thank you [@elbotho](https://github.com/elbotho) in https://github.com/serlo/frontend/pull/4188 +- Deployment. Thank you [@elbotho](https://github.com/elbotho) in https://github.com/serlo/frontend/pull/4182 + +**Full Changelog**: https://github.com/serlo/frontend/compare/v0.16.0...v0.17.0 + ## Changelog for version 0.16 feat(editor): Enable gallery plugin, free text exercise plugin and interactive image (dropzone) plugin From 0ba186b456dbb206bbfd8f1d83a15a597cf66ad4 Mon Sep 17 00:00:00 2001 From: Mikey Stengel Date: Thu, 24 Oct 2024 13:14:02 +0200 Subject: [PATCH 16/18] refactor(ci): Generate correct summary of all changes since different tags in changelog --- .github/workflows/editor-changelog.yaml | 2 +- packages/editor/CHANGELOG.md | 29 ------------------------- 2 files changed, 1 insertion(+), 30 deletions(-) diff --git a/.github/workflows/editor-changelog.yaml b/.github/workflows/editor-changelog.yaml index 90ae7add69..901fcc9d19 100644 --- a/.github/workflows/editor-changelog.yaml +++ b/.github/workflows/editor-changelog.yaml @@ -167,7 +167,7 @@ jobs: echo "" >> temp_changelog.md echo -e "$PR_TITLES" >> temp_changelog.md echo "" >> temp_changelog.md - echo "**Full Changelog**: https://github.com/${{ github.repository }}/compare/v$NPM_VERSION...v$CURRENT_VERSION" >> temp_changelog.md + echo "**Full Changelog**: https://github.com/${{ github.repository }}/compare/v${NPM_VERSION}-editor...v${CURRENT_VERSION}-editor" >> temp_changelog.md echo "" >> temp_changelog.md # Combine new changelog with existing one (if it exists) diff --git a/packages/editor/CHANGELOG.md b/packages/editor/CHANGELOG.md index 9183430fc5..ff23df5ed9 100644 --- a/packages/editor/CHANGELOG.md +++ b/packages/editor/CHANGELOG.md @@ -1,32 +1,3 @@ -## Changelog for version 0.17.0 - -- feat(editor): show user a warning in test environments that content might disappear. Thank you [@LarsTheGlidingSquirrel](https://github.com/LarsTheGlidingSquirrel) in https://github.com/serlo/frontend/pull/4216 -- refactor: show editor version in DOM through `data-editor-version`. Thank you [@LarsTheGlidingSquirrel](https://github.com/LarsTheGlidingSquirrel) in https://github.com/serlo/frontend/pull/4215 -- fix(edusharing-plugin): use correct import. Thank you [@LarsTheGlidingSquirrel](https://github.com/LarsTheGlidingSquirrel) in https://github.com/serlo/frontend/pull/4214 -- fix(edusharing-plugin): not use `dangerouslySetInnerHtml` & sanitize html to prevent XSS. Thank you [@LarsTheGlidingSquirrel](https://github.com/LarsTheGlidingSquirrel) in https://github.com/serlo/frontend/pull/4213 -- fix(editor): prevent creating exercises in multimedia, other exercise, solution. Thank you [@LarsTheGlidingSquirrel](https://github.com/LarsTheGlidingSquirrel) in https://github.com/serlo/frontend/pull/4212 -- refactor(frontend): remove revision history loader. Thank you [@elbotho](https://github.com/elbotho) in https://github.com/serlo/frontend/pull/4211 -- fix(exercise): make sure math controls end up in text toolbar not in exercise toolbar. Thank you [@elbotho](https://github.com/elbotho) in https://github.com/serlo/frontend/pull/4210 -- fix(exercise): add suspense to avoid error. Thank you [@elbotho](https://github.com/elbotho) in https://github.com/serlo/frontend/pull/4208 -- refactor(editor): refactor providers, hack last frontend deps. Thank you [@elbotho](https://github.com/elbotho) in https://github.com/serlo/frontend/pull/4206 -- refactor(audio): move privacy wrapper out of editor. Thank you [@elbotho](https://github.com/elbotho) in https://github.com/serlo/frontend/pull/4205 -- refactor(editor): move serlo content loaders out of editor. Thank you [@elbotho](https://github.com/elbotho) in https://github.com/serlo/frontend/pull/4204 -- refactor(course): use a wrapper to inject router into course renderer. Thank you [@elbotho](https://github.com/elbotho) in https://github.com/serlo/frontend/pull/4203 -- refactor(editor): move save modal outside of editor, refactor. Thank you [@elbotho](https://github.com/elbotho) in https://github.com/serlo/frontend/pull/4202 -- refactor(frontend): remove notification settings from save modal. Thank you [@elbotho](https://github.com/elbotho) in https://github.com/serlo/frontend/pull/4201 -- refactor(frontend): remove email notification setting. Thank you [@elbotho](https://github.com/elbotho) in https://github.com/serlo/frontend/pull/4200 -- refactor(editor): move main toolbar / undoredo to editor. Thank you [@elbotho](https://github.com/elbotho) in https://github.com/serlo/frontend/pull/4199 -- refactor(injection): clean code, allow staging for now. Thank you [@elbotho](https://github.com/elbotho) in https://github.com/serlo/frontend/pull/4198 -- feat(image): add new upload code for testing. Thank you [@elbotho](https://github.com/elbotho) in https://github.com/serlo/frontend/pull/4197 -- refactor(editor): add hook for serlo quickbar data, duplicate some code. Thank you [@elbotho](https://github.com/elbotho) in https://github.com/serlo/frontend/pull/4195 -- refactor(article): replace frontend link comp. Thank you [@elbotho](https://github.com/elbotho) in https://github.com/serlo/frontend/pull/4194 -- refactor(page-patners): remove frontend dependency. Thank you [@elbotho](https://github.com/elbotho) in https://github.com/serlo/frontend/pull/4193 -- refactor(injection): move serlo code back to editor & add server endpoint for fetch. Thank you [@elbotho](https://github.com/elbotho) in https://github.com/serlo/frontend/pull/4192 -- feat(blanks): hide exercise task until child plugin is selected, focus child plugin after selection. Thank you [@elbotho](https://github.com/elbotho) in https://github.com/serlo/frontend/pull/4188 -- Deployment. Thank you [@elbotho](https://github.com/elbotho) in https://github.com/serlo/frontend/pull/4182 - -**Full Changelog**: https://github.com/serlo/frontend/compare/v0.16.0...v0.17.0 - ## Changelog for version 0.16 feat(editor): Enable gallery plugin, free text exercise plugin and interactive image (dropzone) plugin From c2d6ddff55e3b4e8997d787e2a1ef3ad7edd69d8 Mon Sep 17 00:00:00 2001 From: Mikey Stengel Date: Thu, 24 Oct 2024 13:15:49 +0200 Subject: [PATCH 17/18] refactor(ci): Use last tag if available when generating summary --- .github/workflows/editor-changelog.yaml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/editor-changelog.yaml b/.github/workflows/editor-changelog.yaml index 901fcc9d19..b9b02cd5e0 100644 --- a/.github/workflows/editor-changelog.yaml +++ b/.github/workflows/editor-changelog.yaml @@ -167,8 +167,12 @@ jobs: echo "" >> temp_changelog.md echo -e "$PR_TITLES" >> temp_changelog.md echo "" >> temp_changelog.md - echo "**Full Changelog**: https://github.com/${{ github.repository }}/compare/v${NPM_VERSION}-editor...v${CURRENT_VERSION}-editor" >> temp_changelog.md - echo "" >> temp_changelog.md + if [ -n "$LAST_TAG" ]; then + echo "**Full Changelog**: https://github.com/${{ github.repository }}/compare/${LAST_TAG}...v${CURRENT_VERSION}-editor" >> temp_changelog.md + else + echo "**Full Changelog**: https://github.com/${{ github.repository }}/compare/v${NPM_VERSION}-editor...v${CURRENT_VERSION}-editor" >> temp_changelog.md + fi + echo "" >> temp_changelog.md || exit 1 # Combine new changelog with existing one (if it exists) if [ -f packages/editor/CHANGELOG.md ]; then From 9ee2eda2e8c39702153c6b2b695d5d81f2971f77 Mon Sep 17 00:00:00 2001 From: GitHub Action Bot <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 24 Oct 2024 11:18:30 +0000 Subject: [PATCH 18/18] chore: update changelog for version 0.17.0 --- packages/editor/CHANGELOG.md | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/packages/editor/CHANGELOG.md b/packages/editor/CHANGELOG.md index ff23df5ed9..cd4294f73a 100644 --- a/packages/editor/CHANGELOG.md +++ b/packages/editor/CHANGELOG.md @@ -1,3 +1,32 @@ +## Changelog for version 0.17.0 + +- feat(editor): show user a warning in test environments that content might disappear. Thank you [@LarsTheGlidingSquirrel](https://github.com/LarsTheGlidingSquirrel) in https://github.com/serlo/frontend/pull/4216 +- refactor: show editor version in DOM through `data-editor-version`. Thank you [@LarsTheGlidingSquirrel](https://github.com/LarsTheGlidingSquirrel) in https://github.com/serlo/frontend/pull/4215 +- fix(edusharing-plugin): use correct import. Thank you [@LarsTheGlidingSquirrel](https://github.com/LarsTheGlidingSquirrel) in https://github.com/serlo/frontend/pull/4214 +- fix(edusharing-plugin): not use `dangerouslySetInnerHtml` & sanitize html to prevent XSS. Thank you [@LarsTheGlidingSquirrel](https://github.com/LarsTheGlidingSquirrel) in https://github.com/serlo/frontend/pull/4213 +- fix(editor): prevent creating exercises in multimedia, other exercise, solution. Thank you [@LarsTheGlidingSquirrel](https://github.com/LarsTheGlidingSquirrel) in https://github.com/serlo/frontend/pull/4212 +- refactor(frontend): remove revision history loader. Thank you [@elbotho](https://github.com/elbotho) in https://github.com/serlo/frontend/pull/4211 +- fix(exercise): make sure math controls end up in text toolbar not in exercise toolbar. Thank you [@elbotho](https://github.com/elbotho) in https://github.com/serlo/frontend/pull/4210 +- fix(exercise): add suspense to avoid error. Thank you [@elbotho](https://github.com/elbotho) in https://github.com/serlo/frontend/pull/4208 +- refactor(editor): refactor providers, hack last frontend deps. Thank you [@elbotho](https://github.com/elbotho) in https://github.com/serlo/frontend/pull/4206 +- refactor(audio): move privacy wrapper out of editor. Thank you [@elbotho](https://github.com/elbotho) in https://github.com/serlo/frontend/pull/4205 +- refactor(editor): move serlo content loaders out of editor. Thank you [@elbotho](https://github.com/elbotho) in https://github.com/serlo/frontend/pull/4204 +- refactor(course): use a wrapper to inject router into course renderer. Thank you [@elbotho](https://github.com/elbotho) in https://github.com/serlo/frontend/pull/4203 +- refactor(editor): move save modal outside of editor, refactor. Thank you [@elbotho](https://github.com/elbotho) in https://github.com/serlo/frontend/pull/4202 +- refactor(frontend): remove notification settings from save modal. Thank you [@elbotho](https://github.com/elbotho) in https://github.com/serlo/frontend/pull/4201 +- refactor(frontend): remove email notification setting. Thank you [@elbotho](https://github.com/elbotho) in https://github.com/serlo/frontend/pull/4200 +- refactor(editor): move main toolbar / undoredo to editor. Thank you [@elbotho](https://github.com/elbotho) in https://github.com/serlo/frontend/pull/4199 +- refactor(injection): clean code, allow staging for now. Thank you [@elbotho](https://github.com/elbotho) in https://github.com/serlo/frontend/pull/4198 +- feat(image): add new upload code for testing. Thank you [@elbotho](https://github.com/elbotho) in https://github.com/serlo/frontend/pull/4197 +- refactor(editor): add hook for serlo quickbar data, duplicate some code. Thank you [@elbotho](https://github.com/elbotho) in https://github.com/serlo/frontend/pull/4195 +- refactor(article): replace frontend link comp. Thank you [@elbotho](https://github.com/elbotho) in https://github.com/serlo/frontend/pull/4194 +- refactor(page-patners): remove frontend dependency. Thank you [@elbotho](https://github.com/elbotho) in https://github.com/serlo/frontend/pull/4193 +- refactor(injection): move serlo code back to editor & add server endpoint for fetch. Thank you [@elbotho](https://github.com/elbotho) in https://github.com/serlo/frontend/pull/4192 +- feat(blanks): hide exercise task until child plugin is selected, focus child plugin after selection. Thank you [@elbotho](https://github.com/elbotho) in https://github.com/serlo/frontend/pull/4188 +- Deployment. Thank you [@elbotho](https://github.com/elbotho) in https://github.com/serlo/frontend/pull/4182 + +**Full Changelog**: https://github.com/serlo/frontend/compare/v0.16.0-editor...v0.17.0-editor + ## Changelog for version 0.16 feat(editor): Enable gallery plugin, free text exercise plugin and interactive image (dropzone) plugin