Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add command description to hazardous dialog #1879

Merged
merged 1 commit into from
Feb 7, 2025

Conversation

ryan-pratt
Copy link
Contributor

Closes #1870

image

@ryan-pratt ryan-pratt requested a review from jmthomas February 6, 2025 20:01
Copy link

sonarqubecloud bot commented Feb 6, 2025

Copy link

codecov bot commented Feb 6, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 79.40%. Comparing base (48a3666) to head (fcc9377).
Report is 4 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1879      +/-   ##
==========================================
- Coverage   79.40%   79.40%   -0.01%     
==========================================
  Files         523      523              
  Lines       40905    40905              
==========================================
- Hits        32482    32481       -1     
- Misses       8423     8424       +1     
Flag Coverage Δ
python 83.98% <ø> (-0.01%) ⬇️
ruby-api 48.45% <ø> (ø)
ruby-backend 82.51% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

<v-col :cols="colSize" :class="{ 'openc3-yellow': hazardous }">
Description: {{ description }}
<template v-if="hazardous"> (HAZARDOUS) </template>
</v-col>
Copy link
Member

Choose a reason for hiding this comment

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

What was the reason for this change? I thought this would always color the description as yellow and I actually ran it to prove it didn't. I don't think I've used this technique to set a class before.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Just removing a tiny bit of code duplication. This reads quite a bit nicer imo, and I just ended up here while trying to figure out how to get a command's description.

We do this a few other places, for example here

@ryan-pratt ryan-pratt merged commit 603eda0 into main Feb 7, 2025
29 of 30 checks passed
@ryan-pratt ryan-pratt deleted the bug/hazardous-description branch February 7, 2025 18:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

HAZARDOUS Description
2 participants