feat: add gross up modal to PayrollConfiguration kebab menu#1210
Draft
jeffredodd wants to merge 3 commits intomainfrom
Draft
feat: add gross up modal to PayrollConfiguration kebab menu#1210jeffredodd wants to merge 3 commits intomainfrom
jeffredodd wants to merge 3 commits intomainfrom
Conversation
- Move GrossUpModal from PayrollEditEmployee inline text to kebab menu - Add "Set net earnings" menu item for bonus/correction off-cycle payrolls - Fix gross up apply: set excluded=false and only send valid API fields - Cancel in-flight prepare queries on unmount to prevent concurrent requests - Add retry logic for payrollsPrepare when server reports processing conflict Made-with: Cursor
… entry Add spinner to the Apply button while the gross up amount is being saved. Fix a bug where applying gross up had no effect when the target compensation (e.g. Bonus) didn't already exist in the employee's fixedCompensations array -- the .map() only transformed existing entries so the amount was silently dropped. Now creates the entry if missing. Made-with: Cursor
Align the dropdown menu to the trigger button's right edge and normalize icon sizes to a uniform 20x20 within menu items for visual consistency. Made-with: Cursor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
payrolls/calculate_gross_upAPI, and apply it to the employee's compensationfixedCompensationsarrayChanges
updatePayrollcall to persist the gross amountReview process
This PR has two review passes:
Screenshots
Test plan
Made with Cursor