Browse Source

improve give descriptions, bump to v 0.1.1

misc2
Trent Larson 1 year ago
parent
commit
7305606546
  1. 2
      CHANGELOG.md
  2. 4
      package-lock.json
  3. 2
      package.json
  4. 2
      project.task.yaml
  5. 5
      src/views/HomeView.vue

2
CHANGELOG.md

@ -9,6 +9,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]
## [0.1.0] - 2023.11.??
## [0.1.1] - 2023.10.31
### Added
- Basics: create ID, record a give, declare a project, search, and get notifications.

4
package-lock.json

@ -1,12 +1,12 @@
{
"name": "kickstart-for-time-pwa",
"version": "0.1.0",
"version": "0.1.1",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "kickstart-for-time-pwa",
"version": "0.1.0",
"version": "0.1.1",
"dependencies": {
"@ethersproject/hdnode": "^5.7.0",
"@fortawesome/fontawesome-svg-core": "^6.4.0",

2
package.json

@ -1,6 +1,6 @@
{
"name": "kickstart-for-time-pwa",
"version": "0.1.0",
"version": "0.1.1",
"private": true,
"scripts": {
"serve": "vue-cli-service serve",

2
project.task.yaml

@ -38,7 +38,7 @@ tasks:
- .2 fix rate limit verbiage (with the new one-per-day allowance) assignee:trent
- .1 remove the logic to exclude beforeId in list of plans after server has commit 26b25af605e715600d4f12b6416ed9fd7142d164
- .2 in SeedBackupView, don't load the mnemonic and keep it in memory; only load it when they click "show"
- .1 change default server in app.ts
- .1 Make give description text box into something that expands as they type
- Discuss whether the remaining tasks are worthwhile before MVP release.

5
src/views/HomeView.vue

@ -415,6 +415,7 @@ export default class HomeView extends Vue {
}
giveDescription(giveRecord: GiveServerRecord) {
// similar code is in endorser-mobile utility.ts
// claim.claim happen for some claims wrapped in a Verifiable Credential
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const claim = (giveRecord.fullClaim as any).claim || giveRecord.fullClaim;
@ -429,7 +430,7 @@ export default class HomeView extends Vue {
);
const gaveAmount = claim.object?.amountOfThisGood
? this.displayAmount(claim.object.unitCode, claim.object.amountOfThisGood)
: claim.description || "something unknown";
: claim.description || "something without description";
// recipient.did is for legacy data, before March 2023
const gaveRecipientId =
// eslint-disable-next-line @typescript-eslint/no-explicit-any
@ -443,7 +444,7 @@ export default class HomeView extends Vue {
this.allContacts,
)
: "";
return giverInfo + " gave " + gaveAmount + gaveRecipientInfo;
return giverInfo + " gave" + gaveRecipientInfo + ": " + gaveAmount;
}
displayAmount(code: string, amt: number) {

Loading…
Cancel
Save