mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-05 20:34:18 +01:00
106 lines
3.3 KiB
Markdown
106 lines
3.3 KiB
Markdown
# Contributing to OpenCode Manager
|
|
|
|
Thanks for your interest in contributing! This guide covers our workflow and how to get started.
|
|
|
|
## Getting Started
|
|
|
|
1. Fork the repository
|
|
2. Clone your fork locally
|
|
|
|
See the [Development Setup Guide](https://opencodemanager.app/docs/development/setup) for detailed setup instructions.
|
|
|
|
## Project Board Workflow
|
|
|
|
We use a [GitHub Project board](https://github.com/users/chriswritescode-dev/projects/2) to coordinate work and avoid duplicate effort.
|
|
|
|
### Claiming an Issue
|
|
|
|
1. Check the project board to see what's already in progress
|
|
2. Find an issue you'd like to work on from the **Todo** column
|
|
3. Comment on the issue: "I'd like to work on this"
|
|
4. A maintainer will assign you and move it to **In Progress**
|
|
5. Fork the repo and start working
|
|
|
|
|
|
### Status Columns
|
|
|
|
| Column | Meaning |
|
|
|--------|---------|
|
|
| **Todo** | Ready to be picked up |
|
|
| **In Progress** | Someone is actively working on it |
|
|
| **In Review** | PR is open and awaiting review |
|
|
| **Done** | Merged and complete |
|
|
|
|
### Themes
|
|
|
|
Each item is tagged with a theme to help you find work in your area of interest:
|
|
|
|
| Theme | Description |
|
|
|-------|-------------|
|
|
| UI Polish | User interface improvements |
|
|
| Auth | Authentication and security features |
|
|
| Git/VCS | Version control features |
|
|
| Agent | AI agent capabilities |
|
|
| Infrastructure | Deployment and environment setup |
|
|
| STT | Speech-to-text features |
|
|
| Cost/Analytics | Usage tracking and analytics |
|
|
|
|
## Development Guidelines
|
|
|
|
### Code Style
|
|
|
|
- New and changed code has no comments of any kind (including JSDoc and lint-disable directives); code must be self-documenting
|
|
- Strict TypeScript with proper typing
|
|
- Named imports only
|
|
- DRY principles - check for existing patterns before adding new ones
|
|
- Functions should be single-responsibility and reusable
|
|
|
|
### Backend (Bun + Hono)
|
|
|
|
- Hono framework with Zod validation
|
|
- Bun SQLite (bun:sqlite) for database
|
|
- Proper error handling with try/catch
|
|
- Use async/await consistently
|
|
|
|
### Frontend (React + Vite)
|
|
|
|
- Use `@/` alias for component imports
|
|
- Radix UI + Tailwind CSS for styling
|
|
- React Query for state management
|
|
- React Hook Form + Zod for forms
|
|
|
|
### Running Tests
|
|
|
|
```bash
|
|
pnpm test # Run CLI, backend, and frontend tests
|
|
cd backend && pnpm exec vitest run <filename> # Run single test file
|
|
cd backend && bun test <filename> # Run a Bun-only suite (test/routes/internal-sandbox.test.ts, src/routes/repos.test.ts)
|
|
```
|
|
|
|
### Linting and Type Checking
|
|
|
|
```bash
|
|
pnpm lint # Lint the repository with Oxlint
|
|
pnpm typecheck # Type-check CLI, frontend, and backend
|
|
```
|
|
|
|
Run linting and type checking before submitting a PR.
|
|
|
|
### Commit Messages
|
|
|
|
Use `type(scope): brief description`, where the scope is optional, for example `feat(schedules): add workspace modes` or `fix(proxy): harden remote terminal WebSocket bridging`.
|
|
|
|
## Submitting Changes
|
|
|
|
1. Create a feature branch from `main`
|
|
2. Make your changes with clear, focused commits
|
|
3. Run tests, linting, and type checking
|
|
4. Open a PR and link it to your issue (use "Closes #123" in the PR description)
|
|
5. A maintainer will move the item to **In Review**
|
|
6. Address review feedback
|
|
7. Once merged, the item moves to **Done**
|
|
|
|
## Questions?
|
|
|
|
Open an issue or discussion on GitHub if you have questions or ideas.
|