feat(overview): 近4小时/近24小时移入自定义弹层,近4小时支持选择图表粒度

- 主时间栏移除近4小时/近24小时,改为自定义弹层顶部的快捷范围
- 近4小时点击后弹出粒度菜单:1分钟/15分钟/30分钟/1小时
- overview API 新增 bucket_ms 参数,支持客户端指定分桶粒度
- 指定粒度时桶数上限放宽至 1440,未指定时维持原自动逻辑
This commit is contained in:
ProtectCookies committed 2026-09-03 11:45:32 +08:00
1 parent e0f9bd6780
commit 49a38ca857
11 files changed
+341 -37

No files matched your search

+116 -20
View File
@@ -423,6 +423,18 @@
}
]
},
"100fad4a0b3ab781": {
"source": "近24小时",
"kind": "text",
"placeholders": [],
"refs": [
{
"file": "features/home/overview/OverviewTimeRangeFilter.tsx",
"line": 43,
"column": 42
}
]
},
"105a9082c346f958": {
"source": "测试中…",
"kind": "text",
@@ -1010,7 +1022,7 @@
"refs": [
{
"file": "features/home/overview/OverviewTimeRangeFilter.tsx",
"line": 110,
"line": 176,
"column": 105
},
{
@@ -1614,6 +1626,18 @@
}
]
},
"4256064de039de89": {
"source": "显示粒度",
"kind": "text",
"placeholders": [],
"refs": [
{
"file": "features/home/overview/OverviewTimeRangeFilter.tsx",
"line": 185,
"column": 19
}
]
},
"42655ed8e4108ae2": {
"source": "输入(非缓存)",
"kind": "text",
@@ -1938,7 +1962,7 @@
"refs": [
{
"file": "features/home/overview/OverviewTimeRangeFilter.tsx",
"line": 86,
"line": 126,
"column": 9
},
{
@@ -1963,6 +1987,18 @@
}
]
},
"4f0f45b0312ca4ba": {
"source": "1小时",
"kind": "text",
"placeholders": [],
"refs": [
{
"file": "features/home/overview/OverviewTimeRangeFilter.tsx",
"line": 49,
"column": 37
}
]
},
"51d04bc3d286f018": {
"source": "近1自然日",
"kind": "text",
@@ -1970,7 +2006,7 @@
"refs": [
{
"file": "features/home/overview/OverviewTimeRangeFilter.tsx",
"line": 32,
"line": 36,
"column": 30
}
]
@@ -1996,7 +2032,7 @@
"refs": [
{
"file": "features/home/overview/OverviewTimeRangeFilter.tsx",
"line": 107,
"line": 173,
"column": 70
}
]
@@ -2289,6 +2325,18 @@
}
]
},
"609640f72d422b57": {
"source": "快捷时间范围",
"kind": "text",
"placeholders": [],
"refs": [
{
"file": "features/home/overview/OverviewTimeRangeFilter.tsx",
"line": 150,
"column": 56
}
]
},
"61a4c7bac12dc125": {
"source": "异常调用:{count}",
"kind": "template",
@@ -2353,7 +2401,7 @@
"refs": [
{
"file": "features/home/overview/OverviewTimeRangeFilter.tsx",
"line": 111,
"line": 177,
"column": 109
}
]
@@ -2387,7 +2435,7 @@
"refs": [
{
"file": "shared/api.ts",
"line": 495,
"line": 496,
"column": 43
}
]
@@ -2538,7 +2586,7 @@
"refs": [
{
"file": "features/home/overview/OverviewTimeRangeFilter.tsx",
"line": 106,
"line": 172,
"column": 21
}
]
@@ -2714,7 +2762,7 @@
"refs": [
{
"file": "shared/api.ts",
"line": 490,
"line": 491,
"column": 43
}
]
@@ -2956,6 +3004,18 @@
}
]
},
"859757ea792a73da": {
"source": "30分钟",
"kind": "text",
"placeholders": [],
"refs": [
{
"file": "features/home/overview/OverviewTimeRangeFilter.tsx",
"line": 48,
"column": 37
}
]
},
"864597982c308d72": {
"source": "已开启静默启动",
"kind": "text",
@@ -3425,7 +3485,7 @@
"refs": [
{
"file": "features/home/overview/OverviewTimeRangeFilter.tsx",
"line": 106,
"line": 172,
"column": 70
}
]
@@ -3506,7 +3566,7 @@
"refs": [
{
"file": "features/home/overview/OverviewTimeRangeFilter.tsx",
"line": 34,
"line": 38,
"column": 29
}
]
@@ -3933,12 +3993,12 @@
"refs": [
{
"file": "features/home/overview/OverviewTimeRangeFilter.tsx",
"line": 88,
"line": 128,
"column": 28
},
{
"file": "features/home/overview/OverviewTimeRangeFilter.tsx",
"line": 88,
"line": 128,
"column": 89
},
{
@@ -4351,7 +4411,7 @@
"refs": [
{
"file": "features/home/overview/OverviewTimeRangeFilter.tsx",
"line": 70,
"line": 110,
"column": 51
}
]
@@ -4485,7 +4545,7 @@
"refs": [
{
"file": "features/home/overview/OverviewTimeRangeFilter.tsx",
"line": 108,
"line": 174,
"column": 61
}
]
@@ -4608,7 +4668,7 @@
"refs": [
{
"file": "features/home/overview/OverviewTimeRangeFilter.tsx",
"line": 35,
"line": 39,
"column": 30
}
]
@@ -4868,7 +4928,7 @@
"refs": [
{
"file": "features/home/overview/OverviewTimeRangeFilter.tsx",
"line": 31,
"line": 35,
"column": 29
}
]
@@ -4907,6 +4967,18 @@
}
]
},
"dbaa1c565cb1f108": {
"source": "15分钟",
"kind": "text",
"placeholders": [],
"refs": [
{
"file": "features/home/overview/OverviewTimeRangeFilter.tsx",
"line": 47,
"column": 37
}
]
},
"dbd3596e4a86f3c2": {
"source": "配置模型",
"kind": "text",
@@ -5214,7 +5286,7 @@
"refs": [
{
"file": "features/home/overview/OverviewTimeRangeFilter.tsx",
"line": 33,
"line": 37,
"column": 36
}
]
@@ -5306,6 +5378,18 @@
}
]
},
"e85373502c372776": {
"source": "1分钟",
"kind": "text",
"placeholders": [],
"refs": [
{
"file": "features/home/overview/OverviewTimeRangeFilter.tsx",
"line": 46,
"column": 32
}
]
},
"e8b1268c1e3610f2": {
"source": "已存在",
"kind": "text",
@@ -5489,7 +5573,7 @@
"refs": [
{
"file": "features/home/overview/OverviewTimeRangeFilter.tsx",
"line": 107,
"line": 173,
"column": 21
}
]
@@ -5549,6 +5633,18 @@
}
]
},
"f784b165bd3fcb0e": {
"source": "近4小时",
"kind": "text",
"placeholders": [],
"refs": [
{
"file": "features/home/overview/OverviewTimeRangeFilter.tsx",
"line": 42,
"column": 35
}
]
},
"f85537d1fd2ef6f6": {
"source": "自定义概览筛选",
"kind": "text",
@@ -5556,7 +5652,7 @@
"refs": [
{
"file": "features/home/overview/OverviewTimeRangeFilter.tsx",
"line": 96,
"line": 136,
"column": 19
}
]
@@ -5768,7 +5864,7 @@
"refs": [
{
"file": "features/home/HomePage.tsx",
"line": 155,
"line": 180,
"column": 25
}
]
+8
View File
@@ -27,6 +27,7 @@
"0e41f8e3d59ec47b": "Storage management",
"0e67021ebf0a3580": "Import complete: added {imported} models and skipped {skipped} existing models",
"0ec1e85b0c3cfa65": "Call details",
"100fad4a0b3ab781": "Last 24 hours",
"105a9082c346f958": "Testing…",
"124be3f86f197802": "Token usage",
"12ae77e6202d063e": "Custom Headers",
@@ -108,6 +109,7 @@
"402495402ce333b1": "Reinitialize plugins",
"40a08e7cf320ae07": "Clear detailed records?",
"4125fc7ba333524c": "Default light",
"4256064de039de89": "Granularity",
"42655ed8e4108ae2": "Input (non-cached)",
"42a1d9e5b037c210": "Bytes",
"42aa8e01e98c0d8c": "Total duration",
@@ -131,6 +133,7 @@
"4d99c976beb8827e": "Ready",
"4e30d7c9ed2b0eee": "Not set",
"4eafa9e925b30bcd": "Custom",
"4f0f45b0312ca4ba": "1 hour",
"51d04bc3d286f018": "Last calendar day",
"51de3bcec137ab1b": "Connectivity tests succeeded for all {count} models",
"5228358a6db59fe7": "For example: now, 2026-08-23 18:00",
@@ -155,6 +158,7 @@
"5f9acfb945229062": "Are you sure you no longer want to see this ad?",
"5fd2ec5a6e9b654c": "Total: {cost}",
"6078a681a306930d": "Cache write",
"609640f72d422b57": "Quick time ranges",
"61a4c7bac12dc125": "Failed calls: {count}",
"61c7d1f758b647d5": "Call information",
"621f63a5f08384ac": "Cache read: {tokens}",
@@ -203,6 +207,7 @@
"83fcfb4c1f2c1641": "Fetch models",
"842b9f11cdd96bda": "Launch at login",
"843ac7e15a5047a7": "Confirm legacy model configuration import",
"859757ea792a73da": "30 minutes",
"864597982c308d72": "Silent start enabled",
"86de7c4ee8fa7689": "Sync models",
"8716e1344b0daddb": "Cursor official",
@@ -339,6 +344,7 @@
"da7ae985487c38e6": "Last hour",
"daede9881787abe7": "Notes",
"db340a9896306d08": "Test cancelled",
"dbaa1c565cb1f108": "15 minutes",
"dbd3596e4a86f3c2": "Configured models",
"ddde16f8839da3ce": "Total requests",
"de8184da1ef88d03": "Configured",
@@ -369,6 +375,7 @@
"e77e3d58b0dcffaa": "Duration",
"e825a2a42c22380e": "Model type",
"e828bd3a0151edc2": "The local CA must be trusted by the system",
"e85373502c372776": "1 minute",
"e8b1268c1e3610f2": "Existing",
"ea26b760e930a7ca": "Call observability",
"eb11e2df1d8ae387": "Provider URL",
@@ -388,6 +395,7 @@
"f6dc1b1641600dd0": "Importing…",
"f78265089144369a": "Plugins",
"f78413c36d36f090": "Uses the operating system language by default; unsupported languages fall back to English. Current: {language}",
"f784b165bd3fcb0e": "Last 4 hours",
"f85537d1fd2ef6f6": "Custom overview filters",
"f95ea7f4c063eea7": "Disabled",
"f9615d05d8e18595": "Clear {label} filter",
+8
View File
@@ -27,6 +27,7 @@
"0e41f8e3d59ec47b": "存储管理",
"0e67021ebf0a3580": "导入完成:新增 {imported} 个模型,跳过 {skipped} 个已存在模型",
"0ec1e85b0c3cfa65": "调用详情",
"100fad4a0b3ab781": "近24小时",
"105a9082c346f958": "测试中…",
"124be3f86f197802": "Token 消耗",
"12ae77e6202d063e": "自定义 Headers",
@@ -108,6 +109,7 @@
"402495402ce333b1": "重新初始化插件",
"40a08e7cf320ae07": "确定要清理详细记录吗?",
"4125fc7ba333524c": "默认亮色",
"4256064de039de89": "显示粒度",
"42655ed8e4108ae2": "输入(非缓存)",
"42a1d9e5b037c210": "字节数",
"42aa8e01e98c0d8c": "总耗时",
@@ -131,6 +133,7 @@
"4d99c976beb8827e": "可用",
"4e30d7c9ed2b0eee": "不设置",
"4eafa9e925b30bcd": "自定义",
"4f0f45b0312ca4ba": "1小时",
"51d04bc3d286f018": "近1自然日",
"51de3bcec137ab1b": "全部 {count} 个模型连通性测试成功",
"5228358a6db59fe7": "如:现在、2026-08-23 18:00",
@@ -155,6 +158,7 @@
"5f9acfb945229062": "你确认不想再看到此广告吗?",
"5fd2ec5a6e9b654c": "合计:{cost}",
"6078a681a306930d": "缓存写入",
"609640f72d422b57": "快捷时间范围",
"61a4c7bac12dc125": "异常调用:{count}",
"61c7d1f758b647d5": "调用信息",
"621f63a5f08384ac": "缓存读取:{tokens}",
@@ -203,6 +207,7 @@
"83fcfb4c1f2c1641": "获取模型",
"842b9f11cdd96bda": "开机启动",
"843ac7e15a5047a7": "确认导入旧版模型配置",
"859757ea792a73da": "30分钟",
"864597982c308d72": "已开启静默启动",
"86de7c4ee8fa7689": "同步模型",
"8716e1344b0daddb": "Cursor 官方",
@@ -339,6 +344,7 @@
"da7ae985487c38e6": "近1小时",
"daede9881787abe7": "备注",
"db340a9896306d08": "测试已取消",
"dbaa1c565cb1f108": "15分钟",
"dbd3596e4a86f3c2": "配置模型",
"ddde16f8839da3ce": "总请求",
"de8184da1ef88d03": "已配置",
@@ -369,6 +375,7 @@
"e77e3d58b0dcffaa": "耗时",
"e825a2a42c22380e": "模型类型",
"e828bd3a0151edc2": "需要在系统中信任本地 CA",
"e85373502c372776": "1分钟",
"e8b1268c1e3610f2": "已存在",
"ea26b760e930a7ca": "调用观测",
"eb11e2df1d8ae387": "上游地址",
@@ -388,6 +395,7 @@
"f6dc1b1641600dd0": "正在导入…",
"f78265089144369a": "插件配置",
"f78413c36d36f090": "默认跟随操作系统;不支持的系统语言使用英文。当前:{language}",
"f784b165bd3fcb0e": "近4小时",
"f85537d1fd2ef6f6": "自定义概览筛选",
"f95ea7f4c063eea7": "未启用",
"f9615d05d8e18595": "清除{label}筛选",