Repository navigation
Conversation
| const def=id&&(state.data?.workflows||[]).find(w=>w.id===id); | ||
| if(!def)return base; | ||
| const source=def.generic?'通用模板':def.projectId?(def.projectId===project.id?'本项目':'团队共享'):'内置'; | ||
| return `当前项目默认使用「${def.name||def.id}」(${source}),仅新需求适用;本项目还没有自建或复制的 LOOP。可切换到对应范围查看,或复制后修改。`; |
There was a problem hiding this comment.
def.name 直接拼进后面的 sopCatalog.innerHTML。LOOP 名称是用户能写的,这里要用 escapeHTML(def.name || def.id)。
「仅新需求适用」把 #1356 里标成待确认的规则写成了事实。issue.workflowId 为空时,defaultSOPForIssue() 仍会用项目默认 LOOP,不限新建。建议删掉这句,或改成「已单独绑定 LOOP 的需求不会跟着变」。这句是动态拼出来的,英文词典也配不上。
cocofhu
left a comment
There was a problem hiding this comment.
先不要合。和 main 冲突;默认 LOOP 名称拼进了 innerHTML,需要转义;「仅新需求适用」把还没确认的规则写成了事实。具体见上面的行内评论。
…daction Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Fixes Tencent#1356 Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
… claim Address review: the name was interpolated into innerHTML unescaped, and "仅新需求适用" stated a rule that Tencent#1356 still marks as unconfirmed. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
3d98f87 to
62e78cb
Compare
|
感谢 review,已按意见修改并 rebase 到最新 main(冲突已解决):
webtest 全量通过(388)。 |
|
@cocofhu 已按上面的评论修改并推送,麻烦有空时再看一下,谢谢。 |
Robert0622
left a comment
There was a problem hiding this comment.
Code Review & Deploy Test: PASS ✅
Reviewed changes: Empty states now distinguish "no data at all", "nothing matches search", and "nothing matches filters" for both issues and runs. LOOP empty state names the project's default LOOP with XSS-escaped output. Discussion tab explains read-only. Cursor key note adds grok_ prefix, live-test redaction list updated.
Deploy test: Service running, all endpoints accessible.
Minor notes (non-blocking):
- P3: Production diagnostics (
diagnosticKey) still doesn't covercrsr_/grok_— only the live-test helper was updated (pre-existing gap). - P3: "点击搜索框右侧 ×" relies on browser's native clear button, which Firefox does not show.
loopforge-pr-review:62e78cb8e407d35032b7aced6f701b929656b13d
问题
若干空状态 / 提示文案不准确或误导:
crsr_前缀,新密钥已是grok_。修改
grok_开头、旧crsr_仍可用;仅用于clilive构建标签下的测试日志脱敏的前缀列表补上grok_(没有运行时校验)。代码里没有找到前缀校验,[Bug]: cursor的密钥已经全部使用grok_开头了,没有crsr_的密钥了 #959 的真实原因可能另有其因,故只用 Refs。Fixes #1353
Fixes #1355
Refs #1356
Refs #1364
Refs #959
验证
go build ./internal/runtime/通过,gofmt无新增问题。go vet -tags clilive(需要前端构建产物),未做浏览器目测。🤖 Generated with Claude Code