fix: Added missing up/down button labels#935
fix: Added missing up/down button labels#935osteotek merged 1 commit intocrosspoint-reader:masterfrom
Conversation
📝 WalkthroughWalkthroughMultiple activity files are updated to include directional navigation hints in button label rendering. The mapLabels function calls now receive STR_DIR_UP and STR_DIR_DOWN as parameters, replacing previously empty string arguments. These changes enhance UI button hints with up/down navigation indicators across browsing, network, reader, and settings interfaces. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes 🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. Comment |
| // Bottom button hints: show Back and Select | ||
| const auto labels = mappedInput.mapLabels(tr(STR_BACK), tr(STR_SELECT), "", ""); | ||
| // Bottom button hints | ||
| const auto labels = mappedInput.mapLabels(tr(STR_BACK), tr(STR_SELECT), tr(STR_DIR_UP), tr(STR_DIR_DOWN)); |
There was a problem hiding this comment.
This is the SHOWING_RESULT case, where up and down are handled on lines 365-373
| confirmLabel = tr(STR_DOWNLOAD); | ||
| } | ||
| const auto labels = mappedInput.mapLabels(tr(STR_BACK), confirmLabel, "", ""); | ||
| const auto labels = mappedInput.mapLabels(tr(STR_BACK), confirmLabel, tr(STR_DIR_UP), tr(STR_DIR_DOWN)); |
There was a problem hiding this comment.
Up and down are handled on lines 116-134
|
|
||
| // Draw help text at bottom | ||
| const auto labels = mappedInput.mapLabels(tr(STR_BACK), tr(STR_SELECT), "", ""); | ||
| const auto labels = mappedInput.mapLabels(tr(STR_BACK), tr(STR_SELECT), tr(STR_DIR_UP), tr(STR_DIR_DOWN)); |
There was a problem hiding this comment.
Up and down are handled on lines 46-54
|
|
||
| // Draw button hints | ||
| const auto labels = mappedInput.mapLabels(tr(STR_BACK), tr(STR_SELECT), "", ""); | ||
| const auto labels = mappedInput.mapLabels(tr(STR_BACK), tr(STR_SELECT), tr(STR_DIR_UP), tr(STR_DIR_DOWN)); |
There was a problem hiding this comment.
Up and down are handled on lines 45-53
|
|
||
| // Draw button hints | ||
| const auto labels = mappedInput.mapLabels(tr(STR_BACK), tr(STR_SELECT), "", ""); | ||
| const auto labels = mappedInput.mapLabels(tr(STR_BACK), tr(STR_SELECT), tr(STR_DIR_UP), tr(STR_DIR_DOWN)); |
There was a problem hiding this comment.
Up and down are handled on lines 47-55
|
|
||
| // Button hints | ||
| const auto labels = mappedInput.mapLabels(tr(STR_BACK), tr(STR_SELECT), "", ""); | ||
| const auto labels = mappedInput.mapLabels(tr(STR_BACK), tr(STR_SELECT), tr(STR_DIR_UP), tr(STR_DIR_DOWN)); |
There was a problem hiding this comment.
Up and down are handled on lines 33-41
CaptainFrito
left a comment
There was a problem hiding this comment.
This is also done in #732 but might as well get it merged sooner
## Summary **What is the goal of this PR?** In some places, button labels are omitted intentionally because the button has no purpose in the activity. I noticed a few obvious cases, like Home > File Transfer and Settings > System > Language, where the up and down button labels were missing. This change fixes those and all similar instances I could find. --- ### AI Usage While CrossPoint doesn't have restrictions on AI tools in contributing, please be transparent about their usage as it helps set the right context for reviewers. Did you use AI tools to help write this code? _**NO**_
## Summary **What is the goal of this PR?** In some places, button labels are omitted intentionally because the button has no purpose in the activity. I noticed a few obvious cases, like Home > File Transfer and Settings > System > Language, where the up and down button labels were missing. This change fixes those and all similar instances I could find. --- ### AI Usage While CrossPoint doesn't have restrictions on AI tools in contributing, please be transparent about their usage as it helps set the right context for reviewers. Did you use AI tools to help write this code? _**NO**_
## Summary **What is the goal of this PR?** In some places, button labels are omitted intentionally because the button has no purpose in the activity. I noticed a few obvious cases, like Home > File Transfer and Settings > System > Language, where the up and down button labels were missing. This change fixes those and all similar instances I could find. --- ### AI Usage While CrossPoint doesn't have restrictions on AI tools in contributing, please be transparent about their usage as it helps set the right context for reviewers. Did you use AI tools to help write this code? _**NO**_
## Summary **What is the goal of this PR?** In some places, button labels are omitted intentionally because the button has no purpose in the activity. I noticed a few obvious cases, like Home > File Transfer and Settings > System > Language, where the up and down button labels were missing. This change fixes those and all similar instances I could find. --- ### AI Usage While CrossPoint doesn't have restrictions on AI tools in contributing, please be transparent about their usage as it helps set the right context for reviewers. Did you use AI tools to help write this code? _**NO**_
…QWId fix: Added missing up/down button labels (crosspoint-reader#935)
Summary
What is the goal of this PR?
In some places, button labels are omitted intentionally because the button has no purpose in the activity. I noticed a few obvious cases, like Home > File Transfer and Settings > System > Language, where the up and down button labels were missing. This change fixes those and all similar instances I could find.
AI Usage
While CrossPoint doesn't have restrictions on AI tools in contributing, please be transparent about their usage as it
helps set the right context for reviewers.
Did you use AI tools to help write this code? NO