# Contributing to the VirtualBuddy Project Thanks for your interest in contributing to the project. Please make sure you follow the guidelines to maximize the chances of your contribution being accepted. ## 1. LLM Usage Policy **Before contributing to the project in any way**, be sure to read and understand the [LLM Usage Policy](./LLM_POLICY.md), which applies to all participation related to the project, including discussions and pull requests. ## 2. Discussions This project doesn't use GitHub issues, but the discussions page is open for general Q&A, bug reports, and feature suggestions. Before starting a new discussion, use the search to check if there are no other discussions that already address your question or issue. Here are the main reasons you might want to start a new discussion: ### I. Bugs When the app behaves in an unexpected way or simply breaks, please file a bug report and describe what you were doing when the problem occurred, what was the expected result and what was the actual result. Remember to include the version of the operating system you're running on your Mac and the virtual machines involved and the model of your Mac (ex: MacBook Pro 16-inch M4 Max). ### II. Crashes If you get a crash please open a discussion and explain what you were trying to do when the crash happened, include a video or screenshots of the problem if possible. Attach the crash report generated by macOS to your post. ### III. Feature Suggestions If you want a new feature to be implemented, you can open a discussion explaining why the feature would be useful to you and to other people. Whilst I want feature requests and suggestions to be as ambitious as possible, keep in mind that I try to keep the app focused, and niche features or features which would add a lot of complexity to the codebase may be rejected. If in doubt, it's better to suggest it than stay silent! ## 3. Code (Pull Requests) **Important: pull requests that only contain refactoring of existing code without fixing any bugs, improving performance, or implementing a new feature will not be accepted.** Don't forget to read the [LLM Usage Policy](./LLM_POLICY.md) before opening a pull request. In general, pull requests that have been created by an AI agent will be rejected, especially if the pull request description itself is clearly AI-generated. ### I. Ask before you code If you'd like to work on a bug fix or new feature, it's a good idea to open a discussion describing what you plan on doing before opening a pull request. This avoids duplicated work in case the thing you're planning on doing is already being worked on by someone else, or wasting time in case the feature you'd like to implement is outside the scope of the project and unlikely to be accepted. ### II. Keep indentation and style consistent And yes, this means spaces instead of tabs. 😉 It's not worth starting a war over this -- I'm not strongly opinionated about it -- but that's what this project uses. ### III. Test your code thoroughly When you think you're done with your contribution, try to break your code in as many different ways as possible to make sure your implementation is solid: - If you change something related to the handling of user or application data (model layer) make sure to test the migration of data from a previous release version of the app to your modified version. - If you change a component related to networking, use Apple's Network Link Conditioner and test with a slow/bad connection to see how the app behaves. - If you change something related to UI, try resizing the containing window and looking at different content to make sure it can adapt well to different environments. - Make sure your implementation works in all versions of the OS supported by the app. - Make sure your changes are not breaking existing features or user workflows. - Make sure your code is not introducing any new build warnings. ### IV. Dependencies Do not add external dependencies to the project. Do not bring in assets (icons, images) for which you don't have an appropriate license. Use SF Symbols when possible. ## 4. Conduct The project has a [code of conduct](./CODE_OF_CONDUCT.md) that should be kept in mind when contributing -- whether that contribution is in the form of discussions, comments, documentation, or code. Try to keep documentation and messages free of phrases that assume knowledge. If you're resorting to phrases like "obviously", "everyone knows" and "just", there's probably some context you're excluding. Not only does this help us be friendlier and more approachable for newcomers, but it will probably help any programmer -- even you! -- who comes back to look at your code in months/years. ## 5. Conclusion These are just some suggestions for common scenarios, if you need help with your contribution you can always open a discussion to ask any questions. Have fun 🎉