8000 Improvement: Separated Reputation-Related Campaign Options Into Their Own Tab by IllianiBird · Pull Request #7062 · MegaMek/mekhq · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Improvement: Separated Reputation-Related Campaign Options Into Their Own Tab #7062

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 5 commits into from
May 23, 2025

Conversation

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

Fix #7083

The title pretty much says everything. With the upcoming Faction Standing system it made sense to create a new tab to house that sort of thing. It also has the added benefit of cleaning up the General tab.

I also took the opportunity to add ATOW to the recommended reading list.

For the curious Reputation options can now be found here: Operations -> Systems -> Reputation

@IllianiBird IllianiBird self-assigned this May 20, 2025
@IllianiBird IllianiBird requested a review from a team as a code owner May 20, 2025 05:21
@IllianiBird IllianiBird added GUI Campaign Options Relates to, or includes, campaign option changes labels May 20, 2025
Copy link
codecov bot commented May 20, 2025

Codecov Report

Attention: Patch coverage is 0% with 131 lines in your changes missing coverage. Please review.

Project coverage is 12.42%. Comparing base (4163661) to head (81688b2).
Report is 7 commits behind head on master.

Files with missing lines Patch % Lines
...mekhq/gui/campaignOptions/contents/SystemsTab.java 0.00% 90 Missing ⚠️
MekHQ/src/mekhq/gui/dialog/MHQOptionsDialog.java 0.00% 19 Missing ⚠️
...mekhq/gui/campaignOptions/CampaignOptionsPane.java 0.00% 10 Missing ⚠️
...mekhq/gui/campaignOptions/contents/GeneralTab.java 0.00% 6 Missing ⚠️
MekHQ/src/mekhq/MHQOptions.java 0.00% 5 Missing ⚠️
MekHQ/src/mekhq/utilities/ReportingUtilities.java 0.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##             master    #7062      +/-   ##
============================================
- Coverage     12.42%   12.42%   -0.01%     
  Complexity     7243     7243              
============================================
  Files          1117     1118       +1     
  Lines        144014   144066      +52     
  Branches      22166    22166              
============================================
+ Hits          17898    17902       +4     
- Misses       124279   124325      +46     
- Partials       1837     1839       +2     

☔ 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
Contributor
@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR extracts reputation-related settings from the General tab into a new “Systems” tab, cleans up the General tab accordingly, and updates the recommended reading panel to include A Time Of War (ATOW).

  • Introduces SystemsTab class to host reputation options
  • Removes reputation controls from GeneralTab and wires up SystemsTab in CampaignOptionsPane
  • Consolidates reading list entries into a single HTML label and adds ATOW

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.

File Description
MekHQ/src/mekhq/gui/campaignOptions/contents/SystemsTab.java New tab class containing reputation controls
MekHQ/src/mekhq/gui/campaignOptions/contents/GeneralTab.java Removed reputation code and added ATOW reading entry
MekHQ/src/mekhq/gui/campaignOptions/CampaignOptionsPane.java Instantiates and wires in SystemsTab
MekHQ/resources/mekhq/resources/CampaignOptionsDialog.properties Moved reputation keys under “Systems Tab” and updated reading list

@rjhancock
Copy link
Collaborator

Conflicts. but looks good.

# Conflicts:
#	MekHQ/resources/mekhq/resources/CampaignOptionsDialog.properties
@IllianiBird IllianiBird merged commit 12d6dd0 into MegaMek:master May 23, 2025
7 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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

User interface: insufficient differentiation of the «special symbols» when reviewing campaign options after updating
2 participants
0