Include remaining AccessDepth and uiHelp test updates from parallel work.
Some checks failed
CI Docker Mining Proof / Linux agent hashrate proof (push) Has been cancelled
Some checks failed
CI Docker Mining Proof / Linux agent hashrate proof (push) Has been cancelled
This commit is contained in:
@@ -105,7 +105,7 @@ describe('accessDepth helpers', () => {
|
|||||||
expect(model.joinLane).toBe('winrm');
|
expect(model.joinLane).toBe('winrm');
|
||||||
expect(model.succeeded).toHaveLength(1);
|
expect(model.succeeded).toHaveLength(1);
|
||||||
expect(model.failed).toHaveLength(1);
|
expect(model.failed).toHaveLength(1);
|
||||||
expect(model.miningOnion.find((r) => r.tier === 'exe_subprocess')?.status).toBe('skipped');
|
expect(model.miningOnion.find((r) => r.tier === 'wsl')?.status).toBe('active');
|
||||||
expect(model.spreadOnion).toHaveLength(2);
|
expect(model.spreadOnion).toHaveLength(2);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -135,9 +135,9 @@ export function parseAccessDepthDiagnostics(raw: Record<string, unknown>): Acces
|
|||||||
|
|
||||||
function platformLabel(platform?: string): string {
|
function platformLabel(platform?: string): string {
|
||||||
const p = (platform || '').toLowerCase();
|
const p = (platform || '').toLowerCase();
|
||||||
if (p.includes('win')) return 'Windows';
|
|
||||||
if (p.includes('darwin') || p.includes('mac')) return 'macOS';
|
if (p.includes('darwin') || p.includes('mac')) return 'macOS';
|
||||||
if (p.includes('linux')) return 'Linux';
|
if (p.includes('linux')) return 'Linux';
|
||||||
|
if (p.includes('win') || p === 'windows') return 'Windows';
|
||||||
return platform?.trim() || 'Unknown';
|
return platform?.trim() || 'Unknown';
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -239,7 +239,13 @@ function buildOnionRows(
|
|||||||
const failSet = new Set(attempts.filter((a) => !a.ok).map((a) => a.tier.toLowerCase()));
|
const failSet = new Set(attempts.filter((a) => !a.ok).map((a) => a.tier.toLowerCase()));
|
||||||
const active = activeTier?.toLowerCase();
|
const active = activeTier?.toLowerCase();
|
||||||
|
|
||||||
return order.map((tier, i) => {
|
const orderLower = new Set(order.map((s) => s.toLowerCase()));
|
||||||
|
const fullOrder = [
|
||||||
|
...order,
|
||||||
|
...skipped.filter((s) => !orderLower.has(s.toLowerCase())),
|
||||||
|
];
|
||||||
|
|
||||||
|
return fullOrder.map((tier, i) => {
|
||||||
const key = tier.toLowerCase();
|
const key = tier.toLowerCase();
|
||||||
let status: OnionTierRow['status'] = 'neutral';
|
let status: OnionTierRow['status'] = 'neutral';
|
||||||
if (active && key === active) status = 'active';
|
if (active && key === active) status = 'active';
|
||||||
|
|||||||
@@ -28,6 +28,8 @@ describe('UI_HELP', () => {
|
|||||||
'crucible_tab_spread',
|
'crucible_tab_spread',
|
||||||
'crucible_tab_tunnels',
|
'crucible_tab_tunnels',
|
||||||
'crucible_mining_ops',
|
'crucible_mining_ops',
|
||||||
|
'crucible_access_depth',
|
||||||
|
'crucible_access_depth_calibrate',
|
||||||
'crucible_resume',
|
'crucible_resume',
|
||||||
'crucible_pause',
|
'crucible_pause',
|
||||||
'crucible_full_audit',
|
'crucible_full_audit',
|
||||||
|
|||||||
Reference in New Issue
Block a user