preview: remove developer test-realm shortcuts before the first public preview

The Modules page had a 'Register test-realm-v03' button and the app registered a hardcoded local
folder into an empty server list at startup. Both pointed at a developer's machine. The startup
registration now happens only when COA_TEST_REALM_DIR is set. test_detect_toolchain skips when the
local spike realm is absent (CI runners).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
ДмитрийandClaude Opus 5.5 committed 2026-11-06 18:48:00 +05:00
1 parent b65b632c63
commit 6723a7eda1
4 files changed
+9 -69

No files matched your search

-1
View File
@@ -859,7 +859,6 @@ export const api = {
invoke<{ ready: boolean; restart_required: boolean; message: string; toolchain: ToolchainStatus }>("preview_install_msvc", { realmId: realmId ?? null }),
previewToolchainStatus: (realmId?: string) =>
invoke<ToolchainStatus>("preview_toolchain_status", { realmId: realmId ?? null }),
previewRegisterTestRealm: (path?: string) => invoke<ServerSummary>("preview_register_test_realm", { path: path ?? null }),
previewBuildModule: (realmId: string, sourceUrlOrPath: string) =>
invoke<BuildResult>("preview_build_module", { realmId, sourceUrlOrPath }),
previewInstallModule: (realmId: string, moduleId: string, version: string, applySql: boolean) =>
-31
View File
@@ -10,7 +10,6 @@ import {
Download,
ExternalLink,
Flame,
FolderPlus,
Gavel,
GitFork,
Hammer,
@@ -791,25 +790,6 @@ export function ModulesPage({
}
}
async function registerTestRealm() {
setActionInProgress("register-realm");
setError(null);
try {
await api.previewRegisterTestRealm();
setNotification(
locale === "ru"
? "Экспериментальный тестовый реалм server-v03 успешно зарегистрирован!"
: "Experimental server-v03 test realm registered successfully!"
);
onChanged?.();
await load();
} catch (e) {
setError(asUiError(e));
} finally {
setActionInProgress(null);
}
}
async function exportDiagnostics() {
setActionInProgress("export-diag");
try {
@@ -1201,17 +1181,6 @@ export function ModulesPage({
<Download className="mr-1.5 h-3.5 w-3.5" />
{locale === "ru" ? "Экспорт отчёта" : "Export Diagnostics"}
</Button>
<Button
size="sm"
variant="ghost"
onClick={registerTestRealm}
disabled={actionInProgress === "register-realm"}
className="text-xs text-gold hover:text-gold"
>
<FolderPlus className="mr-1.5 h-3.5 w-3.5" />
{locale === "ru" ? "Подключить test-realm-v03" : "Register test-realm-v03"}
</Button>
</div>
</div>