diff --git a/CHANGELOG.md b/CHANGELOG.md index 0c08a6c0..84a0b859 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] -## [0.1.1] - 2023.10.31 +## [0.1.2] - 2023.11.01 ### Added - Basics: create ID, record a give, declare a project, search, and get notifications. diff --git a/package-lock.json b/package-lock.json index c03a367a..11127e68 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "kickstart-for-time-pwa", - "version": "0.1.1", + "version": "0.1.2", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "kickstart-for-time-pwa", - "version": "0.1.1", + "version": "0.1.2", "dependencies": { "@ethersproject/hdnode": "^5.7.0", "@fortawesome/fontawesome-svg-core": "^6.4.0", diff --git a/package.json b/package.json index 5fb2b6c2..5ef417d2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "kickstart-for-time-pwa", - "version": "0.1.1", + "version": "0.1.2", "private": true, "scripts": { "serve": "vue-cli-service serve", diff --git a/src/main.ts b/src/main.ts index 980b0e84..7bcaade6 100644 --- a/src/main.ts +++ b/src/main.ts @@ -13,6 +13,7 @@ import { library } from "@fortawesome/fontawesome-svg-core"; import { faArrowLeft, faArrowRight, + faBan, faBurst, faCalendar, faChevronLeft, @@ -59,6 +60,7 @@ import { library.add( faArrowLeft, faArrowRight, + faBan, faBurst, faCalendar, faChevronLeft, diff --git a/src/views/AccountViewView.vue b/src/views/AccountViewView.vue index 06859398..aafb7cb9 100644 --- a/src/views/AccountViewView.vue +++ b/src/views/AccountViewView.vue @@ -244,7 +244,9 @@ +

@@ -277,7 +279,9 @@
+ diff --git a/src/views/ContactsView.vue b/src/views/ContactsView.vue index 3bcfa0fb..7c0a81e0 100644 --- a/src/views/ContactsView.vue +++ b/src/views/ContactsView.vue @@ -93,6 +93,16 @@ class="inline-block align-text-bottom border border-slate-300 rounded" > {{ contact.name || "(no name)" }} +

{{ contact.did }}
@@ -209,6 +219,31 @@

This identity has no contacts.

+ +
+
+

Edit Name

+ + + + +
+
@@ -251,6 +286,8 @@ export default class ContactsView extends Vue { contacts: Array = []; contactEndorserUrl = localStorage.getItem("contactEndorserUrl") || ""; contactInput = ""; + contactEdit: Contact | null = null; + contactNewName = ""; // { "did:...": concatenated-descriptions } entry for each contact givenByMeDescriptions: Record = {}; // { "did:...": amount } entry for each contact @@ -961,6 +998,18 @@ export default class ContactsView extends Vue { } } + private async onClickCancelName() { + this.contactEdit = null; + this.contactNewName = ""; + } + + private async onClickSaveName(contact: Contact, newName: string) { + contact.name = newName; + return db.contacts + .update(contact.did, { name: newName }) + .then(() => (this.contactEdit = null)); + } + public toggleShowGiveTotals() { if (this.showGiveTotals) { this.showGiveTotals = false; @@ -985,6 +1034,26 @@ export default class ContactsView extends Vue {