8000 Improvement: Improved Display of Long Named Professions in Personnel Tab by Moving Salary to Biographies Filter by IllianiBird · Pull Request #6932 · MegaMek/mekhq · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Improvement: Improved Display of Long Named Professions in Personnel Tab by Moving Salary to Biographies Filter #6932

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 3 commits into from
May 10, 2025

Conversation

IllianiBird
Copy link
Collaborator

When professions with long names were entered into the personnel table they would become oddly squashed. This mitigates that problem.

@IllianiBird IllianiBird self-assigned this May 9, 2025
@IllianiBird IllianiBird requested a review from a team as a code owner May 9, 2025 03:23
@IllianiBird IllianiBird added Bug GUI Severity: Low Issues described as low severity as per the new issue form labels May 9, 2025
@IllianiBird IllianiBird changed the title Improvement: Improved Display of Long Named Professions in Personnel Tab by Moving Salary to Biographys Filter Improvement: Improved Display of Long Named Professions in Personnel Tab by Moving Salary to Biographies Filter May 9, 2025
Copy link
codecov bot commented May 9, 2025

Codecov Report

Attention: Patch coverage is 66.66667% with 1 line in your changes missing coverage. Please review.

Project coverage is 12.04%. Comparing base (4158360) to head (20b15ef).
Report is 26 commits behind head on master.

Files with missing lines Patch % Lines
...src/mekhq/gui/enums/PersonnelTableModelColumn.java 66.66% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff            @@
##             master    #6932   +/-   ##
=========================================
  Coverage     12.04%   12.04%           
- Complexity     6851     6853    +2     
=========================================
  Files          1101     1101           
  Lines        141386   141372   -14     
  Branches      21897    21900    +3     
=========================================
+ Hits          17028    17029    +1     
+ Misses       122537   122519   -18     
- Partials       1821     1824    +3     

☔ 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.

@HammerGS HammerGS requested a review from Copilot May 10, 2025 15:24
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 improves the display of long profession names in the personnel tab by adjusting column widths and moving the SALARY filtering logic to the Biographies filter.

  • Updated the column width for PERSONNEL_ROLE from 100 to 150.
  • Refactored the switch logic in PersonnelTableModelColumn to move the SALARY case from one branch to a different (Biographies) branch.

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
MekHQ/unittests/mekhq/gui/enums/PersonnelTableModelColumnTest.java Added unit tests asserting the updated width for the PERSONNEL_ROLE column.
MekHQ/src/mekhq/gui/enums/PersonnelTableModelColumn.java Adjusted column widths and refactored the filter logic, moving the SALARY check to the Biographies filter.

@HammerGS HammerGS merged commit 7153580 into MegaMek:master May 10, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug GUI Severity: Low Issues described as low severity as per the new issue form
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0