Reflect filter selections in the search query input

未关闭
#2,751 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

  • #2795 来自 @Official-Krish —— 已关闭,未合并

评估

难度
4/5
预计耗时
3-5 天
新手友好度
52/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
冷清
技术栈
typescript

调研方向

从筛选器侧边栏和查询输入框开始,然后追踪现有筛选器状态、查询文本以及已渲染的筛选器标签是如何连接的。检查支持的两种查询方言,并确定解析和生成的入口点。当选择筛选器会更新可编辑的查询文本,并且编辑任一种方言都会更新对应的筛选器选择且不丢失条件时,即表示完成。

由索引模型根据 Issue 内容生成。

描述

enhancement Frontend

Selecting a value in the filter sidebar applies it to the search, but the query input doesn't show it. Filter state and query text live in two places, so the input never reflects the full set of conditions actually being applied.

Make the two representations one: selecting a filter writes the corresponding condition into the query input, and editing the query updates the filter selections to match.

Notes:

  • Needs to work for both query dialects the input supports, which is the main source of complexity — round-tripping requires parsing query text back into filter state, not just generating it.
  • Today this is partially addressed by pills rendered below the input, which surface that filters are applied without making them editable as query text.
主要语言
TypeScript
星标
10.1k
派生
527
平均合并
1 天 20 小时
30 天内合并 PR
186

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

ClickHouse/ClickStack 的其他 Issue

查看 ClickHouse/ClickStack 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。