From fb2ec923de531743bc0fda07c4bdba34a30e1780 Mon Sep 17 00:00:00 2001 From: Trent Larson <trent@trentlarson.com> Date: Fri, 3 Jan 2025 12:32:05 -0700 Subject: [PATCH] change gifted prompts to point to achievements that were made possible --- CHANGELOG.md | 5 ++++ src/components/GiftedPrompts.vue | 48 +++++++++++++++++--------------- 2 files changed, 30 insertions(+), 23 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3c10f204f..0e62b3d91 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,11 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [0.3.46] +### Fixed +- Contact-list import set visibility for all, even if not chosen. + + ## [0.3.45] - 2025.01.01 - 65402dc68ce69ccc6cb9aa8d2e7a9249bf4298e0 ### Fixed - Previous project links stayed when following a link. diff --git a/src/components/GiftedPrompts.vue b/src/components/GiftedPrompts.vue index b53aa0c02..a09a8dc88 100644 --- a/src/components/GiftedPrompts.vue +++ b/src/components/GiftedPrompts.vue @@ -1,7 +1,7 @@ <template> <div v-if="visible" class="dialog-overlay"> <div class="dialog"> - <h1 class="text-xl font-bold text-center mb-4 relative"> + <h1 class="text-xl font-bold text-center relative"> Here's one: <div class="text-lg text-center p-2 leading-none absolute right-0 -top-1" @@ -10,8 +10,9 @@ <fa icon="xmark" class="w-[1em]"></fa> </div> </h1> - <span class="flex justify-between"> + <span class="mt-2 flex justify-between"> <span + v-if="currentCategory === CATEGORY_IDEAS" class="rounded-l border border-slate-400 bg-slate-200 px-4 py-2 flex" @click="prevIdea()" > @@ -20,7 +21,7 @@ <div class="m-2"> <span v-if="currentCategory === CATEGORY_IDEAS"> - <p class="text-center text-lg font-bold"> + <p class="text-center text-lg"> {{ IDEAS[currentIdeaIndex] }} </p> </span> @@ -28,12 +29,12 @@ <p class="text-center"> <span v-if="currentContact == null" - class="text-orange-500 text-lg font-bold" + class="text-orange-500 text-lg" > That's all your contacts. </span> <span v-else> - <span class="text-lg font-bold"> + <span class="text-lg"> Did {{ currentContact.name || AppString.NO_CONTACT_NAME }} <br /> or someone near them do anything – maybe a while ago? @@ -85,21 +86,22 @@ export default class GivenPrompts extends Vue { CATEGORY_CONTACTS = 1; CATEGORY_IDEAS = 0; IDEAS = [ - "What food did someone fix for you?", - "What did a family member do for you?", - "What compliment did someone give you?", - "Who is someone you can always rely on, and how did they demonstrate that?", - "What did you see someone give to someone else?", - "What is a way that someone helped you even though you have never met?", - "How did a musician or author or artist inspire you?", - "What inspiration did you get from someone who handled tragedy well?", - "What is something worth respect that an organization gave you?", - "Who last gave you a good laugh?", - "What do you recall someone giving you while you were young?", - "Who forgave you or overlooked a mistake?", - "What is a way an ancestor contributed to your life?", - "What kind of help did someone at work give you?", - "How did a teacher or mentor or great example help you?", + "What food did someone make? (How did it free up your time for something? Was something doable because it eased your stress?)", + "What did a family member do? (How did you take better action because it made you feel loved?)", + "What compliment did someone give you? (What task could you tackle because it boosted your confidence?)", + "Who is someone you can always rely on, and how did they demonstrate that? (What project tasks were enabled because you could depend on them?)", + "What did you see someone give to someone else? (What is the effect of the positivity you gained from seeing that?)", + "What is a way that someone helped you even though you have never met? (What different action did you take due to that newfound perspective or inspiration?)", + "How did a musician or author or artist inspire you? (What were you motivated to do more creatively because of that?)", + "What inspiration did you get from someone who handled tragedy well? (What could you accomplish with better grace or resilience after seeing their example?)", + "What is something worth respect that an organization gave you? (How did their contribution improve the situation or enable new activities?)", + "Who last gave you a good laugh? (What kind of bond or revitalization did that bring to a situation?)", + "What do you recall someone giving you while you were young? (How did it bring excitement or teach a skill or ignite a passion that resulted in improvements in your life?)", + "Who forgave you or overlooked a mistake? (How did that free you or build trust that enabled better relationships?)", + "What is a way an ancestor contributed to your life? (What in your life is now possible because of their efforts? What challenges are you undertaking knowing of their lives?)", + "What kind of help did someone at work give you? (How did that help with team progress? How did that lift your professional growth?)", + "How did a teacher or mentor or great example help you? (How did their guidance enhance your attitude or actions?)", + "What is a surprise gift you received? (What extra possibilities did it give you?)", ]; callbackOnFullGiftInfo?: ( @@ -116,9 +118,9 @@ export default class GivenPrompts extends Vue { AppString = AppString; async open( - callbackOnFullGiftInfo: ( - contactInfo: GiverReceiverInputInfo, - description: string, + callbackOnFullGiftInfo?: ( + contactInfo?: GiverReceiverInputInfo, + description?: string, ) => void, ) { this.visible = true;