/** * Integrations Page - MCP Integration Configuration * * Allows users to configure project integrations: * - Figma (design tokens, components) * - Jira (issue tracking) * - Confluence (documentation) */ import claudeService from '../services/claude-service.js'; import logger from '../core/logger.js'; class IntegrationsPage { constructor() { this.container = null; this.projectId = null; this.integrations = []; this.healthStatus = []; } /** * Initialize the page */ async init(container, projectId) { this.container = container; this.projectId = projectId; claudeService.setProject(projectId); await this.loadData(); this.render(); } /** * Load integrations data */ async loadData() { try { // Load global health status this.healthStatus = await claudeService.getIntegrations(); // Load project-specific integrations if (this.projectId) { this.integrations = await claudeService.getProjectIntegrations(this.projectId); } } catch (error) { logger.error('Integrations', 'Failed to load data', error); } } /** * Render the page */ render() { if (!this.container) return; this.container.innerHTML = `
Configure external service connections for Claude
Loading tools...
${config.description}
No tools available
'; } catch (error) { toolsList.innerHTML = 'Failed to load tools
'; } } } // Export singleton const integrationsPage = new IntegrationsPage(); export default integrationsPage; export { IntegrationsPage };