feat: enhance chat message handling; add createdAt timestamp to messages and implement dynamic component rendering for various chat types

This commit is contained in:
2025-09-04 16:22:26 +02:00
parent 8d7ff6f3a2
commit c665f5ea3d
7 changed files with 128 additions and 88 deletions

View File

@@ -0,0 +1,26 @@
<script lang="ts" setup>
import { ChatType } from '~~/types'
const props = defineProps<{
type: ChatType
}>()
const category = computed(() => {
switch (props.type) {
case ChatType.HARDWARE:
return 'hardware'
case ChatType.SOFTWARE:
return 'software'
case ChatType.HOMELAB:
return 'homelab'
case ChatType.IDE:
return 'ide'
default:
return 'unknown'
}
})
</script>
<template>
<ToolUses :category="category" />
</template>