-
Notifications
You must be signed in to change notification settings - Fork 1.9k
feat(instructions): add Salesforce LWC development instructions #530
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR adds comprehensive development instructions for Salesforce Lightning Web Components (LWC) to help GitHub Copilot provide better assistance when working with LWC projects. The instructions cover component structure, SLDS design system usage, reactive properties, wire services, error handling, and common anti-patterns to avoid.
Key Changes
- Added new instruction file
lwc.instructions.mdwith LWC-specific development guidelines - Updated
docs/README.instructions.mdto include the new LWC instruction in the alphabetically sorted table
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 5 comments.
| File | Description |
|---|---|
| instructions/lwc.instructions.md | New instruction file providing comprehensive guidelines for LWC development including component architecture, SLDS compliance, performance optimization, and accessibility best practices |
| docs/README.instructions.md | Added LWC Development entry to the instructions table with appropriate install badges and description |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
Co-authored-by: Copilot <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.
…esome-copilot into add-lws-instructions
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Copilot reviewed 2 out of 2 changed files in this pull request and generated no new comments.
Pull Request Checklist
npm startand verified thatREADME.mdis up to date.Description
This PR adds a new instruction file, lwc.instructions.md, focused on Salesforce Lightning Web Components (LWC) development.
It provides Copilot with specific context on Salesforce platform constraints, security models, and design systems. The file is structured to have the "Positive/Negative" constraints and "Good/Bad" code examples to steer the model away from common anti-patterns (like direct DOM manipulation or imperative Apex) and towards standard practices (Wire Service, LDS, SLDS).
Type of Contribution
Additional Notes
By submitting this pull request, I confirm that my contribution abides by the Code of Conduct and will be licensed under the MIT License.