SELECTOR_CORRECTIONS.mdā¢3.03 kB
# ā
Selector Corrections - All Components Updated
## š **Issue Found**
The MCP database had **outdated/incorrect selectors** that didn't match the actual component implementations in the NTV Scaffolding repository.
**Example Found:**
- MCP had: `lib-card`
- Actual component: `ntv-card`
---
## š **All Corrections Made (13 Components)**
| Component | Old Selector | ā
New Selector | Status |
|-----------|--------------|-----------------|--------|
| Button | ntv-button | **ntv-button** | ā
Correct |
| Input | **lib-input** | **ntv-input** | ⨠FIXED |
| Card | **lib-card** | **ntv-card** | ⨠FIXED |
| Autocomplete | **lib-autocomplete** | **ntv-autocomplete** | ⨠FIXED |
| Accordion | **lib-accordion** | **ntv-accordion** | ⨠FIXED |
| Stepper | **lib-stepper** | **ntv-stepper** | ⨠FIXED |
| Popover | **lib-popover** | **ntv-popover** | ⨠FIXED |
| ThumbnailGallery | **lib-thumbnail-gallery** | **ntv-thumbnail-gallery** | ⨠FIXED |
| Modal | **lib-modal** | **ntv-modal** | ⨠FIXED |
| Template | **lib-template** | **ntv-template** | ⨠FIXED |
| Table | **lib-table** | **ntv-table** | ⨠FIXED |
| Offcanvas | **lib-offcanvas** | **ntv-offcanvas** | ⨠FIXED |
| ThumbnailItem | **lib-thumbnail-item** | **ntv-thumbnail-item** | ⨠FIXED |
---
## š **Summary**
- **Total Components**: 13
- **Incorrect Selectors**: 12 (92%)
- **Corrected**: 12 ā
- **Already Correct**: 1 (Button)
---
## šÆ **What This Fixes**
### **Before (Broken):**
```typescript
<lib-card>This would NOT work</lib-card>
```
### **After (Fixed):**
```typescript
<ntv-card>This works correctly!</ntv-card>
```
---
## š **Verification**
All selectors were verified against the actual component files in:
```
C:\Users\Admin\Documents\repos\component-mcp\ntv-scaffolding\libs\component-pantry\src\lib\component-pantry
```
Each component's `.ts` file was checked for the `selector:` metadata.
---
## š **Updated Behavior**
Now when AI generates code, it will produce:
### ā
**Correct Template**
```html
<ntv-button [config]="{ variant: 'primary' }">Click</ntv-button>
<ntv-card>Content</ntv-card>
<ntv-input placeholder="Name"></ntv-input>
```
### ā
**Instead of (Broken)**
```html
<!-- These would NOT work anymore -->
<lib-button [config]="{ variant: 'primary' }">Click</lib-button>
<lib-card>Content</lib-card>
<lib-input placeholder="Name"></lib-input>
```
---
## š **Naming Pattern**
**The correct naming convention is:**
- All selectors use `ntv-` prefix (not `lib-`)
- Format: `ntv-{component-name}`
- Examples:
- `ntv-button`
- `ntv-card`
- `ntv-modal`
- `ntv-thumbnail-gallery`
---
## ⨠**Files Updated**
- ā
`src/data/components.ts` - Updated all 12 selectors
- ā
`npm run build` - Recompiled successfully
---
## š **Result**
The MCP server now has **100% accurate selectors** that match the actual NTV Scaffolding component library!
**Version**: 1.0.2 (Corrected)
**Status**: ā
All selectors verified and corrected
**Date**: November 3, 2025