Skip to content

Commit a9c5b0a

Browse files
CopilotTechQuery
andcommitted
Changes before error encountered
Co-authored-by: TechQuery <19969570+TechQuery@users.noreply.github.com>
1 parent f8a49e7 commit a9c5b0a

1 file changed

Lines changed: 0 additions & 20 deletions

File tree

.github/copilot-instructions.md

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ After making ANY changes, ALWAYS validate by running through these scenarios:
5656
ALWAYS run before committing changes:
5757

5858
```bash
59-
pnpm lint # Fix linting issues automatically
6059
npm test # Runs linting + staged file checks
6160
```
6261

@@ -98,25 +97,9 @@ Based on comprehensive PR review analysis, follow these critical development sta
9897
#### Component and Import Standards
9998

10099
- **ALWAYS use React Bootstrap components** instead of custom HTML elements
101-
- Use `<Button>`, `<Badge>`, `<Breadcrumb>`, `<Card>`, `<Container>` from 'react-bootstrap'
102-
- Import from existing configured clients: use `githubClient` from `models/Base.ts`
103100
- Use utilities from established libraries: 'web-utility'
104101
- Import `'./Base'` in model files for proper configuration
105102

106-
#### Data and API Integration
107-
108-
- Use **GitHub API** with ContentModel from mobx-github for content management
109-
- Use configured `githubClient` from `models/Base.ts` for authenticated API calls
110-
- **Base64 decode** content from GitHub API responses: `atob(item.content)`
111-
- Replace filesystem reading with GitHub Contents API calls
112-
- Use `ContentModel('owner', 'repo')` pattern for repository content access
113-
114-
#### Error Handling and Static Generation
115-
116-
- **Natural error throwing** for static generation - let errors bubble up to catch build issues
117-
- Don't catch errors in `getStaticProps` unless specifically handling them
118-
- Ensure build passes before pushing - resolve issues at compile time
119-
120103
### UI/UX Standards
121104

122105
#### Component Usage Patterns
@@ -233,10 +216,7 @@ const tree = treeFrom(nodes, 'path', 'parent_path', 'children');
233216
234217
#### API Usage Patterns
235218
236-
- Use `ContentModel` for repository content access
237-
- Always decode Base64 content: `atob(item.content)`
238219
- Import configured `githubClient` from `models/Base.ts`
239-
- Follow the pattern: `new ContentModel('owner', 'repository')`
240220
241221
#### Authentication and Rate Limiting
242222

0 commit comments

Comments
 (0)