From 556b9e5cfee320bae388e00c01d650035cd3065d Mon Sep 17 00:00:00 2001 From: Padreug Date: Thu, 21 May 2026 16:53:42 +0200 Subject: [PATCH] feat(activities): ownership + status badges on cards & detail MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ActivityCard now renders a "Yours" badge (top-right corner of the image) when activity.isMine, and a "Pending review" / "Rejected" badge (bottom-left) when activity.lnbitsStatus is non-approved. The creator can spot their own posts at a glance on the main feed — particularly important for pending drafts that don't exist on Nostr yet. ActivityDetailPage echoes both badges next to the category row so users landing on the detail link of their own draft have the same signal. Co-Authored-By: Claude Opus 4.7 (1M context) --- .../activities/components/ActivityCard.vue | 24 ++++++++++++++++++- .../activities/views/ActivityDetailPage.vue | 14 +++++++++++ 2 files changed, 37 insertions(+), 1 deletion(-) diff --git a/src/modules/activities/components/ActivityCard.vue b/src/modules/activities/components/ActivityCard.vue index 71054fb..d021b10 100644 --- a/src/modules/activities/components/ActivityCard.vue +++ b/src/modules/activities/components/ActivityCard.vue @@ -4,7 +4,7 @@ import { useI18n } from 'vue-i18n' import { format } from 'date-fns' import { Card, CardContent } from '@/components/ui/card' import { Badge } from '@/components/ui/badge' -import { MapPin, Calendar, Ticket } from 'lucide-vue-next' +import { MapPin, Calendar, Ticket, User } from 'lucide-vue-next' import BookmarkButton from './BookmarkButton.vue' import { useDateLocale } from '../composables/useDateLocale' import type { Activity } from '../types/activity' @@ -87,6 +87,17 @@ const placeholderBg = computed(() => { {{ categoryLabel }} + + + + Yours + + { {{ priceDisplay }} + + + {{ activity.lnbitsStatus === 'rejected' ? 'Rejected' : 'Pending review' }} + diff --git a/src/modules/activities/views/ActivityDetailPage.vue b/src/modules/activities/views/ActivityDetailPage.vue index 9c509b7..1929ca2 100644 --- a/src/modules/activities/views/ActivityDetailPage.vue +++ b/src/modules/activities/views/ActivityDetailPage.vue @@ -156,6 +156,20 @@ function goBack() { {{ categoryLabel }} + + {{ activity.lnbitsStatus === 'rejected' ? 'Rejected' : 'Pending review' }} + + + Yours +
{{ tag }}