From ade6ccfd3ba48c62247600f291a330756fcbe220 Mon Sep 17 00:00:00 2001 From: JT Smith Date: Tue, 14 Jan 2025 12:49:36 -0600 Subject: [PATCH] User's describe() now exposes the link for the avatar in links.avatarImage.href instead of meta.avatarUrl. This is a breaking change. --- app/layouts/default.vue | 2 +- app/pages/user/admin/[id].vue | 2 +- app/pages/user/settings/index.vue | 2 +- ving/docs/change-log.md | 1 + ving/record/records/User.mjs | 1 - 5 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/layouts/default.vue b/app/layouts/default.vue index 8be3f4da..2e3bcb9e 100644 --- a/app/layouts/default.vue +++ b/app/layouts/default.vue @@ -29,7 +29,7 @@ - + {{ currentUser.meta?.displayName }} diff --git a/app/pages/user/admin/[id].vue b/app/pages/user/admin/[id].vue index 0d4e6644..dc5fdade 100644 --- a/app/pages/user/admin/[id].vue +++ b/app/pages/user/admin/[id].vue @@ -43,7 +43,7 @@
Profile Picture
- +
diff --git a/app/pages/user/settings/index.vue b/app/pages/user/settings/index.vue index b718b0f6..5b07157a 100644 --- a/app/pages/user/settings/index.vue +++ b/app/pages/user/settings/index.vue @@ -22,7 +22,7 @@
- user avatar + user avatar
diff --git a/ving/docs/change-log.md b/ving/docs/change-log.md index c144786a..f9160e63 100644 --- a/ving/docs/change-log.md +++ b/ving/docs/change-log.md @@ -9,6 +9,7 @@ outline: deep * Added VingRecord.describeLinks() to generate links for the UI rather than having to manually code them in a describe() override. They are automatically generated for all VingRecords via the CLI, and then pages that are generated also use the exposed links. #179 * NOTE: You'll need to add a describeLinks() override to classes generated before now. * NOTE: S3File's describe() now exposes the links for the file and thumbnail in links.file.href and links.thumbnail.href respectively instead of meta.fileUrl and meta.thumbnailUrl. This is a breaking change. + * NOTE: User's describe() now exposes the link for the avatar in links.avatarImage.href instead of meta.avatarUrl. This is a breaking change. ### 2025-01-12 * Removed pulumi from the project. diff --git a/ving/record/records/User.mjs b/ving/record/records/User.mjs index 4ff0dcca..f407f75c 100644 --- a/ving/record/records/User.mjs +++ b/ving/record/records/User.mjs @@ -132,7 +132,6 @@ export class UserRecord extends RoleMixin(VingRecord) { const out = await super.describe(params); if (params?.include?.meta && out.meta) { out.meta.displayName = this.displayName(); - out.meta.avatarUrl = await this.avatarUrl(); } return out; }