From 88f869d600311ae004e7ed54bc0c9c4882617c77 Mon Sep 17 00:00:00 2001 From: Trent Larson Date: Wed, 24 Jan 2024 20:46:05 -0700 Subject: [PATCH] lower project "I Gave" button into list of contact, and tweak other wording --- project.task.yaml | 14 ++++++++++++-- src/components/GiftedDialog.vue | 4 ++-- src/libs/endorserServer.ts | 18 ++++++++++-------- src/views/ProjectViewView.vue | 33 +++++++++++++++++++-------------- 4 files changed, 43 insertions(+), 26 deletions(-) diff --git a/project.task.yaml b/project.task.yaml index 78810b3bc..e09402233 100644 --- a/project.task.yaml +++ b/project.task.yaml @@ -1,10 +1,20 @@ tasks: +- image on give + - Show a camera to take a picture + - Scale the image to a reasonable size + - Upload to a public readable place + - check the rate limits + - use CID + - put the image URL in the claim + - Rates - images erased? + - image not associated with JWT ULID since that's assigned later +- mark a project as inactive +- make a shortcut for BVC - add share button for sending a message to confirmers when we can't see the claim - add TimeSafari as a shareable app https://developer.mozilla.org/en-US/docs/Web/Manifest/share_target -- make a shortcut for BVC -- choose an agent via a contact chooser (not just copy-paste a DID) +- choose a project's alternative agent ("authorized representative") via a contact chooser (not just copy-paste a DID) - .5 find out why clicking quickly back-and-forth onto the "my project" page often shows error "You need an identifier to load your projects." (easier to reproduce on desktop?) - .5 bug - it didn't show the "fulfills offer" on the claim detail page for a give that had one - https://test.timesafari.app/claim/01HMFWRPA3PD6Q9EYFKX3MC41J - 01 replace all "confirm" prompts with nicer modal diff --git a/src/components/GiftedDialog.vue b/src/components/GiftedDialog.vue index 6120c7a6c..f18f54d88 100644 --- a/src/components/GiftedDialog.vue +++ b/src/components/GiftedDialog.vue @@ -37,11 +37,11 @@
- + - + diff --git a/src/libs/endorserServer.ts b/src/libs/endorserServer.ts index fa4c8558d..0bda865b5 100644 --- a/src/libs/endorserServer.ts +++ b/src/libs/endorserServer.ts @@ -279,15 +279,17 @@ export function didInfo( ): string { if (!did) return "Someone Anonymous"; - const myId = R.find(R.equals(did), allMyDids); - if (myId) return `You${myId !== activeDid ? " (Alt ID)" : ""}`; - const contact = R.find((c) => c.did === did, contacts); - return contact - ? contact.name || "Contact With No Name" - : isHiddenDid(did) - ? "Someone Not In Network" - : "Someone Not In Contacts"; + if (contact) { + return contact.name || "Contact With No Name"; + } else { + const myId = R.find(R.equals(did), allMyDids); + return myId + ? `You${myId !== activeDid ? " (Alt ID)" : ""}` + : isHiddenDid(did) + ? "Someone Not In Network" + : "Someone Not In Contacts"; + } } export interface ResultWithType { diff --git a/src/views/ProjectViewView.vue b/src/views/ProjectViewView.vue index e30e4e28a..8e4d32973 100644 --- a/src/views/ProjectViewView.vue +++ b/src/views/ProjectViewView.vue @@ -118,30 +118,31 @@ @click="openOfferDialog()" class="block w-full text-lg font-bold uppercase bg-blue-600 text-white px-2 py-3 rounded-md" > - I offer… + Offer (maybe with conditions)...
-
- -

Or, record a contribution from:

-
- +
+

Record a contribution from:

+
    +
  • + +

    + You +

    +
  • @@ -189,7 +190,10 @@
    - (None yet. Wanna offer something if others join you?) + (None yet. Wanna + offer something... especially if others join you?)
      @@ -246,7 +250,8 @@

      Given To This Idea

      - (None yet. You can be the first.) + (None yet. If you've seen something, say something by clicking a + contact above.)