Skip to content

Conversation

@rafaellehmkuhl
Copy link
Member

@rafaellehmkuhl rafaellehmkuhl commented Sep 9, 2025

Till now only variables of number type were supported, as the value was always trying to be parsed as one.

This will come in handy specially after we merge #1944, as the users will be able to use the VGI to show a custom status, for example.

Comment on lines +98 to +108
<div class="flex items-center justify-start w-full mt-3">
<input
id="useStringVariable"
v-model="miniWidget.options.useStringVariable"
type="checkbox"
class="mr-2 w-4 h-4 rounded bg-[#FFFFFF12] border-gray-300 focus:ring-blue-500"
/>
<label for="useStringVariable" class="text-sm text-slate-100/75">
Use string variable (don't parse as number)
</label>
</div>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If data-lake variables have known types, could we infer this automatically from the selected variable, instead of requiring the user to configure it?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could, but that is not well enforced yet. I think it's better for now to just allow this to be explicitly done before we take a deeper look at the enforcing.

@rafaellehmkuhl
Copy link
Member Author

ping @ArturoManzoli @ES-Alexander

Copy link
Contributor

@ArturoManzoli ArturoManzoli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! This will be very useful

@rafaellehmkuhl rafaellehmkuhl merged commit 41d1421 into bluerobotics:master Sep 15, 2025
12 checks passed
@rafaellehmkuhl rafaellehmkuhl deleted the allow-strings-on-vgi branch September 15, 2025 12:23
@ES-Alexander ES-Alexander added the docs-needed Change needs to be documented label Sep 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs-needed Change needs to be documented

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants