From 932a2a46e1bf523ea121b4e9256040f686200cb8 Mon Sep 17 00:00:00 2001 From: yaojp123 <15989103230@163.com> Date: Wed, 19 Feb 2025 22:09:34 +0800 Subject: [PATCH] chore: adjust discover (#151) * fix: add time range to suggestions's request * fix: adjust DatePicker's display * chore: hide search info automatically in discover * chore: adjust discover's histogram * chore: update release notes --------- Co-authored-by: yaojiping Co-authored-by: Hardy --- docs/content.en/docs/release-notes/_index.md | 2 + docs/content.zh/docs/release-notes/_index.md | 3 +- web/src/common/src/DatePicker/index.jsx | 2 +- web/src/common/src/DatePicker/index.less | 4 +- .../data/public/ui/filter_bar/filter_bar.tsx | 3 ++ .../ui/filter_bar/filter_editor/index.tsx | 6 +++ .../filter_editor/phrase_suggestor.tsx | 15 ++++++- .../filter_editor/phrase_value_input.tsx | 3 +- .../ui/query_string_input/_query_bar.scss | 2 +- .../query_string_input/query_bar_top_row.tsx | 2 +- .../data/public/ui/search_bar/search_bar.tsx | 3 ++ web/src/pages/DataManagement/Discover.jsx | 6 ++- .../Insight/Histogram/index.jsx | 29 ++++++++++++++ .../Insight/Histogram/index.less | 9 +++++ .../Insight/InsightBar/index.tsx | 6 ++- .../Insight/SearchInfo/Info.tsx | 6 +-- .../Insight/SearchInfo/index.tsx | 40 ++++++++++++++++--- 17 files changed, 121 insertions(+), 20 deletions(-) create mode 100644 web/src/pages/DataManagement/Insight/Histogram/index.jsx create mode 100644 web/src/pages/DataManagement/Insight/Histogram/index.less diff --git a/docs/content.en/docs/release-notes/_index.md b/docs/content.en/docs/release-notes/_index.md index 009a31cf..439d9ed8 100644 --- a/docs/content.en/docs/release-notes/_index.md +++ b/docs/content.en/docs/release-notes/_index.md @@ -18,9 +18,11 @@ Information about release notes of INFINI Console is provided here. ### Bug fix - Fixed the error when querying empty metric data (#144) - Fixed empty host when setup step finishes (#147) +- Fixed the error of obtaining suggestions of field's value in discover ### Improvements - Update agent config with cluster name (#148) +- Optimize UI of histogram and datepicker in discover (#151) - Support viewing logs for cluster, node, index health change events (#150) ## 1.28.2 (2025-02-15) diff --git a/docs/content.zh/docs/release-notes/_index.md b/docs/content.zh/docs/release-notes/_index.md index 6989451f..d1cf4fab 100644 --- a/docs/content.zh/docs/release-notes/_index.md +++ b/docs/content.zh/docs/release-notes/_index.md @@ -18,12 +18,13 @@ title: "版本历史" ### Bug fix - 修复指标数据为空时的查询错误 (#144) - 修复初始化结束步骤中主机显示为错误的问题 (#147) +- 修复数据探索中获取字段值建议的错误 ### Improvements - 优化下发给 Agent 的配置,增加集群名称 (#148) +- 优化柱状图和时间选择器的 UI (#151) - 集群,节点,索引健康状态变更支持查看日志 (#150) - ## 1.28.2 (2025-02-15) ### Features diff --git a/web/src/common/src/DatePicker/index.jsx b/web/src/common/src/DatePicker/index.jsx index 2e57d362..b4292d08 100644 --- a/web/src/common/src/DatePicker/index.jsx +++ b/web/src/common/src/DatePicker/index.jsx @@ -215,7 +215,7 @@ const DatePicker = (props) => { isMinimum ? styles.minimum : "" } ${className}`} > - + {!isMinimum && (