class TestCaseCard extends HTMLElement { connectedCallback() { const type = this.getAttribute('type') || 'Test Case'; const count = this.getAttribute('count') || '0'; const icon = this.getAttribute('icon') || 'file-text'; const color = this.getAttribute('color') || 'bg-gray-500'; this.attachShadow({ mode: 'open' }); this.shadowRoot.innerHTML = `

${type}

${count}
`; // Replace feather icons after component is rendered setTimeout(() => { if (window.feather) { window.feather.replace({ class: 'feather-inline' }); } }, 0); } } customElements.define('test-case-card', TestCaseCard);