Skip to content

Commit

Permalink
Merge pull request #124 from digio-ch/issue/gamification
Browse files Browse the repository at this point in the history
Issue/gamification
  • Loading branch information
SebastianStorz committed Sep 11, 2024
2 parents e927ffa + a22c9af commit 50c45f8
Show file tree
Hide file tree
Showing 33 changed files with 2,972 additions and 5 deletions.
7 changes: 7 additions & 0 deletions config/routes/app_routes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,14 @@ general:
prefix: /general
name_prefix: general_

# Census
census:
resource: "apps/census.yml"
prefix: /census
name_prefix: census_

# Gamification
gamification:
resource: "apps/gamification.yml"
prefix: /gamification
name_prefix: gamification_
29 changes: 29 additions & 0 deletions config/routes/apps/gamification.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
groupChange:
path: /group-change
methods: POST
controller: App\Controller\Api\GamificationController::postGroupChange

logCardLayer:
path: /card-layer
methods: PATCH
controller: App\Controller\Api\GamificationController::usedCardLayer

logDataFilter:
path: /data-filter
methods: PATCH
controller: App\Controller\Api\GamificationController::usedDataFilter

logTimeFilter:
path: /time-filter
methods: PATCH
controller: App\Controller\Api\GamificationController::usedTimeFilter

getPersonProfile:
path: /person
methods: GET
controller: App\Controller\Api\GamificationController::getUserProfile

reset:
path: /reset
methods: POST
controller: App\Controller\Api\GamificationController::resetGamification
283 changes: 283 additions & 0 deletions imports/gamification.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,283 @@
{
"levels": [
{
"key": 0,
"next_key": 1,
"type": 0,
"required": 0,
"de_title": "Newcomer*in",
"fr_title": "",
"it_title": ""
},
{
"key": 1,
"next_key": 2,
"type": 0,
"required": 3,
"de_title": "Datenentdecker*in",
"fr_title": "",
"it_title": ""
},
{
"key": 2,
"next_key": 3,
"type": 0,
"required": 3,
"de_title": "Statistikforscher*in",
"fr_title": "",
"it_title": ""
},
{
"key": 3,
"next_key": null,
"type": 0,
"required": 2,
"de_title": "Healthcheck Guru",
"fr_title": "",
"it_title": ""
}
],
"goals": [
{
"key": "FIRST_LOGIN",
"level": 1,
"required": true,
"de": {
"title": "Erstes Login",
"information": "Testing: Ist immer erfüllt",
"help": ""
},
"fr": {
"title": "french",
"information": "",
"help": ""
},
"it": {
"title": "italian",
"information": "",
"help": ""
}
},
{
"key": "CARD_LAYERS",
"level": 1,
"required": true,
"de": {
"title": "Unterschiedliche Layer der Karte benutzt",
"information": "",
"help": ""
},
"fr": {
"title": "french",
"information": "",
"help": ""
},
"it": {
"title": "italian",
"information": "",
"help": ""
}
},
{
"key": "DATAFILTER",
"level": 1,
"required": false,
"de": {
"title": "Datenfilter in Übersicht benutzt",
"information": "",
"help": ""
},
"fr": {
"title": "french",
"information": "",
"help": ""
},
"it": {
"title": "italian",
"information": "",
"help": ""
}
},
{
"key": "TIMEFILTER",
"level": 1,
"required": false,
"de": {
"title": "zeitbereichsansicht benutzt",
"information": "",
"help": ""
},
"fr": {
"title": "french",
"information": "",
"help": ""
},
"it": {
"title": "italian",
"information": "",
"help": ""
}
},
{
"key": "SHARE_WITH_PARENTS",
"level": 1,
"required": false,
"de": {
"title": "Freigabe für übergeordnete Ebene.",
"information": "",
"help": ""
},
"fr": {
"title": "french",
"information": "",
"help": ""
},
"it": {
"title": "italian",
"information": "",
"help": ""
}
},
{
"key": "EL_FILL_OUT",
"level": 2,
"required": true,
"de": {
"title": "Alle Erfolgslogik Kasten einer Gruppe Ausgefüllt.",
"information": "Testing: noch nicht freigegeben (WIP)",
"help": ""
},
"fr": {
"title": "french",
"information": "",
"help": ""
},
"it": {
"title": "italian",
"information": "",
"help": ""
}
},
{
"key": "SHARE_1",
"level": 2,
"required": false,
"de": {
"title": "Freigabe für mindestens eine andere Person.",
"information": "",
"help": ""
},
"fr": {
"title": "french",
"information": "",
"help": ""
},
"it": {
"title": "italian",
"information": "",
"help": ""
}
},
{
"key": "EL_IRRELEVANT",
"level": 2,
"required": false,
"de": {
"title": "In der Erfolgslogik nicht relevante Fragen ausgebledet",
"information": "",
"help": ""
},
"fr": {
"title": "french",
"information": "",
"help": ""
},
"it": {
"title": "italian",
"information": "",
"help": ""
}
},
{
"key": "EL_CHANGE",
"level": 2,
"required": false,
"de": {
"title": "Einen Erfolgslogik Kasten überarbeitet.",
"information": "",
"help": ""
},
"fr": {
"title": "french",
"information": "",
"help": ""
},
"it": {
"title": "italian",
"information": "",
"help": ""
}
},
{
"key": "EL_IMPROVE",
"level": 3,
"required": true,
"de": {
"title": "Verbesserung in einem Erfolgslogik Kasten.",
"information": "",
"help": ""
},
"fr": {
"title": "french",
"information": "",
"help": ""
},
"it": {
"title": "italian",
"information": "",
"help": ""
}
},
{
"key": "LOGIN_FOUR_A_YEAR",
"level": 3,
"required": false,
"de": {
"title": "Vier mal innerhalb eines Jahres eingeloggt.",
"information": "",
"help": ""
},
"fr": {
"title": "french",
"information": "",
"help": ""
},
"it": {
"title": "italian",
"information": "",
"help": ""
}
},
{
"key": "SHARE_THREE",
"level": 3,
"required": false,
"de": {
"title": "Eine Abteilung an 3 oder mehr Personen freigegeben.",
"information": "",
"help": "Du hast % von 3 Freigaben"
},
"fr": {
"title": "french",
"information": "",
"help": ""
},
"it": {
"title": "italian",
"information": "",
"help": ""
}
}
]
}

Loading

0 comments on commit 50c45f8

Please sign in to comment.