Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions messages/en/dashboard.json
Original file line number Diff line number Diff line change
Expand Up @@ -393,8 +393,8 @@
"actions": {
"back": "Back",
"view": "View",
"copyMessages": "Copy Messages",
"downloadMessages": "Download Messages",
"copyMessages": "Copy Request (Headers + Body)",
"downloadMessages": "Download Request (Headers + Body)",
"copied": "Copied",
"copyResponse": "Copy Response",
"terminate": "Terminate",
Expand Down Expand Up @@ -436,7 +436,14 @@
"nextPage": "Next",
"pageInfo": "Page {page} / {total}",
"sseEvent": "Event",
"sseData": "Data"
"sseData": "Data",
"hardLimit": {
"title": "Content too large",
"size": "Size: {sizeMB} MB ({sizeBytes} bytes)",
"maximum": "Maximum allowed: {maxSizeMB} MB or {maxLines} lines",
"hint": "Please download the file to view the full content.",
"download": "Download"
}
},
"status": {
"loading": "Loading...",
Expand Down
13 changes: 10 additions & 3 deletions messages/ja/dashboard.json
Original file line number Diff line number Diff line change
Expand Up @@ -392,8 +392,8 @@
"actions": {
"back": "戻る",
"view": "表示",
"copyMessages": "メッセージをコピー",
"downloadMessages": "メッセージをダウンロード",
"copyMessages": "リクエスト(ヘッダーとボディ)をコピー",
"downloadMessages": "リクエスト(ヘッダーとボディ)をダウンロード",
"copied": "コピーしました",
"copyResponse": "レスポンスボディをコピー",
"terminate": "強制終了",
Expand Down Expand Up @@ -435,7 +435,14 @@
"nextPage": "次へ",
"pageInfo": "{page} / {total} ページ",
"sseEvent": "イベント",
"sseData": "データ"
"sseData": "データ",
"hardLimit": {
"title": "コンテンツが大きすぎます",
"size": "サイズ: {sizeMB} MB ({sizeBytes} bytes)",
"maximum": "上限: {maxSizeMB} MB または {maxLines} 行",
"hint": "全内容を表示するにはダウンロードしてください。",
"download": "ダウンロード"
}
},
"status": {
"loading": "読み込み中...",
Expand Down
13 changes: 10 additions & 3 deletions messages/ru/dashboard.json
Original file line number Diff line number Diff line change
Expand Up @@ -392,8 +392,8 @@
"actions": {
"back": "Назад",
"view": "Просмотр",
"copyMessages": "Копировать сообщения",
"downloadMessages": "Скачать сообщения",
"copyMessages": "Копировать запрос (заголовки и тело)",
"downloadMessages": "Скачать запрос (заголовки и тело)",
"copied": "Скопировано",
"copyResponse": "Копировать тело ответа",
"terminate": "Прервать",
Expand Down Expand Up @@ -435,7 +435,14 @@
"nextPage": "Вперёд",
"pageInfo": "Страница {page} / {total}",
"sseEvent": "Событие",
"sseData": "Данные"
"sseData": "Данные",
"hardLimit": {
"title": "Содержимое слишком большое",
"size": "Размер: {sizeMB} MB ({sizeBytes} bytes)",
"maximum": "Максимум: {maxSizeMB} MB или {maxLines} строк",
"hint": "Пожалуйста, скачайте файл, чтобы посмотреть весь контент.",
"download": "Скачать"
}
},
"status": {
"loading": "Загрузка...",
Expand Down
13 changes: 10 additions & 3 deletions messages/zh-CN/dashboard.json
Original file line number Diff line number Diff line change
Expand Up @@ -393,8 +393,8 @@
"actions": {
"back": "返回",
"view": "查看",
"copyMessages": "复制 Messages",
"downloadMessages": "下载 Messages",
"copyMessages": "复制请求头和请求体",
"downloadMessages": "下载请求头和请求体",
"copied": "已复制",
"copyResponse": "复制响应体",
"terminate": "终止",
Expand Down Expand Up @@ -436,7 +436,14 @@
"nextPage": "下一页",
"pageInfo": "第 {page} / {total} 页",
"sseEvent": "事件",
"sseData": "数据"
"sseData": "数据",
"hardLimit": {
"title": "内容过大",
"size": "大小:{sizeMB} MB({sizeBytes} 字节)",
"maximum": "上限:{maxSizeMB} MB 或 {maxLines} 行",
"hint": "请下载文件以查看完整内容。",
"download": "下载"
}
},
"status": {
"loading": "加载中...",
Expand Down
13 changes: 10 additions & 3 deletions messages/zh-TW/dashboard.json
Original file line number Diff line number Diff line change
Expand Up @@ -393,8 +393,8 @@
"actions": {
"back": "返回",
"view": "檢視",
"copyMessages": "複製 Messages",
"downloadMessages": "下載 Messages",
"copyMessages": "複製請求頭與請求體",
"downloadMessages": "下載請求頭與請求體",
"copied": "已複製",
"copyResponse": "複製回覆主體",
"terminate": "終止",
Expand Down Expand Up @@ -436,7 +436,14 @@
"nextPage": "下一頁",
"pageInfo": "第 {page} / {total} 頁",
"sseEvent": "事件",
"sseData": "資料"
"sseData": "資料",
"hardLimit": {
"title": "內容過大",
"size": "大小:{sizeMB} MB({sizeBytes} 位元組)",
"maximum": "上限:{maxSizeMB} MB 或 {maxLines} 行",
"hint": "請下載檔案以查看完整內容。",
"download": "下載"
}
},
"status": {
"loading": "載入中...",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ import { isSSEText } from "@/lib/utils/sse";

export type SessionMessages = Record<string, unknown> | Record<string, unknown>[];

const SESSION_DETAILS_MAX_CONTENT_BYTES = 5_000_000;
const SESSION_DETAILS_MAX_LINES = 30_000;

function formatHeaders(
headers: Record<string, string> | null,
preambleLines?: string[]
Expand Down Expand Up @@ -135,6 +138,8 @@ export function SessionMessagesDetailsTabs({
content={formattedRequestHeaders}
language="text"
fileName="request.headers"
maxContentBytes={SESSION_DETAILS_MAX_CONTENT_BYTES}
maxLines={SESSION_DETAILS_MAX_LINES}
maxHeight="600px"
defaultExpanded
expandedMaxHeight={codeExpandedMaxHeight}
Expand All @@ -150,6 +155,8 @@ export function SessionMessagesDetailsTabs({
content={requestBodyContent}
language="json"
fileName="request.json"
maxContentBytes={SESSION_DETAILS_MAX_CONTENT_BYTES}
maxLines={SESSION_DETAILS_MAX_LINES}
maxHeight="600px"
defaultExpanded
expandedMaxHeight={codeExpandedMaxHeight}
Expand All @@ -165,6 +172,8 @@ export function SessionMessagesDetailsTabs({
content={requestMessagesContent}
language="json"
fileName="request.messages.json"
maxContentBytes={SESSION_DETAILS_MAX_CONTENT_BYTES}
maxLines={SESSION_DETAILS_MAX_LINES}
maxHeight="600px"
defaultExpanded
expandedMaxHeight={codeExpandedMaxHeight}
Expand All @@ -180,6 +189,8 @@ export function SessionMessagesDetailsTabs({
content={formattedResponseHeaders}
language="text"
fileName="response.headers"
maxContentBytes={SESSION_DETAILS_MAX_CONTENT_BYTES}
maxLines={SESSION_DETAILS_MAX_LINES}
maxHeight="600px"
defaultExpanded
expandedMaxHeight={codeExpandedMaxHeight}
Expand All @@ -195,6 +206,8 @@ export function SessionMessagesDetailsTabs({
content={response}
language={responseLanguage}
fileName={responseLanguage === "sse" ? "response.sse" : "response.json"}
maxContentBytes={SESSION_DETAILS_MAX_CONTENT_BYTES}
maxLines={SESSION_DETAILS_MAX_LINES}
maxHeight="600px"
defaultExpanded
expandedMaxHeight={codeExpandedMaxHeight}
Expand Down
Loading
Loading