-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changes to use fullscreen modal on reviews and also support feedback …
…via email
- Loading branch information
1 parent
d2531b7
commit f29fda6
Showing
7 changed files
with
100 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
<template> | ||
<modal> | ||
<div> | ||
<h1>Did you like using BEEP?</h1> | ||
<h3 @click="goToReview"> | ||
<span>Would you mind rating BEEP?</span> | ||
</h3> | ||
<h3 @click="provideFeedback"> | ||
<span>We would love to learn from your experience. Can you give us feedback, please? </span> | ||
</h3> | ||
</div> | ||
</modal> | ||
</template> | ||
|
||
<script> | ||
import Modal from './Modal.vue' | ||
export default { | ||
name: 'ReviewAppModal', | ||
components: { | ||
Modal, | ||
}, | ||
methods: { | ||
async goToReview() { | ||
await this.$reviewAppService.suggestAppReview() | ||
this.$ionic.modalController.dismiss() | ||
}, | ||
async provideFeedback() { | ||
await this.$reviewAppService.provideAppFeedback() | ||
this.$ionic.modalController.dismiss() | ||
}, | ||
}, | ||
} | ||
</script> | ||
|
||
<style scoped> | ||
h1 { | ||
color: var(--beep-dark); | ||
font-size: 24px; | ||
font-weight: bold; | ||
letter-spacing: -0.6px; | ||
line-height: 1.5; | ||
margin-bottom: 25px; | ||
} | ||
h3 { | ||
margin: 0 auto; | ||
height: 5vh; | ||
font-size: 16px; | ||
font-weight: 300; | ||
letter-spacing: -0.48px; | ||
line-height: 22px; | ||
} | ||
h3 span { | ||
border-bottom: 1px solid var(--beep-dark); | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import reviewAppModal from '@/components/ReviewAppModal.vue' | ||
|
||
export default { | ||
data() { | ||
return { | ||
reviewAppModal, | ||
} | ||
}, | ||
methods: { | ||
async tryPromptAppReview() { | ||
if (this.$reviewAppService.shouldPromptAppReview()) { | ||
await this.toggleModal(this.reviewAppModal) | ||
this.$reviewAppService.storeReviewRejected = true | ||
} | ||
}, | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters