Frontend: power failsafe/setup updates#3969
Conversation
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. |
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.
2822cd1 to
93995d6
Compare
|
Bugbot is not enabled for this team, so this pull request was not reviewed. Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs. |


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: