feat(trace-drawer): implement resizable trace drawer and enhance UI interactions

This commit introduces a resizable trace drawer in the `doc-content` component, allowing users to adjust the width for better visibility. Key changes include:

1. Added functionality to save and load the drawer width from local storage.
2. Implemented mouse events for resizing the drawer, enhancing user interaction.
3. Updated the UI to reflect the new drawer width dynamically.
4. Enhanced the trace entry button for improved accessibility and clarity.

These changes aim to improve user experience by providing a more flexible and user-friendly interface for trace inspection.
This commit is contained in:
wizardchen
2026-05-28 13:19:41 +08:00
committed by lyingbug
parent d12273255d
commit a0547729b2
5 changed files with 433 additions and 485 deletions
+10
View File
@@ -412,6 +412,11 @@ export default {
fetchFailed: "최근 {n}회 새로고침 실패 — 데이터가 오래되었을 수 있습니다, 새로고침 버튼을 눌러 재시도하세요",
fetchFailedShort: "새로고침 실패",
viewTrace: "Trace 보기",
traceBtn: "Trace",
expandBranch: "하위 항목 펼치기",
collapseBranch: "하위 항목 접기",
rowSelectHint: "클릭하여 세부 정보 보기, 왼쪽 화살표로 하위 항목 펼치기/접기",
resizeDrawer: "패널 너비 조절",
justNow: "방금",
secondsAgo: "{n}초 전",
minutesAgo: "{n}분 전",
@@ -421,6 +426,8 @@ export default {
head: {
duration: "소요시간",
stages: "단계",
stagesDone: "완료된 단계",
stagesProgress: "현재 단계",
stage: "단계",
status: "상태",
attempt: "시도",
@@ -446,6 +453,9 @@ export default {
input: "입력",
output: "출력",
metadata: "메타데이터",
traceMetadata: "Trace 메타데이터",
metadataHint: "Langfuse trace ID 등 관측용 보조 필드입니다. 단계별 입출력은 입력/출력 탭에서 확인하세요.",
metadataEmpty: "이 span에는 메타데이터가 없습니다. 단계 입출력은 입력/출력 탭을, Langfuse trace 필드는 개요 탭을 확인하세요.",
error: "오류",
empty: "데이터 없음",
inProgress: "진행 중",