frontend: add tooltip for yellow parameters in ParameterLoader#3736
Merged
patrickelectric merged 2 commits intobluerobotics:masterfrom Jan 23, 2026
Merged
frontend: add tooltip for yellow parameters in ParameterLoader#3736patrickelectric merged 2 commits intobluerobotics:masterfrom
patrickelectric merged 2 commits intobluerobotics:masterfrom
Conversation
Reviewer's guide (collapsed on small PRs)Reviewer's GuideAdds an explanatory tooltip to the ParameterLoader dialog title for yellow-highlighted parameters and fixes the dialog being instantiated twice by moving its single instance outside of card bodies in ParamSets.vue. Sequence diagram for single ParameterLoader instance in ParamSetssequenceDiagram
actor User
participant ParamSets as ParamSets_vue
participant ParameterLoader as ParameterLoader_vue
User->>ParamSets: select_paramset_and_click_load
ParamSets->>ParamSets: set selected_paramset
ParamSets->>ParameterLoader: pass_parameters(selected_paramset)
activate ParameterLoader
ParameterLoader->>User: show_dialog_with_tooltip
User->>ParameterLoader: confirm_or_cancel
ParameterLoader-->>ParamSets: done
deactivate ParameterLoader
ParamSets->>ParamSets: selected_paramset = {}
ParamSets-->>User: dialog_closed
File-Level Changes
Assessment against linked issues
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Hey - I've found 1 issue, and left some high level feedback:
- In
ParamSets.vue,selected_paramsetis set to{}on@donewhile the dialog is shown withv-if="selected_paramset", so the loader may never close because an empty object is still truthy; consider usingnullor a more explicit condition instead. - For the new info icon tooltip in
ParameterLoader.vue, consider adding an accessible label/aria attributes or making the icon button-like to ensure screen readers and keyboard users can discover and focus it.
Prompt for AI Agents
Please address the comments from this code review:
## Overall Comments
- In `ParamSets.vue`, `selected_paramset` is set to `{}` on `@done` while the dialog is shown with `v-if="selected_paramset"`, so the loader may never close because an empty object is still truthy; consider using `null` or a more explicit condition instead.
- For the new info icon tooltip in `ParameterLoader.vue`, consider adding an accessible label/aria attributes or making the icon button-like to ensure screen readers and keyboard users can discover and focus it.
## Individual Comments
### Comment 1
<location> `core/frontend/src/components/parameter-editor/ParameterLoader.vue:11-12` </location>
<code_context>
<v-card-title class="pt-6">
- Loading Parameters
+ Loading Parameters
+ <v-tooltip bottom>
+ <template #activator="{ on }">
+ <v-icon small color="warning" v-on="on">mdi-information-variant-box</v-icon>
+ </template>
</code_context>
<issue_to_address>
**issue (bug_risk):** Forwarding only `on` in the tooltip activator may drop important attributes and affect accessibility.
Vuetify’s tooltip activator slot usually provides both `on` and `attrs`, with the pattern `v-slot:activator="{ on, attrs }"` plus `v-on="on"` and `v-bind="attrs"` on the activator element. Using only `on` can drop ARIA/keyboard attributes and break expected behavior; please include `attrs` as well.
</issue_to_address>Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
core/frontend/src/components/parameter-editor/ParameterLoader.vue
Outdated
Show resolved
Hide resolved
b4cfc4b to
adf8128
Compare
adf8128 to
49cdacc
Compare
patrickelectric
approved these changes
Jan 23, 2026
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.
fix #3546
Also fixed the ParameterLoader dialog which was opening twice everytime.
Summary by Sourcery
Add an informational tooltip to the ParameterLoader dialog and adjust its placement to prevent it from opening twice.
New Features:
Bug Fixes: