More APRS enhancements
This commit is contained in:
13
ui/AGENTS.md
13
ui/AGENTS.md
@@ -28,7 +28,7 @@ Relevant documents:
|
||||
|
||||
**Always run tests before completing a task.**
|
||||
|
||||
Run `npm run build`.
|
||||
Run `npm run build` and run `pre-commit run --files changed files...`
|
||||
|
||||
## Coding Guidelines
|
||||
|
||||
@@ -36,12 +36,16 @@ Run `npm run build`.
|
||||
- Prefer ESM imports (`import`/`export`)
|
||||
- Use builtins from React, React-Boostrap where possible
|
||||
- Follow existing code patterns in the code base
|
||||
- Never make changes outside of the `ui` directory, if you think this is necessary prompt me for approval.
|
||||
- Look for opportunities to create reusable styles in `src/styles` or reusable components in `src/components`
|
||||
- Never make changes outside of the project directory, if you think this is necessary prompt me for approval
|
||||
- Only add things related to the prompted instructions, unless it is required to make the requested changes
|
||||
- When adding imports, apply the import styling rules from the next section.
|
||||
|
||||
### Styling
|
||||
- Use React-Bootstrap components where appropriate
|
||||
- Follow existing CSS patterns
|
||||
- Add reusable style elements to the `src/App.scss`
|
||||
- Explicit imports are better than implicit exports, be as specific as possible to minimize code size
|
||||
- Order imports:
|
||||
- React import first; then any react plugin
|
||||
- Third-party libraries;
|
||||
@@ -57,3 +61,8 @@ Run `npm run build`.
|
||||
**Never modify files inside the `data/` directory.** This directory contains game data that should remain unchanged.
|
||||
|
||||
Never add secrets to code.
|
||||
|
||||
## Addressing
|
||||
|
||||
Don't call me "the user", refer to me as "the developer".
|
||||
Refrain from using hyperbolic expressions like "excellent" and "perfect", "ok" or "good" is good enough.
|
||||
|
||||
Reference in New Issue
Block a user