fix: CICD page blank screen and API endpoint

This commit is contained in:
vithobaa 2026-06-29 19:00:17 +05:30
parent a7ae12d297
commit 9bcae2ebf3
1 changed files with 6 additions and 6 deletions

View File

@ -4,10 +4,10 @@ import { api } from '../../api/apiClient';
const TABS = ['GitHub Actions', 'GitLab CI', 'Jenkins', 'cURL'];
const ICONS = {
'GitHub Actions': '🐙',
'GitLab CI': '🦊',
'Jenkins': '🤖',
'cURL': '',
'GitHub Actions': '[GH]',
'GitLab CI': '[GL]',
'Jenkins': '[J]',
'cURL': '[>]',
};
function CodeBlock({ code }) {
@ -255,7 +255,7 @@ export default function CicdIntegrationView() {
useEffect(() => {
api.get('/api/test-suites').then(r => setSuites(r.data || [])).catch(() => {});
api.get('/api/admin/api-keys').then(r => setApiKeys(r.data || [])).catch(() => {});
api.get('/api/auth/agent-tokens').then(r => setApiKeys(r.data || [])).catch(() => {});
}, []);
const selectedSuite = suites.find(s => String(s.id) === String(selectedSuiteId));
@ -308,7 +308,7 @@ export default function CicdIntegrationView() {
>
<option value=""> Select an API Key </option>
{apiKeys.map(k => (
<option key={k.id} value={k.id}>{k.name}</option>
<option key={k.id} value={k.id}>{k.label}</option>
))}
</select>
</div>