Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/quant_forge/apps/web/html.py
Original file line number Diff line number Diff line change
Expand Up @@ -1218,7 +1218,7 @@ def _index_html(
<button class="lab-tab" role="tab" id="lab-tab-factor" aria-controls="lab-panel-factor" aria-selected="true">LLM 因子工作台 <span class="lab-tab-dot" hidden></span></button>
<button class="lab-tab" role="tab" id="lab-tab-history" aria-controls="lab-panel-history" aria-selected="false" tabindex="-1">研究历史 <span class="lab-tab-dot" hidden></span></button>
<button class="lab-tab" role="tab" id="lab-tab-data" aria-controls="lab-panel-data" aria-selected="false" tabindex="-1">数据 <span class="lab-tab-dot" hidden></span></button>
<button class="lab-tab" role="tab" id="lab-tab-registry" aria-controls="lab-panel-registry" aria-selected="false" tabindex="-1">注册表 <span class="lab-tab-dot" hidden></span></button>
<button class="lab-tab" role="tab" id="lab-tab-registry" aria-controls="lab-panel-registry" aria-selected="false" tabindex="-1">已注册因子 <span class="lab-tab-dot" hidden></span></button>
<button class="lab-tab" role="tab" id="lab-tab-docs" aria-controls="lab-panel-docs" aria-selected="false" tabindex="-1">文档 <span class="lab-tab-dot" hidden></span></button>
<button class="lab-tab" role="tab" id="lab-tab-extensions" aria-controls="lab-panel-extensions" aria-selected="false" tabindex="-1">扩展 <span class="lab-tab-dot" hidden></span></button>
<button class="lab-tab" role="tab" id="lab-tab-memory" aria-controls="lab-panel-memory" aria-selected="false" tabindex="-1">记忆治理 <span class="lab-tab-dot" hidden></span></button>
Expand Down Expand Up @@ -1322,7 +1322,7 @@ def _index_html(
<div id="synth-factors">
<div class="panel empty-state">
<h3>等待加载</h3>
<p class="meta">打开本模块后,注册表因子目录会加载到这里。</p>
<p class="meta">打开本模块后,已注册因子目录会加载到这里。</p>
</div>
</div>
<label>合成方法与标准化</label>
Expand Down Expand Up @@ -1387,7 +1387,7 @@ def _index_html(
</section>
<section class="lab-tabpanel" role="tabpanel" id="lab-panel-registry" aria-labelledby="lab-tab-registry" tabindex="0" hidden>
<div class="section-title">
<h2>注册表</h2>
<h2>已注册因子</h2>
<p>因子定义与证据链</p>
</div>
<div id="registry-result">
Expand Down
2 changes: 1 addition & 1 deletion src/quant_forge/apps/web/static/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,7 @@ function revealReportFollowups(hasFactor) {
// refused with a visible reason and `validatedFactorId` stays null.
const PUBLISH_UNAVAILABLE_REASONS = {
conflict: '因子未发布:规范因子在本次运行期间被并发修改(发布冲突)。RD 优化 / 稳健性回测暂不可用;可重新运行本因子。',
declined_promoted: '因子未覆盖:同名规范因子已被人工提升(promoted)。RD 优化 / 稳健性回测请从「注册表」中的该因子发起。'
declined_promoted: '因子未覆盖:同名规范因子已被人工提升(promoted)。RD 优化 / 稳健性回测请从「已注册因子」中的该因子发起。'
};
function applyPublishedFollowups(pipeline) {
const publishedId = pipeline && pipeline.published_factor_id;
Expand Down
2 changes: 1 addition & 1 deletion src/quant_forge/apps/web/static/views/registry.js
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ export async function refreshRegistryPanel() {
}
return true;
} catch (error) {
registryResultEl.innerHTML = `<div class="panel"><h3>注册表</h3><p class="meta err">${esc(error.message)}</p></div>`;
registryResultEl.innerHTML = `<div class="panel"><h3>已注册因子</h3><p class="meta err">${esc(error.message)}</p></div>`;
return false;
}
}
Expand Down
2 changes: 1 addition & 1 deletion tests/test_web_data_registry_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

String-contract pins over the served page and static modules:

- the served page hosts the 数据 / 注册表 tabs and panels (appended after the
- the served page hosts the 数据 / 已注册因子 tabs and panels (appended after the
CP6-2 tabs so existing indices stay stable) with server-rendered empty
states, and the CP6-3 CSS additions reference theme tokens only (zero new
color literals);
Expand Down
2 changes: 1 addition & 1 deletion tests/test_web_static_frontend.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ def test_index_page_keeps_all_panel_sections_and_controls(web_app) -> None:
'id="data-result"',
'id="registry-result"',
'数据控制台',
'注册表',
'已注册因子',
'等待加载',
):
assert marker in html, marker
Expand Down
Loading