Repository navigation
fix: 修复发现返回导航(#34)与情报内容搜索及查看对话(#38) - #43
Merged
Merged
Conversation
- #34: 任务发现页进入漏洞报告详情后,「←返回」回到该任务的发现页 (/function/tasks/detail?id=<task>&tab=findings),而非全局发现列表。 任务自身的 FindingCaseList 与原始上报列表「详情」链接均携带 context_task。 - #38: 情报搜索除标题/上报者外,同时匹配内容(content)与来源证据(evidence)。 - #38: 修复「查看对话」点击无反应:任务详情页标签切换同步写入 URL 的 tab 参数, 使跳转 tab=sessions&session=... 时能正确切换到会话并打开对应会话。 Closes #34 Closes #38
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
摘要
一次修复两个问题:发现详情页返回丢失任务上下文(#34),以及任务情报页搜索范围过窄与「查看对话」无效(#38)。
变更
#34 发现详情「←返回」保留任务上下文
FindingCaseList与原始上报列表「详情」链接统一携带context_task。context_task计算返回地址:有则回到/function/tasks/detail?id=<task>&tab=findings,否则回到全局发现列表。#38 情报内容搜索 + 修复「查看对话」
ListIntelligence的q条件在标题/上报者之外,增加对content、evidence的ILIKE匹配(参数绑定,安全)。tab参数(并清除陈旧的session),使情报页「查看对话」链接(tab=sessions&session=...)能真正切换到会话并打开对应会话。测试
npx tsc --noEmit通过biome check无新增错误(仅已有 warning/info)go vet ./db/... ./server/...通过ARTEX_SKIP_NPM_CI=1 ./build.sh成功(前端静态导出 +go build -tags embedui)人工验证建议
Closes #34
Closes #38