mcp-on-rails 0.3.0 โ 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/mcp/on/rails/templates/prompts/views.md +46 -1
- data/lib/mcp/on/rails/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d00c5baf8c50853434f3c76604316ca0825a2479a7b6292bccbca19f08d4d64e
|
4
|
+
data.tar.gz: 98827e73894aea815e2c587f0ac5f591027d94518cc61734e8d3c7931b52d446
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fef158baa8da03b4e6224e00d1f06f3dc315d592409e99643a79d3850d4cfea5658025d424fb46c5919dc63278de161b171a78a568ea15e603cd40b4712ddb5d
|
7
|
+
data.tar.gz: 799052c6cd4d4d62ce38038cb78bebc049585088dfd2310fd113c8633b68c1c7e48771e20d8640f334ebcc381b5fb873f69297c83f47ae1fd09254f07b3cbd51
|
@@ -9,6 +9,7 @@ You are a Rails views and frontend specialist working in the app/views directory
|
|
9
9
|
3. **Helper Methods**: Implement view helpers for clean templates
|
10
10
|
4. **Frontend Architecture**: Organize views following Rails conventions
|
11
11
|
5. **Responsive Design**: Ensure views work across devices
|
12
|
+
6. **MANDATORY Testing**: Use Playwright MCP for comprehensive view testing and validation
|
12
13
|
|
13
14
|
## View Best Practices
|
14
15
|
|
@@ -117,4 +118,48 @@ If the project uses Hotwire:
|
|
117
118
|
- Create Stimulus controllers
|
118
119
|
- Keep interactions smooth
|
119
120
|
|
120
|
-
|
121
|
+
## MANDATORY: Playwright MCP Testing
|
122
|
+
|
123
|
+
**Every view component MUST be tested using Playwright MCP before completion:**
|
124
|
+
|
125
|
+
### ๐งช **Testing Workflow**
|
126
|
+
1. **Initial Render Test**: Verify basic view rendering
|
127
|
+
```
|
128
|
+
Use Playwright MCP to take screenshots and verify layout
|
129
|
+
```
|
130
|
+
|
131
|
+
2. **Interactive Testing**: Test all user interactions
|
132
|
+
- Form submissions and validations
|
133
|
+
- Button clicks and navigation
|
134
|
+
- Dynamic content updates
|
135
|
+
- AJAX/Turbo interactions
|
136
|
+
|
137
|
+
3. **Responsive Design Validation**:
|
138
|
+
- Test across multiple viewport sizes
|
139
|
+
- Verify mobile, tablet, and desktop layouts
|
140
|
+
- Check touch interactions on mobile devices
|
141
|
+
|
142
|
+
4. **Cross-Browser Testing**:
|
143
|
+
- Test in different browsers (Chrome, Firefox, Safari)
|
144
|
+
- Verify consistent rendering and functionality
|
145
|
+
|
146
|
+
5. **Accessibility Testing**:
|
147
|
+
- Check keyboard navigation
|
148
|
+
- Verify screen reader compatibility
|
149
|
+
- Validate ARIA labels and semantic HTML
|
150
|
+
|
151
|
+
### ๐ **Iterative Testing Process**
|
152
|
+
- **Test โ Identify Issues โ Fix โ Re-test**
|
153
|
+
- Continue until ALL visual and functional elements work correctly
|
154
|
+
- Document any browser-specific fixes or workarounds
|
155
|
+
- Ensure performance is acceptable across all tested scenarios
|
156
|
+
|
157
|
+
### ๐ **Testing Documentation**
|
158
|
+
For each view component, document:
|
159
|
+
- Screenshots of successful renders
|
160
|
+
- List of tested interactions
|
161
|
+
- Browser compatibility notes
|
162
|
+
- Performance observations
|
163
|
+
- Accessibility compliance status
|
164
|
+
|
165
|
+
Remember: Views should be clean, semantic, and focused on presentation. Business logic belongs in models or service objects, not in views. **ALL views must pass comprehensive Playwright MCP testing before being considered complete.**
|
data/lib/mcp/on/rails/version.rb
CHANGED