@windward/games 0.19.0 → 0.20.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,16 @@
1
1
  # Changelog
2
2
 
3
+ ## Release [0.20.0] - 2025-06-25
4
+
5
+ * Merged in feature/LE-1948/empty-bucket (pull request #242)
6
+ * Merged in LE-1951-bucket-update-default-instructio (pull request #239)
7
+ * Merged in bugfix/LE-1954-bucket-long-answers-have-both-sc (pull request #240)
8
+ * Merged in bugfix/LE-1906-ai-assistant-button-text (pull request #241)
9
+
10
+
11
+ ### Hotfix [0.19.1] created - 2025-06-16
12
+
13
+
3
14
  ### Release [0.19.0] created - 2025-05-30
4
15
 
5
16
  ### Release [0.18.0] created - 2025-05-20
@@ -0,0 +1,35 @@
1
+ #!/bin/bash
2
+
3
+ # Checkout the release branch
4
+ git checkout master || exit 1
5
+ git pull origin master || exit 1
6
+
7
+ # Configure Git user for the current repository
8
+ git config user.email "commits-noreply@bitbucket.org"
9
+ git config user.name "bitbucket-pipelines"
10
+
11
+ # Extract version from the last merge commit message. Expecting `Merged in xx.xx.xx`
12
+ VERSION=$(basename "$(git log -1 --pretty=%B | grep -o -E "Merged in (release|hotfix)\/([0-9]+\.[0-9]+\.[0-9]+)")")
13
+
14
+ if [ -z "$VERSION" ]; then
15
+ echo "Error: Could not extract version from release branch name."
16
+ exit 1
17
+ fi
18
+
19
+ echo "Running auto-rc-tag delete for version $VERSION"
20
+
21
+ # Delete all rc tags for the version
22
+ rc_tags=$(git tag --list "$VERSION-rc*")
23
+
24
+ if [ -n "$rc_tags" ]; then
25
+ echo "Deleting rc tags for version $VERSION..."
26
+ for tag in $rc_tags; do
27
+ git tag -d "$tag"
28
+ git push origin ":refs/tags/$tag"
29
+ done
30
+ echo "All rc tags for version $VERSION have been deleted."
31
+ else
32
+ echo "No rc tags found for version $VERSION."
33
+ fi
34
+
35
+ exit 0
@@ -0,0 +1,48 @@
1
+ #!/bin/bash
2
+
3
+ # Checkout the release branch
4
+ git checkout master || exit 1
5
+ git pull origin master || exit 1
6
+
7
+ # Configure Git user for the current repository
8
+ git config user.email "commits-noreply@bitbucket.org"
9
+ git config user.name "bitbucket-pipelines"
10
+
11
+ # Extract version from the last merge commit message. Expecting `Merged in xx.xx.xx`
12
+ VERSION=$(basename "$(git log -1 --pretty=%B | grep -o -E "Merged in (release|hotfix)\/([0-9]+\.[0-9]+\.[0-9]+)")")
13
+
14
+ if [ -z "$VERSION" ]; then
15
+ echo "Error: Could not extract version from release branch name."
16
+ exit 1
17
+ fi
18
+
19
+ echo "Running auto-tag for version $VERSION"
20
+
21
+
22
+ # Fetch the latest state of the repository
23
+ git fetch origin
24
+
25
+ # Get the latest commit on master branch
26
+ LATEST_MASTER_COMMIT=$(git rev-parse origin/master)
27
+ if [ $? -ne 0 ]; then
28
+ echo "Error: Failed to get the latest commit on master"
29
+ exit 1
30
+ fi
31
+
32
+ # Apply the tag to the latest master commit
33
+ git tag -a "$VERSION" -m "Tagging $VERSION" "$LATEST_MASTER_COMMIT"
34
+ if [ $? -ne 0 ]; then
35
+ echo "Error: Failed to tag the commit $LATEST_MASTER_COMMIT with tag $VERSION"
36
+ exit 1
37
+ fi
38
+
39
+ # Push the tag to the repository
40
+ git push origin "$VERSION"
41
+ if [ $? -ne 0 ]; then
42
+ echo "Error: Failed to push the tag $VERSION"
43
+ exit 1
44
+ fi
45
+
46
+ echo "Tag $VERSION successfully applied to commit $LATEST_MASTER_COMMIT and pushed to repository."
47
+
48
+ exit 0
@@ -1,6 +1,14 @@
1
1
  image: atlassian/default-image:3
2
2
 
3
3
  pipelines:
4
+ pull-requests:
5
+ '**':
6
+ - step:
7
+ name: Build and test
8
+ image: node:16.20.2
9
+ script:
10
+ - npm install
11
+ - npm run test
4
12
  custom:
5
13
  create-release:
6
14
  import: infrastructure-automation:master:create-release
@@ -11,4 +19,6 @@ pipelines:
11
19
  "release/*":
12
20
  import: infrastructure-automation:master:auto-update
13
21
  "hotfix/*":
14
- import: infrastructure-automation:master:auto-update
22
+ import: infrastructure-automation:master:auto-update
23
+ master:
24
+ import: infrastructure-automation:master:auto-publish-release
@@ -623,7 +623,7 @@ export default {
623
623
  min-width: 10vw;
624
624
  padding-left: 4px;
625
625
  padding-right: 4px;
626
- overflow: hidden;
626
+ overflow: hidden !important;
627
627
  white-space: nowrap;
628
628
  text-overflow: ellipsis;
629
629
  background-color: white;
@@ -198,7 +198,7 @@
198
198
  <v-col cols="12">
199
199
  <GenerateAIQuestionButton
200
200
  :course="course"
201
- :content="content"
201
+ :content="currentContent"
202
202
  :block="block"
203
203
  question-type="bucket_game"
204
204
  :replace-existing-mode="replaceExisting"
@@ -239,7 +239,7 @@ export default {
239
239
  TextEditor,
240
240
  GenerateAIQuestionButton,
241
241
  },
242
- beforeMount() {
242
+ beforeMount() {
243
243
  if (_.isEmpty(this.block)) {
244
244
  this.block = {}
245
245
  }
@@ -301,7 +301,7 @@ export default {
301
301
  computed: {
302
302
  ...mapGetters({
303
303
  course: 'course/get',
304
- content: 'content/get',
304
+ currentContent: 'content/get',
305
305
  }),
306
306
  },
307
307
  methods: {
@@ -21,12 +21,12 @@
21
21
  :disabled="render"
22
22
  @click:close="onDelete($event)"
23
23
  >
24
- <template #header="{ item, index }">
24
+ <template #header="{ index }">
25
25
  {{
26
26
  stripHtml(block.metadata.config.cards[index].front.text)
27
27
  }}
28
28
  </template>
29
- <template #body="{ item, index }">
29
+ <template #body="{ index }">
30
30
  <v-container>
31
31
  <v-row
32
32
  class="d-flex justify-space-around"
@@ -258,7 +258,7 @@
258
258
  <v-col cols="12">
259
259
  <GenerateAIQuestionButton
260
260
  :course="course"
261
- :content="content"
261
+ :content="currentContent"
262
262
  :block="block"
263
263
  question-type="flashcard"
264
264
  :replace-existing-mode="replaceExisting"
@@ -343,7 +343,7 @@ export default {
343
343
  computed: {
344
344
  ...mapGetters({
345
345
  course: 'course/get',
346
- content: 'content/get',
346
+ currentContent: 'content/get',
347
347
  }),
348
348
  defaultCard() {
349
349
  return {
@@ -511,4 +511,3 @@ export default {
511
511
  },
512
512
  }
513
513
  </script>
514
-
@@ -4,7 +4,7 @@ export default {
4
4
  mass_entry: 'Mass data entry',
5
5
  title: 'Title',
6
6
  instructions: 'Instructions',
7
- default_instructions: 'Match the correct descriptor to the prompt. To make a match, drag the descriptor and release it over the prompt. Incorrect answers will flash red. Correct answers will flash green and reveal a Continue button so you can move on to the next prompt.',
7
+ default_instructions: 'Match items and categories by dragging items and releasing them into a category area. Correctly sorted items will remain in the buckets. Keep sorting items until all of them are placed in a category.',
8
8
  buckets: 'Bucket Items',
9
9
  feedback: {
10
10
  feedback: 'Feedback',
@@ -5,7 +5,7 @@ export default {
5
5
  title: 'Título',
6
6
  instructions: 'Instrucciones',
7
7
  default_instructions:
8
- 'Haga coincidir el descriptor correcto con el mensaje. Para hacer una coincidencia, arrastre el descriptor y suéltelo sobre el mensaje. Las respuestas incorrectas parpadearán en rojo. Las respuestas correctas parpadearán en verde y revelarán un botón Continuar para que pueda pasar al siguiente mensaje.',
8
+ 'Haga coincidir elementos y categorías arrastrando elementos y soltándolos en un área de categoría. Los elementos ordenados correctamente permanecerán en los depósitos. Continúe ordenando elementos hasta que todos estén colocados en una categoría.',
9
9
  buckets: 'Elementos del depósito',
10
10
  feedback: {
11
11
  feedback: 'Comentarios',
@@ -5,7 +5,7 @@ export default {
5
5
  title: 'Titel',
6
6
  instructions: 'Instruktioner',
7
7
  default_instructions:
8
- 'Matcha rätt beskrivning med prompten. För att göra en matchning, dra deskriptorn och släpp den över prompten. Felaktiga svar blinkar rött. Rätta svar blinkar grönt och visar en Fortsätt-knapp att du kan vidare till nästa uppmaning.',
8
+ 'Matcha objekt och kategorier genom att dra objekt och släppa dem i ett kategoriområde. Korrekt sorterade objekt kommer att förbli i hinkarna. Fortsätt sortera objekt tills alla är placerade i en kategori.',
9
9
  buckets: 'Bucket Items',
10
10
  feedback: {
11
11
  feedback: 'Feedback',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@windward/games",
3
- "version": "0.19.0",
3
+ "version": "0.20.0",
4
4
  "description": "Windward UI Plugin Games",
5
5
  "main": "plugin.js",
6
6
  "scripts": {
@@ -21,7 +21,7 @@
21
21
  "license": "MIT",
22
22
  "homepage": "https://bitbucket.org/mindedge/windward-ui-plugin-games#readme",
23
23
  "dependencies": {
24
- "@windward/core": "^0.17.0",
24
+ "@windward/core": "^0.20.0",
25
25
  "eslint": "^8.11.0",
26
26
  "lodash": "^4.17.21",
27
27
  "prettier": "^2.6.0",
@@ -32,6 +32,7 @@
32
32
  },
33
33
  "devDependencies": {
34
34
  "@babel/preset-env": "^7.16.11",
35
+ "@mindedge/vue-api-query": "^1.15.1",
35
36
  "@nuxtjs/axios": "^5.13.6",
36
37
  "@types/lodash": "^4.14.180",
37
38
  "@vue/test-utils": "^1.1.3",