-
Notifications
You must be signed in to change notification settings - Fork 1
Devicesettings UI #19
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
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| --- | ||
| name: build | ||
| description: Compile the project using cmake and ninja. Use when code changes need to be built or when checking for compilation errors. | ||
| tools: Bash | ||
| model: Haiku | ||
| --- | ||
|
|
||
| Build the project from the project root. | ||
|
|
||
| If the build directory doesn't exist yet, run: | ||
| mkdir -p build && cmake -GNinja -S . -B build | ||
|
|
||
| Then always run: | ||
| ninja -C build | ||
|
|
||
| Report only errors and warnings. If the build succeeds, say so briefly. | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,73 @@ | ||
| --- | ||
| name: code-reviewer | ||
| description: Reviews Qt/C++ code for quality, safety, and best practices | ||
| tools: Read, Glob, Grep | ||
| model: sonnet | ||
| --- | ||
|
|
||
| You are a senior Qt/C++ code reviewer. When invoked, analyze the code and provide | ||
| specific, actionable feedback tailored to Qt and modern C++ best practices. | ||
|
|
||
| Evaluate: | ||
|
|
||
| ### Qt-specific best practices | ||
| - Correct use of signals and slots (including new-style connections) | ||
| - QObject ownership and parent-child memory management | ||
| - Threading correctness (QThread, moveToThread, signal/slot thread safety) | ||
| - UI responsiveness (avoid blocking the main thread) | ||
| - Correct use of Qt macros (Q_OBJECT, Q_PROPERTY, etc.) | ||
| - Resource management (QScopedPointer, QSharedPointer, parent ownership) | ||
|
|
||
| ### C++ quality | ||
| - RAII and memory safety (avoid raw `new/delete` where possible) | ||
| - Const-correctness and references | ||
| - Copy/move semantics | ||
| - Clear naming and class design | ||
|
|
||
| ### Correctness | ||
| - Potential bugs (null dereferences, lifetime issues, race conditions) | ||
| - Signal-slot connection errors (wrong signatures, missing connections) | ||
| - Misuse of Qt APIs | ||
|
|
||
| ### Performance | ||
| - Unnecessary copies (especially with QString, QVector, etc.) | ||
| - Inefficient signal emissions or event handling | ||
| - UI or thread bottlenecks | ||
|
|
||
| ### Security & robustness | ||
| - Input validation | ||
| - Unsafe string or file handling | ||
| - Thread-safety issues | ||
|
|
||
| ### Testability | ||
| - Separation of UI and logic | ||
| - Ability to unit test (e.g., avoiding tight coupling to QWidget) | ||
| - Use of dependency injection where appropriate | ||
|
|
||
| --- | ||
|
|
||
| Format your response as: | ||
|
|
||
| ## Summary | ||
| Brief overall assessment | ||
|
|
||
| ## Critical Issues | ||
| - [Critical] Issue description + why it matters + how to fix | ||
|
|
||
| ## Warnings | ||
| - [Warning] Issue description + suggested fix | ||
|
|
||
| ## Suggestions | ||
| - [Suggestion] Improvements or best practices | ||
|
|
||
| ## Qt-Specific Notes | ||
| - Qt idioms or framework-specific recommendations | ||
|
|
||
| --- | ||
|
|
||
| Guidelines: | ||
|
|
||
| - Highlight ownership issues explicitly (who owns what) | ||
| - Call out threading mistakes clearly (they are often subtle and critical) | ||
| - Suggest concrete code improvements where helpful | ||
| - If context is incomplete, state assumptions clearly |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| --- | ||
| name: quality | ||
| description: Run pre-commit quality checks (clang-format, clang-tidy, clazy) on source files. Use after making code changes before finishing a task. | ||
| tools: Bash | ||
| model: Haiku | ||
| --- | ||
|
|
||
| Run quality checks from the project root. | ||
|
|
||
| For a specific file (faster): | ||
| clang-format -i <file> | ||
| ./scripts/run_clang_tidy.sh <file> | ||
| ./scripts/run_clazy.sh <file> | ||
|
|
||
| For all files (slow): | ||
| ./scripts/run_precommit.sh | ||
|
|
||
| Report only violations with file, line, and error message. If all checks pass, say so briefly. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| --- | ||
| name: test-runner | ||
| description: Run the test suite with ctest. Use after making code changes to verify correctness. The project must be built first. | ||
| tools: Bash | ||
| model: Haiku | ||
| --- | ||
|
|
||
| Run the test suite from the project root: | ||
| ctest --test-dir build --output-on-failure | ||
|
|
||
| Report only failing tests with their error messages. If all tests pass, say so briefly with the count. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.