Repository navigation
Fix null deferred announce when leaving Reactor bar mode #1007
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -167,7 +167,7 @@ Item { | |
| var wsn7 = ws7 ? Number(ws7.name) : -1 | ||
| lastWsId = isFinite(wsn7) && wsn7 > 0 ? wsn7 : -1 | ||
| root.setReactorFastTick7() | ||
| Qt.callLater(function() { root.announceReactorArmed7() }) | ||
| Qt.callLater(function() { if (root) root.announceReactorArmed7() }) | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
This PR changes only Rule Used: RYOKU COMMIT/PR CONVENTIONS (enforced by .githooks in every Ryoku repo; --no-verify is forbidden). Subjects: Prompt To Fix With AIThis is a comment left during a code review.
Path: ryoku/shell/quickshell/shell/modules/bar/barstyles/qsbar/modules/ParticleStream.qml
Line: 170
Comment:
**Required change records are missing**
This PR changes only `ParticleStream.qml`, but repository rules require a matching changelog entry. Its commit subject also lacks the required `[area] scope: imperative summary` format. Add the fix to `ryoku/shell/CHANGELOG.md` and use the required `[global]` subject format before merging.
**Rule Used:** RYOKU COMMIT/PR CONVENTIONS (enforced by .githooks in every Ryoku repo; --no-verify is forbidden). Subjects: `\[area\] scope: imperative summary`, area one of global|installation|system|ryoku|docs|test|tooling|release (shell changes use \[global\]); 72 c... ([source](https://app.greptile.com/-/switch-tenant?tenant=ryoku&next=%2Fcustom-context%3Fmemory%3Dc885c516-9406-453f-9659-5f5e48e9ae72))
---
For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Addressed on the current head: the changelog entry is in |
||
| } | ||
| if (mode === 8) { | ||
| animating8 = true | ||
|
|
@@ -209,7 +209,7 @@ Item { | |
| animating7 = ambientField7 | ||
| canvas.paintTick = ambientField7 ? ambientIdleTick7 : reactorFrameTick7 | ||
| root.requestFrame() | ||
| Qt.callLater(function() { root.announceReactorArmed7() }) | ||
| Qt.callLater(function() { if (root) root.announceReactorArmed7() }) | ||
| } else if (mode === 8) { | ||
| animating8 = true | ||
| quoteWake8.stop() | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🟡 minor · Maintainability · fix: low effort
This user-visible fix has no matching area
CHANGELOG.mdnote in the PR. Add a note for the Reactor mode error fix.Reply here to discuss, say it's fixed, or explain why it's intended — no mention needed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Already addressed:
ryoku/shell/CHANGELOG.mdnow has a note under Unreleased for the Reactor fix, and the commit subject is[ryoku] shell: guard deferred Reactor announce when qsbar unloadswith aNote: Fixed:line.mika/policypasses on the current head.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can't confirm this is fixed yet. The supplied code does not include the area changelog or the current PR diff, so the presence of a matching note cannot be verified.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You're right — my earlier reply only asserted it. Here is the current PR diff (
gh api repos/Ryoku-dev/ryoku/pulls/1007/files), which includes the area changelog note:The changelog item is directly under
## Unreleasedinryoku/shell/CHANGELOG.md, and the commit message is[ryoku] shell: guard deferred Reactor announce when qsbar unloadswith aNote: Fixed:line.mika/policyand Greptile Review both pass on this head.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can't confirm this is fixed yet. The supplied code shows the Reactor mode change but does not include the current area changelog or PR file list.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here is the exact current state, copied verbatim from the PR.
Files changed (
gh pr diff 1007 --name-only):Current content of
ryoku/shell/CHANGELOG.md, lines 1-10:The changelog note is the first bullet under
## Unreleasedin the shell area changelog. The QML change in the other file is theif (root)guard on both deferredannounceReactorArmed7()calls. Both files are in this PR's diff, andmika/policypasses on headb35a7ff65d.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can't confirm this is fixed yet. The supplied current code does not include the area changelog or the PR diff, so the presence of a matching note cannot be verified.