fix(frontend): harden the streaming ui and extract copy and constants
Some checks are pending
ci / backend (push) Waiting to run
ci / frontend (push) Waiting to run

This commit is contained in:
Justin Visser 2026-08-10 15:42:18 +02:00
parent 036ef3cc6f
commit a3af8f45cc
36 changed files with 1662 additions and 226 deletions

View file

@ -1,4 +1,6 @@
<script setup lang="ts">
import { messages } from '../lib/messages'
defineProps<{ code: string; message: string }>()
defineEmits<{ retry: [] }>()
</script>
@ -6,7 +8,7 @@ defineEmits<{ retry: [] }>()
<template>
<div class="error" role="alert" :data-error-code="code">
<p>{{ message }}</p>
<button type="button" @click="$emit('retry')">Edit and retry</button>
<button type="button" @click="$emit('retry')">{{ messages.streamErrorRetry }}</button>
</div>
</template>