implemented feedback from usability test

This commit is contained in:
Timo Volkmann 2019-05-16 16:52:47 +02:00
parent ab213517b7
commit 426e24e096
9 changed files with 39 additions and 67 deletions

View File

@ -98,7 +98,7 @@
<q-icon name="list"/> <q-icon name="list"/>
</q-item-section> </q-item-section>
<q-item-section> <q-item-section>
<q-item-label>Rangliste</q-item-label> <q-item-label>Top 10 Rangliste</q-item-label>
</q-item-section> </q-item-section>
</q-item> </q-item>
<q-item <q-item
@ -164,16 +164,16 @@
</q-item> </q-item>
<q-item <!-- <q-item-->
disable <!-- disable-->
class="text-grey-5" <!-- class="text-grey-5"-->
> <!-- >-->
<q-item-section avatar> <!-- <q-item-section avatar>-->
</q-item-section> <!-- </q-item-section>-->
<q-item-section> <!-- <q-item-section>-->
<q-item-label>dev: {{ clickCounter }} clicks</q-item-label> <!-- <q-item-label>dev: {{ clickCounter }} clicks</q-item-label>-->
</q-item-section> <!-- </q-item-section>-->
</q-item> <!-- </q-item>-->
</q-list> </q-list>

View File

@ -30,7 +30,7 @@
max-height="50vh" max-height="50vh"
/> />
<p class="text-h6">Stationen</p> <p class="text-h6">Stationen</p>
<q-list bordered separator class="rounded-borders"> <q-list bordered separator class="rounded-borders" v-if="computedCache.stationen.length > 0">
<q-item v-for="(station, index) in computedCache.stationen" :key="index"> <q-item v-for="(station, index) in computedCache.stationen" :key="index">
<q-item-section avatar> <q-item-section avatar>
@ -44,10 +44,10 @@
<span class="text-grey-8">ID: {{ station.id ? station.id : "keine" }}</span> <span class="text-grey-8">ID: {{ station.id ? station.id : "keine" }}</span>
</q-item-label> </q-item-label>
<q-item-label lines="1" class="q-mt-xs text-body2"> <q-item-label lines="1" class="q-mt-xs text-body2">
<span class="cursor-pointer">{{ station.description }}</span> <span class="cursor-pointer" v-html="station.description"></span>
</q-item-label> </q-item-label>
<q-item-label caption lines="1"> <q-item-label caption lines="1">
Code: {{ station.code }} Koordinaten: {{ station.lattitude }}, {{ station.longitude }}
</q-item-label> </q-item-label>
</q-item-section> </q-item-section>
@ -60,8 +60,9 @@
</q-item> </q-item>
</q-list> </q-list>
<p class=""><b>Hinweis:</b> Ein Cache muss mindestens aus zwei Stationen bestehen (inklusive der Endstation).</p>
<div class="row reverse"> <div class="row reverse">
<q-btn @click="addStation" unelevated color="primary" label="Station hinzufügen" icon-right="add"/> <q-btn @click="addStation" class="full-width" unelevated color="primary" label="Station hinzufügen" icon-right="add"/>
</div> </div>
<p class="text-h6">Endstation</p> <p class="text-h6">Endstation</p>
<q-card flat bordered class="rounded-borders"> <q-card flat bordered class="rounded-borders">

View File

@ -125,7 +125,7 @@
console.log(response.data); console.log(response.data);
if (response.status === 201) { if (response.status === 201) {
this.$store.commit('dialog/NEW_MESSAGE_DIALOG', { this.$store.commit('dialog/NEW_MESSAGE_DIALOG', {
message: "Deine Registrierung war erfolgreich!", message: "Deine Registrierung war erfolgreich! Du bist jetzt eingeloggt.",
title: "Registrierungsprozess", title: "Registrierungsprozess",
color: "blue" color: "blue"
}); });
@ -153,7 +153,6 @@
this.$store.commit('dialog/NEW_MESSAGE_DIALOG', {message: message, title: header}); this.$store.commit('dialog/NEW_MESSAGE_DIALOG', {message: message, title: header});
}); });
} else { } else {
if (this.user.email != this.user.checkemail) { if (this.user.email != this.user.checkemail) {
this.$store.commit('dialog/NEW_MESSAGE_DIALOG', { this.$store.commit('dialog/NEW_MESSAGE_DIALOG', {
message: "Email stimmt nicht überein", message: "Email stimmt nicht überein",

View File

@ -50,8 +50,8 @@
latlang: "", latlang: "",
station: { station: {
description: "Rätsel, Aufgabe und Informationen zur Station.", description: "Rätsel, Aufgabe und Informationen zur Station.",
lattitude: "0.000", lattitude: 49.1474082,
longitude: "0.000", longitude: 9.2065282,
solution: "", solution: "",
code: "" code: ""
}, },

View File

@ -37,8 +37,8 @@
latlang: "", latlang: "",
station: { station: {
description: "Beschreibung", description: "Beschreibung",
lattitude: "0.000", lattitude: 49.1474082,
longitude: "0.000", longitude: 9.2065282,
solution: "", solution: "",
code: "" code: ""
}, },

View File

@ -21,7 +21,7 @@
import qrscanner from "../components/qrscanner"; import qrscanner from "../components/qrscanner";
export default { export default {
name: "Station", name: "Station",
components: {qrscanner}, components: { qrscanner },
data() { data() {
return { return {
cacheID: "", cacheID: "",

View File

@ -86,26 +86,6 @@
console.log(response.data); console.log(response.data);
this.rankinglist = response.data; this.rankinglist = response.data;
}).catch((error) => { }).catch((error) => {
// Error
let msg;
let title;
if (error.response) {
// The request was made and the server responded with a status code
title = "Problem with response!";
msg = error.response;
} else if (error.request) {
// The request was made but no response was received
title = "Problem with request!";
msg = "Error occured due to wrong server request!"
console.log(error.request);
} else {
// Something happened in setting up the request that triggered an Error
title = "Error";
msg = error.message;
console.log('Error', error.message);
}
console.log(error.config);
this.$store.commit('dialog/NEW_MESSAGE_DIALOG', { message: msg, title: title, });
}) })
}, },
fetchTeamRankinglist() { fetchTeamRankinglist() {
@ -115,27 +95,19 @@
console.log(response.data); console.log(response.data);
this.teamRankinglist = response.data; this.teamRankinglist = response.data;
}).catch((error) => { }).catch((error) => {
// Error
let msg;
let title;
if (error.response) {
// The request was made and the server responded with a status code
title = "Problem with response!";
msg = error.response;
} else if (error.request) {
// The request was made but no response was received
title = "Problem with request!";
msg = "Error occured due to wrong server request!"
console.log(error.request);
} else {
// Something happened in setting up the request that triggered an Error
title = "Error";
msg = error.message;
console.log('Error', error.message);
}
console.log(error.config);
this.$store.commit('dialog/NEW_MESSAGE_DIALOG', { message: msg, title: title, });
}) })
},
calculateRank() {
// TODO
// let rank = 0;
// let lastSum = null;
// const rankinglistCopy = this.rankinglist;
// for (let i = rankinglistCopy.length-1; i >= 0; i--) {
// if (lastSum === null || ranking.rankingPointsSum >= lastSum) {
// rank++;
// }
// lastSum = ranking.rankingPointsSum;
// }
} }
} }
} }

View File

@ -47,9 +47,9 @@ export const RESET_NEW_CACHE = (state) => {
}; };
state.endStation = { state.endStation = {
description: "Endstation", description: "Endstation",
longitude: 0.000, lattitude: 49.1474082,
lattitude: 0.000, longitude: 9.2065282,
solution: "", solution: "",
}; };
console.log("resetted new Cache"); console.log("resetted new Cache");

View File

@ -12,8 +12,8 @@ export default {
tempStation: {}, tempStation: {},
endStation: { endStation: {
description: "Endstation", description: "Endstation",
longitude: 0.000, lattitude: 49.1474082,
lattitude: 0.000, longitude: 9.2065282,
solution: "", solution: "",
}, },
} }