feat: Implement initial agent integration management system with role-based dashboards, status tracking, and activity timelines.

This commit is contained in:
jeremy bayse
2026-02-16 19:22:18 +01:00
parent af060a8847
commit e7bff2ae80
19 changed files with 533 additions and 24 deletions

View File

@@ -1,5 +1,6 @@
<script setup>
import { computed } from 'vue';
import { getStatusLabel, getModelLabel } from '@/Utils/statuses';
const props = defineProps({
activities: Array,
@@ -46,12 +47,12 @@ const getBadgeColor = (description) => {
<span class="font-medium text-gray-900 dark:text-gray-100">{{ activity.causer?.name || 'Système' }}</span>
{{ activity.description === 'created' ? ' a créé ' : ' a mis à jour ' }}
<span class="font-medium text-gray-900 dark:text-gray-100">
{{ activity.subject_type.split('\\').pop() }}
{{ getModelLabel(activity.subject_type) }}
</span>
</p>
<div v-if="activity.properties?.attributes" class="mt-2 text-xs text-gray-400 bg-gray-50 dark:bg-gray-900/50 p-2 rounded">
<div v-for="(val, key) in activity.properties.attributes" :key="key">
<span v-if="key === 'status'">Nouveau statut: <span class="font-bold text-blue-500">{{ val }}</span></span>
<span v-if="key === 'status'">Nouveau statut: <span class="font-bold text-blue-500">{{ getStatusLabel(val) }}</span></span>
</div>
</div>
</div>