SmartCoder

Results comments of SmartCoder

@AndyClausen Thanks for your review. Let me fix it now.

> Tried it out, and there's a minor issue: if the torrent has no seeders, you will be unable to download anything else unless you restart the client. I think...

> I'm not familiar with the codebase, but from a UX perspective I'd say part of the download process. But I would also guess that this would be the most...

@ruibaby 我想试一下。Please assign the issue to me. Thanks

@ruibaby Please review my PR: https://github.com/halo-dev/halo/pull/8285 Looking forward to your review. Thanks

@ruibaby 感谢 Review 和建议,我也认同仅靠域名白名单并不是最理想的长期方案。 确实如你所说,Attachment.status.permalink 目前已经建立了索引(SchemeInitializer 里有 status.permalink 的索引定义),因此更好的体验流程应该是: 1. 粘贴时,在弹出“检测到具有外部链接…”提示之前,先尝试根据粘贴的 URL 去 附件库里查询是否已经存在对应的 Attachment,例如通过 fieldSelector 按 status.permalink 精确匹配。 - 当前 API/客户端已经支持 fieldSelector(生成的 client 里 listAttachment(... fieldSelector ...) 可用),可以走类似:fieldSelector=status.permalink= 的查询。...

感谢反馈,我同意。 - 在粘贴时弹出 modal 会比较打断编辑流程。 - 我可以先根据粘贴的 URL 用 Attachment.status.permalink(已建索引)去查询附件库;如果已存在对应附件,就不再提示。 - 对于真正的外部链接,可以把 modal 改成非阻塞的提示(toast/页面内提示 + 操作按钮),让用户可以继续输入。 不过,能告诉我怎么看@halo-dev/sig-halo吗?

> > [@ruibaby](https://github.com/ruibaby) 我提的方案怎么样?我能继续吗? > > 可以 谢谢

@ruibaby 请您过目我的更新。:https://github.com/halo-dev/halo/pull/8285