-
Notifications
You must be signed in to change notification settings - Fork 38
fixed nav shorcuts (added compat map) #143
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 |
|---|---|---|
|
|
@@ -69,7 +69,7 @@ Rectangle { | |
|
|
||
| FlatButton { | ||
| anchors.verticalCenter: parent.verticalCenter | ||
| text: "Print" | ||
| text: "Print this" | ||
| onClicked: actionsModel.print() | ||
|
Comment on lines
+72
to
73
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. 🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win Align the label with the print scope.
🤖 Prompt for AI Agents |
||
| } | ||
| } | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -33,7 +33,7 @@ | |
| #include "ui/uitypes.h" | ||
|
|
||
| namespace muse::rcommand { | ||
| constexpr std::string_view COMMAND_SCHEME = "command://"; | ||
| constexpr std::string_view COMMAND_SCHEME = "command"; | ||
|
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. 🗄️ Data Integrity & Integration | 🟠 Major | ⚡ Quick win
In This is a cross-file contract break: the constant value change in Consider either:
🔧 Proposed fix: separate scheme and URI prefix constants constexpr std::string_view COMMAND_SCHEME = "command";
+constexpr std::string_view COMMAND_URI_PREFIX = "command://";
using Command = Uri;Then in - if (muse::strings::startsWith(actionCode, rcommand::COMMAND_SCHEME)) {
+ if (muse::strings::startsWith(actionCode, rcommand::COMMAND_URI_PREFIX)) {And line 81: - if (muse::strings::startsWith(actionQuery.uri().scheme(), rcommand::COMMAND_SCHEME)) {
+ if (actionQuery.uri().scheme() == rcommand::COMMAND_SCHEME) {🤖 Prompt for AI Agents |
||
| using Command = Uri; | ||
| using CommandQuery = UriQuery; | ||
|
|
||
|
|
||
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.
🎯 Functional Correctness | 🟠 Major | ⚡ Quick win
Prefer
==overstartsWithfor exact scheme comparison.actionQuery.uri().scheme()returns the parsed scheme component (e.g.,"command"). UsingstartsWithinstead of equality means URIs with schemes like"commander"or"commands"would also match and be routed to the command dispatcher. An exact equality check is more precise and prevents unintended scheme matches.🔧 Proposed fix
📝 Committable suggestion
🤖 Prompt for AI Agents