From 3b5983fa7c67a93ed7261e3362e60be5cb97ee3e Mon Sep 17 00:00:00 2001 From: Trent Larson Date: Sun, 6 Oct 2024 20:01:07 -0600 Subject: [PATCH] finish the loading of an invite RegisterAction when clicking on a link --- .env.production | 1 + CHANGELOG.md | 2 + README.md | 2 +- src/components/ContactNameDialog.vue | 83 ++++++++++++++++++++ src/components/UserNameDialog.vue | 6 +- src/constants/app.ts | 3 + src/libs/crypto/vc/index.ts | 2 +- src/libs/endorserServer.ts | 30 +++++--- src/libs/util.ts | 2 +- src/views/AccountViewView.vue | 5 +- src/views/ContactQRScanShowView.vue | 4 +- src/views/ContactsView.vue | 110 +++++++++++++++++++++++---- src/views/InviteOneView.vue | 37 +++++++-- src/views/NewEditProjectView.vue | 4 +- 14 files changed, 247 insertions(+), 44 deletions(-) create mode 100644 src/components/ContactNameDialog.vue diff --git a/.env.production b/.env.production index af0279042..e6cf07eba 100644 --- a/.env.production +++ b/.env.production @@ -1,4 +1,5 @@ # Only the variables that start with VITE_ are seen in the application import.meta.env in Vue. +VITE_APP_SERVER=https://timesafari.app VITE_BVC_MEETUPS_PROJECT_CLAIM_ID=https://endorser.ch/entity/01GXYPFF7FA03NXKPYY142PY4H VITE_DEFAULT_ENDORSER_API_SERVER=https://api.endorser.ch VITE_DEFAULT_IMAGE_API_SERVER=https://image-api.timesafari.app diff --git a/CHANGELOG.md b/CHANGELOG.md index e4a923d3d..240b68e7c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [0.3.29-beta] +### Added +- Invite for a contact to join immediately ### Changed - Send signed data to nostr endpoints to verify public key ownership. ### Changed in DB or environment diff --git a/README.md b/README.md index 8c34380f4..2e48f082e 100644 --- a/README.md +++ b/README.md @@ -59,7 +59,7 @@ npm run test-all ``` # (Let's replace this with a .env.development or .env.staging file.) # The test BVC_MEETUPS_PROJECT_CLAIM_ID does not resolve as a URL because it's only in the test DB and the prod redirect won't redirect there. -TIME_SAFARI_APP_TITLE="TimeSafari_Test" VITE_BVC_MEETUPS_PROJECT_CLAIM_ID=https://endorser.ch/entity/01HWE8FWHQ1YGP7GFZYYPS272F VITE_DEFAULT_ENDORSER_API_SERVER=https://test-api.endorser.ch VITE_DEFAULT_IMAGE_API_SERVER=https://test-image-api.timesafari.app VITE_DEFAULT_PARTNER_API_SERVER=https://test-partner-api.endorser.ch VITE_PASSKEYS_ENABLED=true npm run build +TIME_SAFARI_APP_TITLE="TimeSafari_Test" VITE_APP_SERVER=https://test.timesafari.app VITE_BVC_MEETUPS_PROJECT_CLAIM_ID=https://endorser.ch/entity/01HWE8FWHQ1YGP7GFZYYPS272F VITE_DEFAULT_ENDORSER_API_SERVER=https://test-api.endorser.ch VITE_DEFAULT_IMAGE_API_SERVER=https://test-image-api.timesafari.app VITE_DEFAULT_PARTNER_API_SERVER=https://test-partner-api.endorser.ch VITE_PASSKEYS_ENABLED=true npm run build ``` * Production diff --git a/src/components/ContactNameDialog.vue b/src/components/ContactNameDialog.vue new file mode 100644 index 000000000..55efa58e0 --- /dev/null +++ b/src/components/ContactNameDialog.vue @@ -0,0 +1,83 @@ + + + + + + diff --git a/src/components/UserNameDialog.vue b/src/components/UserNameDialog.vue index 50747860c..47d9c2f52 100644 --- a/src/components/UserNameDialog.vue +++ b/src/components/UserNameDialog.vue @@ -1,10 +1,11 @@ +