diff --git a/components/layout/DialogManager.vue b/components/layout/DialogManager.vue index e15d82eb..00861c84 100644 --- a/components/layout/DialogManager.vue +++ b/components/layout/DialogManager.vue @@ -1,6 +1,4 @@ diff --git a/components/layout/modal/FeedbackPrompt.vue b/components/layout/modal/FeedbackPrompt.vue new file mode 100644 index 00000000..f515a0de --- /dev/null +++ b/components/layout/modal/FeedbackPrompt.vue @@ -0,0 +1,61 @@ + + + + + + + + + + + + Got a minute? + + + + Let me know what you think about the app and how I can improve it + + + + + + + + + + + Dismiss + + + diff --git a/components/layout/modal/PWA.vue b/components/layout/modal/PwaPrompt.vue similarity index 95% rename from components/layout/modal/PWA.vue rename to components/layout/modal/PwaPrompt.vue index 2457e671..4acc3107 100644 --- a/components/layout/modal/PWA.vue +++ b/components/layout/modal/PwaPrompt.vue @@ -16,10 +16,10 @@ - + diff --git a/composables/useAppStatistics.ts b/composables/useAppStatistics.ts index 8c7b6aa4..a0061d66 100644 --- a/composables/useAppStatistics.ts +++ b/composables/useAppStatistics.ts @@ -8,6 +8,7 @@ let tutorialPostSave = ref(false) let tutorialPostSource = ref(false) let promptInstallPwa = ref(false) +let promptFeedback = ref(false) if (process.client) { timesTheAppHasBeenOpened = useStorage('statistics-appOpenedCount', 0, localStorage, { @@ -28,6 +29,9 @@ if (process.client) { promptInstallPwa = useStorage('prompt-installPwa', false, localStorage, { writeDefaults: false }) + promptFeedback = useStorage('prompt-feedback', false, localStorage, { + writeDefaults: false + }) } timesTheAppHasBeenOpened.value++ @@ -40,6 +44,7 @@ export function useAppStatistics() { tutorialPostSave, tutorialPostSource, - promptInstallPwa + promptInstallPwa, + promptFeedback } }
Let me know what you think about the app and how I can improve it