forked from trent_larson/crowd-funder-for-time-pwa
Compare commits
2 Commits
035f2a5b04
...
tweaks
| Author | SHA1 | Date | |
|---|---|---|---|
| 9d00df2438 | |||
| 8a0c3c16ed |
@@ -6,16 +6,14 @@
|
|||||||
- replace user-affecting console.logs with error messages (eg. catches)
|
- replace user-affecting console.logs with error messages (eg. catches)
|
||||||
|
|
||||||
- contacts v1 :
|
- contacts v1 :
|
||||||
- produce a video assignee:trent
|
|
||||||
- .2 warn about amounts when you cannot see them
|
- .2 warn about amounts when you cannot see them
|
||||||
- .1 remove 'copy' until it works
|
- .1 add confirmation message when 'copy' succeeds
|
||||||
- .5 switch to prod server
|
- .5 switch to prod server
|
||||||
- .5 Add page to show seed.
|
- .5 Add page to show seed.
|
||||||
- 01 Provide a way to import the non-sensitive data.
|
- 01 Provide a way to import the non-sensitive data.
|
||||||
- 01 Provide way to share your contact info.
|
- 01 Provide way to share your contact info.
|
||||||
- .2 move all "identity" references to temporary account access
|
- .2 move all "identity" references to temporary account access
|
||||||
- .5 make deploy for give-only features
|
- .5 make deploy for give-only features
|
||||||
- .5 get 'copy' to work on account page
|
|
||||||
|
|
||||||
- contacts v+ :
|
- contacts v+ :
|
||||||
- .5 make advanced "show/hide amounts" button into a nice UI toggle
|
- .5 make advanced "show/hide amounts" button into a nice UI toggle
|
||||||
|
|||||||
@@ -206,7 +206,7 @@
|
|||||||
|
|
||||||
<div class="flex py-2">
|
<div class="flex py-2">
|
||||||
<button class="text-center text-md text-blue-500" @click="checkLimits()">
|
<button class="text-center text-md text-blue-500" @click="checkLimits()">
|
||||||
Check Limits
|
Check Registration and Claim Limits
|
||||||
</button>
|
</button>
|
||||||
<div v-if="!!limits?.nextWeekBeginDateTime" class="px-9">
|
<div v-if="!!limits?.nextWeekBeginDateTime" class="px-9">
|
||||||
<span class="font-bold">Rate Limits</span>
|
<span class="font-bold">Rate Limits</span>
|
||||||
|
|||||||
@@ -72,7 +72,7 @@
|
|||||||
<fa icon="circle-check" class="text-green-600 fa-fw ml-1" />
|
<fa icon="circle-check" class="text-green-600 fa-fw ml-1" />
|
||||||
<span class="tooltiptext">Confirmed</span>
|
<span class="tooltiptext">Confirmed</span>
|
||||||
</span>
|
</span>
|
||||||
<button v-else class="tooltip" @click="confirm(record)">
|
<button v-else class="tooltip" @click="confirmGiven(record)">
|
||||||
<fa icon="circle" class="text-blue-600 fa-fw ml-1" />
|
<fa icon="circle" class="text-blue-600 fa-fw ml-1" />
|
||||||
<span class="tooltiptext">Unconfirmed</span>
|
<span class="tooltiptext">Unconfirmed</span>
|
||||||
</button>
|
</button>
|
||||||
@@ -239,7 +239,11 @@ export default class ContactsView extends Vue {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
async confirm(record: GiveServerRecord) {
|
async confirmGiven(record: GiveServerRecord) {
|
||||||
|
if (!confirm("Are you sure you want to mark this as confirmed?")) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// Make claim
|
// Make claim
|
||||||
// I use clone here because otherwise it gets a Proxy object.
|
// I use clone here because otherwise it gets a Proxy object.
|
||||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||||
|
|||||||
@@ -166,7 +166,11 @@
|
|||||||
/* eslint-enable prettier/prettier */
|
/* eslint-enable prettier/prettier */
|
||||||
}}
|
}}
|
||||||
<span class="tooltiptext-left">
|
<span class="tooltiptext-left">
|
||||||
{{ givenByMeDescriptions[contact.did] || "Nothing" }}
|
{{
|
||||||
|
givenByMeDescriptions[contact.did]
|
||||||
|
? "Most recently: " + givenByMeDescriptions[contact.did]
|
||||||
|
: "(None given yet.)"
|
||||||
|
}}
|
||||||
</span>
|
</span>
|
||||||
<button
|
<button
|
||||||
class="text-md uppercase bg-slate-500 text-white px-1.5 py-2 rounded-md mb-6"
|
class="text-md uppercase bg-slate-500 text-white px-1.5 py-2 rounded-md mb-6"
|
||||||
@@ -188,7 +192,11 @@
|
|||||||
/* eslint-enable prettier/prettier */
|
/* eslint-enable prettier/prettier */
|
||||||
}}
|
}}
|
||||||
<span class="tooltiptext-left">
|
<span class="tooltiptext-left">
|
||||||
{{ givenToMeDescriptions[contact.did] || "Nothing" }}
|
{{
|
||||||
|
givenToMeDescriptions[contact.did]
|
||||||
|
? "Most recently: " + givenToMeDescriptions[contact.did]
|
||||||
|
: "(None received yet.)"
|
||||||
|
}}
|
||||||
</span>
|
</span>
|
||||||
<button
|
<button
|
||||||
class="text-md uppercase bg-slate-500 text-white px-1.5 py-2 rounded-md mb-6"
|
class="text-md uppercase bg-slate-500 text-white px-1.5 py-2 rounded-md mb-6"
|
||||||
@@ -324,8 +332,8 @@ export default class ContactsView extends Vue {
|
|||||||
const contactUnconfirmed: Record<string, number> = {};
|
const contactUnconfirmed: Record<string, number> = {};
|
||||||
const allData: Array<GiveServerRecord> = resp.data.data;
|
const allData: Array<GiveServerRecord> = resp.data.data;
|
||||||
for (const give of allData) {
|
for (const give of allData) {
|
||||||
if (give.unit == "HUR") {
|
const recipDid: string = give.recipientDid;
|
||||||
const recipDid: string = give.recipientDid;
|
if (recipDid && give.unit == "HUR") {
|
||||||
if (give.amountConfirmed) {
|
if (give.amountConfirmed) {
|
||||||
const prevAmount = contactConfirmed[recipDid] || 0;
|
const prevAmount = contactConfirmed[recipDid] || 0;
|
||||||
contactConfirmed[recipDid] = prevAmount + give.amount;
|
contactConfirmed[recipDid] = prevAmount + give.amount;
|
||||||
@@ -339,7 +347,6 @@ export default class ContactsView extends Vue {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//console.log("Done retrieving gives", contactConfirmed);
|
|
||||||
this.givenByMeDescriptions = contactDescriptions;
|
this.givenByMeDescriptions = contactDescriptions;
|
||||||
this.givenByMeConfirmed = contactConfirmed;
|
this.givenByMeConfirmed = contactConfirmed;
|
||||||
this.givenByMeUnconfirmed = contactUnconfirmed;
|
this.givenByMeUnconfirmed = contactUnconfirmed;
|
||||||
|
|||||||
@@ -48,20 +48,20 @@
|
|||||||
</nav>
|
</nav>
|
||||||
|
|
||||||
<!-- CONTENT -->
|
<!-- CONTENT -->
|
||||||
<section id="Content" class="p-6 pb-24">
|
<section id="Content" class="p-4 pb-24">
|
||||||
<!-- Heading -->
|
<!-- Heading -->
|
||||||
<h1 id="ViewHeading" class="text-4xl text-center font-light pt-4 mb-8">
|
<h1 id="ViewHeading" class="text-4xl text-center font-light pt-4 mb-8">
|
||||||
Help
|
Help
|
||||||
</h1>
|
</h1>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<h2 class="text-xl font-semibold">Introduction</h2>
|
<h2 class="text-xl font-semibold py-4">Introduction</h2>
|
||||||
<p>
|
<p>
|
||||||
This app is a window into data that you and your friends own, focused on
|
This app is a window into data that you and your friends own, focused on
|
||||||
gifts and collaboration.
|
gifts and collaboration.
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<h2 class="text-xl font-semibold">How do I backup all my data?</h2>
|
<h2 class="text-xl font-semibold py-4">How do I backup all my data?</h2>
|
||||||
<p>
|
<p>
|
||||||
There are two parts to backup your data: the identifier secrets and the
|
There are two parts to backup your data: the identifier secrets and the
|
||||||
other data such as settings, contacts, etc.
|
other data such as settings, contacts, etc.
|
||||||
@@ -73,7 +73,7 @@
|
|||||||
</h2>
|
</h2>
|
||||||
<ul class="list-disc list-inside">
|
<ul class="list-disc list-inside">
|
||||||
<li>
|
<li>
|
||||||
Go to Your Identity <fa icon="circle-user" class="fa-fw" /> page.
|
Go to your Identity <fa icon="circle-user" class="fa-fw" /> page.
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
Click on "Backup Identifier Seed" and follow the instructions.
|
Click on "Backup Identifier Seed" and follow the instructions.
|
||||||
@@ -85,7 +85,7 @@
|
|||||||
</h2>
|
</h2>
|
||||||
<ul class="list-disc list-inside">
|
<ul class="list-disc list-inside">
|
||||||
<li>
|
<li>
|
||||||
Go to Your Identity <fa icon="circle-user" class="fa-fw" /> page.
|
Go to your Identity <fa icon="circle-user" class="fa-fw" /> page.
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
Click on "Download Settings...". That will save a file to your
|
Click on "Download Settings...". That will save a file to your
|
||||||
@@ -95,7 +95,7 @@
|
|||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<h2 class="text-xl font-semibold">How do I restore my data?</h2>
|
<h2 class="text-xl font-semibold py-4">How do I restore my data?</h2>
|
||||||
<p>
|
<p>
|
||||||
There are two parts to restore your data: the identity secrets and the
|
There are two parts to restore your data: the identity secrets and the
|
||||||
other data such as settings, contacts, etc.
|
other data such as settings, contacts, etc.
|
||||||
@@ -135,16 +135,24 @@
|
|||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<h2 class="text-xl font-semibold">
|
<h2 class="text-xl font-semibold py-4">
|
||||||
|
How do I get registered to make claims?
|
||||||
|
</h2>
|
||||||
|
<p>
|
||||||
|
Contact a current user. They will be able to register you on their
|
||||||
|
Contacts <fa icon="users" class="fa-fw" /> screen. Note that they have a
|
||||||
|
limited number of registrations.
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<h2 class="text-xl font-semibold py-4">
|
||||||
How do I add someone to my contacts?
|
How do I add someone to my contacts?
|
||||||
</h2>
|
</h2>
|
||||||
<p>
|
<p>
|
||||||
Tell them to copy their ID, which typically starts with "did:ethr:...",
|
Tell them to copy their ID, which typically starts with "did:ethr:...",
|
||||||
and send it to you. Go to the Contacts
|
and send it to you. Go to the Contacts
|
||||||
<fa icon="circle-user" class="fa-fw" /> page and enter that into the top
|
<fa icon="users" class="fa-fw" /> page and enter that into the top form.
|
||||||
form. You may add a name by adding a comma followed by their name; you
|
You may add a name by adding a comma followed by their name; you may
|
||||||
may also add their public key by adding another comma followed by the
|
also add their public key by adding another comma followed by the key.
|
||||||
key.
|
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|||||||
Reference in New Issue
Block a user