Frontend: power failsafe/setup updates#3969
Open
Williangalvani wants to merge 4 commits into
Open
Conversation
Display parameter labels and a transparent "not found" indicator even when the parameter is missing, gate the preset selector and editors on parameter availability, and surface a reboot note with a reboot button since enable parameters with rebootRequired can hide their dependent parameters until reboot. Co-authored-by: Cursor <cursoragent@cursor.com>
There was a problem hiding this comment.
Hey - I've left some high level feedback:
- In
FailsafeCard.vue,dependency_unmetmanually searchesautopilot_data.parameterseven though the component already has aparamsmap; consider reusingthis.params[dep.paramName]for consistency and to avoid duplicating the lookup logic. - Now that
ParameterLabelsupports missing params and uses different icons/colors, consider adding appropriatearia-labelortitleattributes to the icon to make the distinction between "info" and "unavailable" accessible to screen readers.
Prompt for AI Agents
Please address the comments from this code review:
## Overall Comments
- In `FailsafeCard.vue`, `dependency_unmet` manually searches `autopilot_data.parameters` even though the component already has a `params` map; consider reusing `this.params[dep.paramName]` for consistency and to avoid duplicating the lookup logic.
- Now that `ParameterLabel` supports missing params and uses different icons/colors, consider adding appropriate `aria-label` or `title` attributes to the icon to make the distinction between "info" and "unavailable" accessible to screen readers.Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
Automated PR Review0. Summary
Frontend-only UX polish for the failsafe and power-configuration cards: 1. Correctness & Implementation Bugs
5. UI / UX
6. Code Quality & Style
Generated by PR Review Bot. This is advisory, a human reviewer must still approve. |
Collaborator
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.


Summary by Sourcery
Improve visibility and handling of unavailable power configuration parameters and reboot requirements, and add dependency-aware presentation for battery-related failsafes.
New Features:
Enhancements: