8000 Improvement: Added a Hint Display to Campaign Options IIC by IllianiBird · Pull Request #6958 · MegaMek/mekhq · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Improvement: Added a Hint Display to Campaign Options IIC #6958

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

Merged
merged 22 commits into from
May 14, 2025

Conversation

IllianiBird
Copy link
Collaborator
@IllianiBird IllianiBird commented May 11, 2025

Requires #6960

We were noticing that even with all of the informatics added to CO IIC folks were still missing the tooltips. So traditional problems require modern solutions.

A 'hint' panel has been added to CO IIC's tabs, where appropriate. When a user mouses over an option this hint panel will be updated to display the tooltips linked in that option. So, for example, if I were to mouse over 'enable StratCon' the hint panel will update to show the 'enable StratCon' tooltips.

For user convenance the tooltips are still in place, so if a user prefers they can access the information in the old manner without issue.

They say a picture paints a thousand words, so...

Screen.Recording.2025-05-11.at.3.43.13.PM.mov

@IllianiBird IllianiBird self-assigned this May 11, 2025
@IllianiBird IllianiBird requested a review from a team as a code owner May 11, 2025 20:44
@IllianiBird IllianiBird added GUI UX User experience Campaign Options Relates to, or includes, campaign option changes labels May 11, 2025
Copy link
Collaborator
@Sleet01 Sleet01 left a comment

Choose a reason for hiding this comment

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

Overall looks good, but the CI/CD task is failing with these errors:

/home/runner/work/mekhq/mekhq/mekhq/MekHQ/src/mekhq/gui/campaignOptions/contents/PersonnelTab.java:1420: error: method getDescription in enum PersonnelRole cannot be applied to given types;
            jLabel.addMouseListener(createTipPanelUpdater(salariesHeader, null, personnelRole.getDescription(false)));
                                                                                             ^
  required: no arguments
  found:    boolean
  reason: actual and formal argument lists differ in length
/home/runner/work/mekhq/mekhq/mekhq/MekHQ/src/mekhq/gui/campaignOptions/contents/PersonnelTab.java:1428: error: method getDescription in enum PersonnelRole cannot be applied to given types;
            jSpinner.addMouseListener(createTipPanelUpdater(salariesHeader, null, personnelRole.getDescription(false)));
                                                                                               ^
  required: no arguments
  found:    boolean
  reason: actual and formal argument lists differ in length
/home/runner/work/mekhq/mekhq/mekhq/MekHQ/src/mekhq/gui/campaignOptions/contents/BiographyTab.java:1405: error: method getDescription in enum PersonnelRole cannot be applied to given types;
                  role.getDescription(false)));
                      ^
  required: no arguments
  found:    boolean
  reason: actual and formal argument lists differ in length

Probably need to either rebase on a newer master, or update those calls.

@IllianiBird
Copy link
Collaborator Author

Yeah that method comes from the PR marked as required for this PR

@Sleet01
Copy link
Collaborator
Sleet01 commented May 14, 2025

Yeah that method comes from the PR marked as required for this PR

I thought I looked... nope, there it is.
One second, I'll merge that one.

@Sleet01
Copy link
Collaborator
Sleet01 commented May 14, 2025

@IllianiBird I merged the prerequisite PR but it looks like either A) GitHub isn't seeing it yet, or B) we still need to do a merge/rebase to pull those updates into this PR so the CI can pass.

At this point I can try to do that, or you can, or we can merge and then you can fix anything that is subsequently broken.
What's your preference?

@IllianiBird
Copy link
Collaborator Author

Should be good now (once the tests complete) I just had to remerge master so it recognized that the source method did, in fact, exist.

Copy link
codecov bot commented May 14, 2025

Codecov Report

Attention: Patch coverage is 0.11682% with 855 lines in your changes missing coverage. Please review.

Project coverage is 11.99%. Comparing base (49d76b0) to head (100bc41).
Report is 36 commits behind head on master.

Files with missing lines Patch % Lines
...khq/gui/campaignOptions/contents/PersonnelTab.java 0.00% 102 Missing ⚠️
...khq/gui/campaignOptions/contents/BiographyTab.java 0.00% 89 Missing ⚠️
...q/gui/campaignOptions/contents/AdvancementTab.java 0.00% 88 Missing ⚠️
...paignOptions/contents/EquipmentAndSuppliesTab.java 0.00% 87 Missing ⚠️
...paignOptions/contents/TurnoverAndRetentionTab.java 0.00% 77 Missing ⚠️
...ekhq/gui/campaignOptions/contents/RulesetsTab.java 0.00% 70 Missing ⚠️
...gui/campaignOptions/contents/RelationshipsTab.java 0.00% 64 Missing ⚠️
...mekhq/gui/campaignOptions/contents/MarketsTab.java 0.00% 57 Missing ⚠️
...ekhq/gui/campaignOptions/contents/FinancesTab.java 0.00% 49 Missing ⚠️
.../gui/campaignOptions/CampaignOptionsUtilities.java 0.00% 38 Missing ⚠️
... and 14 more
Additional details and impacted files
@@             Coverage Diff              @@
##             master    #6958      +/-   ##
============================================
- Coverage     12.03%   11.99%   -0.05%     
- Complexity     6851     6858       +7     
============================================
  Files          1101     1101              
  Lines        141441   142012     +571     
  Branches      21920    21934      +14     
============================================
+ Hits          17029    17036       +7     
- Misses       122591   123151     +560     
- Partials       1821     1825       +4     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Collaborator
@Sleet01 Sleet01 left a comment

Choose a reason for hiding this comment

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

LGTM!

@Sleet01 Sleet01 merged commit f410c69 into MegaMek:master May 14, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Campaign Options Relates to, or includes, campaign option changes GUI UX User experience
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0