diff --git a/app/components/BoardPostCard.vue b/app/components/BoardPostCard.vue index 4e32218..a79a535 100644 --- a/app/components/BoardPostCard.vue +++ b/app/components/BoardPostCard.vue @@ -88,7 +88,19 @@ defineEmits(['edit', 'delete', 'confirm-delete', 'cancel-delete']) const { slackUrl } = useBoardChannels() -const authorAvatar = computed(() => ghostieImagePath(props.post.author?.avatar)) +const capitalizeAvatar = (str) => { + if (str.toLowerCase() === 'wtf') return 'WTF' + return str + .split('-') + .map((w) => w.charAt(0).toUpperCase() + w.slice(1).toLowerCase()) + .join('-') +} + +const authorAvatar = computed(() => { + const a = props.post.author?.avatar + if (!a) return null + return `/ghosties/Ghost-${capitalizeAvatar(a)}.png` +}) const slackHandle = computed(() => props.post.author?.board?.slackHandle || '') diff --git a/app/components/SignupFlowOverlay.vue b/app/components/SignupFlowOverlay.vue index 73f8c09..10fe663 100644 --- a/app/components/SignupFlowOverlay.vue +++ b/app/components/SignupFlowOverlay.vue @@ -33,7 +33,8 @@
- {{ successMessage || `Check ${summary?.email} for a sign-in link to finish setting up your account. The link expires in 15 minutes.` }} + Check {{ summary?.email }} for a sign-in link to finish setting up + your account. The link expires in 15 minutes.
@@ -61,7 +62,6 @@ const props = defineProps({ summary: { type: Object, default: null }, errorMessage: { type: String, default: "" }, dashboardHref: { type: String, default: "/welcome" }, - successMessage: { type: String, default: "" }, }); defineEmits(["close"]); diff --git a/app/components/TopStrip.vue b/app/components/TopStrip.vue index b00915e..37a8aec 100644 --- a/app/components/TopStrip.vue +++ b/app/components/TopStrip.vue @@ -29,7 +29,7 @@