diff --git a/apps/frontend/nuxt.config.ts b/apps/frontend/nuxt.config.ts index 2d925c73f3..86e5abaf78 100644 --- a/apps/frontend/nuxt.config.ts +++ b/apps/frontend/nuxt.config.ts @@ -311,7 +311,7 @@ export default defineNuxtConfig({ compatibilityDate: '2025-01-01', telemetry: false, experimental: { - asyncContext: true, + asyncContext: isProduction(), }, }) diff --git a/apps/frontend/src/components/ui/moderation/ModerationQueueCard.vue b/apps/frontend/src/components/ui/moderation/ModerationQueueCard.vue index 2c8ecbb83e..b013bbca9a 100644 --- a/apps/frontend/src/components/ui/moderation/ModerationQueueCard.vue +++ b/apps/frontend/src/components/ui/moderation/ModerationQueueCard.vue @@ -127,11 +127,9 @@ import dayjs from 'dayjs' import { computed } from 'vue' import type { ModerationProject } from '~/helpers/moderation' -import { useModerationStore } from '~/store/moderation.ts' const { addNotification } = injectNotificationManager() const formatRelativeTime = useRelativeTime() -const moderationStore = useModerationStore() const baseId = useId() @@ -139,6 +137,10 @@ const props = defineProps<{ queueEntry: ModerationProject }>() +const emit = defineEmits<{ + startFromProject: [projectId: string] +}>() + function getDaysQueued(date: Date): number { const now = new Date() const diff = now.getTime() - date.getTime() @@ -201,16 +203,6 @@ const quickActions: OverflowMenuOption[] = [ ] function openProjectForReview() { - moderationStore.setSingleProject(props.queueEntry.project.id) - navigateTo({ - name: 'type-id', - params: { - type: 'project', - id: props.queueEntry.project.slug || props.queueEntry.project.id, - }, - state: { - showChecklist: true, - }, - }) + emit('startFromProject', props.queueEntry.project.id) } diff --git a/apps/frontend/src/components/ui/moderation/checklist/ModerationChecklist.vue b/apps/frontend/src/components/ui/moderation/checklist/ModerationChecklist.vue index d3dece98c7..449dc3aa03 100644 --- a/apps/frontend/src/components/ui/moderation/checklist/ModerationChecklist.vue +++ b/apps/frontend/src/components/ui/moderation/checklist/ModerationChecklist.vue @@ -3,7 +3,7 @@

@@ -25,7 +25,7 @@ - @@ -38,298 +38,381 @@
-
-
-

- You are done moderating this project! - -

+ +
+
+ + + This project + {{ lockStatus.expired ? 'was being' : 'is currently being' }} + moderated + + + + @{{ lockStatus.lockedBy.username }} + + + Lock expires in {{ lockTimeRemaining }} +
-
-
- - - - -