Skip to content

Added Button to Access Quick Tech Assignment#8988

Merged
HammerGS merged 3 commits into
MegaMek:mainfrom
IllianiBird:quickAssignMaintenanceButton
May 19, 2026
Merged

Added Button to Access Quick Tech Assignment#8988
HammerGS merged 3 commits into
MegaMek:mainfrom
IllianiBird:quickAssignMaintenanceButton

Conversation

@IllianiBird
Copy link
Copy Markdown
Collaborator

@IllianiBird IllianiBird commented May 17, 2026

Recently we opened a dialog with the user base to try and identify pain points and areas of friction.

One of the requested features was the ability to more easily assign techs to unassigned units. That technology was implemented earlier in the year but wasn't well advertised. Now we add a nice shiny ui button in the hangar for the user to mash which will not only assign techs, but also inform the user of the automated option in MekHQ Options.

Screen.Recording.2026-05-17.at.2.38.31.PM.mov

@IllianiBird IllianiBird self-assigned this May 17, 2026
@IllianiBird IllianiBird requested a review from a team as a code owner May 17, 2026 19:46
@IllianiBird IllianiBird added GUI UX User experience labels May 17, 2026
@codecov
Copy link
Copy Markdown

codecov Bot commented May 17, 2026

Codecov Report

❌ Patch coverage is 0% with 31 lines in your changes missing coverage. Please review.
✅ Project coverage is 14.08%. Comparing base (d2c8380) to head (f616a8a).
⚠️ Report is 37 commits behind head on main.

Files with missing lines Patch % Lines
MekHQ/src/mekhq/gui/HangarTab.java 0.00% 19 Missing ⚠️
MekHQ/src/mekhq/gui/dialog/MHQOptionsDialog.java 0.00% 12 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main    #8988      +/-   ##
============================================
+ Coverage     14.00%   14.08%   +0.07%     
- Complexity     8320     8341      +21     
============================================
  Files          1285     1285              
  Lines        167958   168081     +123     
  Branches      25418    25429      +11     
============================================
+ Hits          23530    23675     +145     
+ Misses       141950   141916      -34     
- Partials       2478     2490      +12     

☔ 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
Copy Markdown
Contributor

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

Adds a Hangar UI affordance to trigger the existing “automatic assignment of techs to unmaintained units” feature, including a confirmation/nag dialog and an option to suppress that confirmation in MekHQ Options.

Changes:

  • Add “Quick Assign Maintenance Techs” button to the Hangar tab that runs AutomatedTechAssignments after confirmation.
  • Introduce a new nag/confirmation key (CONFIRMATION_ASSIGN_TECHS) and expose a “hide confirmation” toggle in the Options dialog.
  • Add/extend i18n strings for the new button, option checkbox, and confirmation dialog text.

Reviewed changes

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

Show a summary per file
File Description
MekHQ/src/mekhq/MHQConstants.java Adds a new nag/confirmation key constant for “Assign Techs”.
MekHQ/src/mekhq/gui/HangarTab.java Adds the Hangar button and confirmation flow to trigger quick tech assignment.
MekHQ/src/mekhq/gui/dialog/MHQOptionsDialog.java Adds a Nag-tab checkbox to hide the new confirmation dialog and persists it.
MekHQ/resources/mekhq/resources/ImmersiveDialogConfirmation.properties Adds confirmation dialog primary text for the new action.
MekHQ/resources/mekhq/resources/GUI.properties Adds option text/tooltip strings for hiding the new confirmation dialog.
MekHQ/resources/mekhq/resources/CampaignGUI.properties Adds button text/tooltip strings for the Hangar tab UI.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread MekHQ/resources/mekhq/resources/ImmersiveDialogConfirmation.properties Outdated
Comment thread MekHQ/resources/mekhq/resources/CampaignGUI.properties Outdated
IllianiBird and others added 2 commits May 18, 2026 10:58
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@HammerGS HammerGS merged commit 2b7e520 into MegaMek:main May 19, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

GUI UX User experience

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants