ui(admin): logs-viewer reads hero_proc LogLine schema (fw#10) #11
No reviewers
Labels
No labels
prio_critical
prio_low
type_bug
type_contact
type_issue
type_lead
type_question
type_story
type_task
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
lhumina_code/hero_website_framework!11
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "development_mik"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The
<hero-logs-viewer>component was readingl.contentandl.tsbut hero_proc returns{line, src, stream, timestamp_ms}so the message body and timestamp columns rendered empty under live tail. Surfaced by the hero_assistance v1.0 walkthrough today.Fix
l.linefor body (withl.contentas legacy fallback)l.timestamp_msfor timestamp (withl.tsas legacy fallback)[LEVEL]prefix in the line (Rust tracing convention: TRACE / DEBUG / INFO / WARN / WARNING / ERROR / CRITICAL / FATAL)stderrstream rows bumped to 2 (warn) as a conservative defaultVerify
Direct curl against hero_proc's
logs.filterreturns the new schema; the fixed component renders body + timestamp + level correctly. The legacy fallback paths preserve back-compat for any other consumer still emitting{content, ts, loglevel}.Closes #10. No Rust changes; static JS only.
The `<hero-logs-viewer>` component was reading `l.content` and `l.ts` but hero_proc returns `{line, src, stream, timestamp_ms}` so the message body and timestamp columns rendered empty under live tail. Fix: read `l.line` (with `l.content` as legacy fallback) and `l.timestamp_ms` (with `l.ts` as legacy fallback). Loglevel is now synthesized from the row's `[LEVEL]` prefix (the common Rust tracing shape) with a small switch on `TRACE/DEBUG/INFO/WARN/WARNING/ERROR/CRITICAL/FATAL`; falls back to 1 (info) when nothing matches, with `stderr` stream rows bumped to 2 (warn) as a conservative default. Doc-comment refreshed to match the actual schema. Surfaced by the s2-028 hero_assistance v1.0 walkthrough. Closes #10 Signed-by: mik-tf <mik-tf@noreply.invalid>