MCPcopy Create free account
hub / github.com/error311/FileRise / getCapabilityTitle

Function getCapabilityTitle

public/js/adminPanel.js:1936–1945  ·  view source on GitHub ↗
(key, testState, state)

Source from the content-addressed store, hash-verified

1934 };
1935
1936 const getCapabilityTitle = (key, testState, state) => {
1937 const label = capabilityLabelMap[key] || key;
1938 const checks = Array.isArray(testState?.checks) ? testState.checks : [];
1939 const found = checks.find((check) => check.key === key);
1940 const detail = found && found.message ? `: ${found.message}` : '';
1941 if (state === 'ok') return `${label}: OK${detail}`;
1942 if (state === 'fail') return `${label}: Failed${detail}`;
1943 if (state === 'skipped') return `${label}: Skipped${detail}`;
1944 return `${label}: Not tested`;
1945 };
1946
1947 const renderCapabilityBadges = (testState) => {
1948 if (!testState || testState.state === 'idle' || testState.state === 'testing') {

Callers 1

renderCapabilityBadgesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected