Skip to content

refactor(Payroll): split time-off balance display out of TimeOffField#2466

Draft
krisxcrash wants to merge 2 commits into
mainfrom
kw/feat/SDK-1134-timeoff-field
Draft

refactor(Payroll): split time-off balance display out of TimeOffField#2466
krisxcrash wants to merge 2 commits into
mainfrom
kw/feat/SDK-1134-timeoff-field

Conversation

@krisxcrash

Copy link
Copy Markdown
Contributor

Summary

  • First of two stacked PRs for SDK-1134 (Edit payroll UI redesign). This one is a pure refactor of TimeOffField.tsx; the card/table layout redesign follows in a second PR based on this branch.
  • Extracts the "X remaining" accrual-balance display out of TimeOffField/PayoutTimeOffField into a new TimeOffTypeCell, so it can be rendered as a table "Type" column cell.
  • Drops the employee prop from TimeOffField/PayoutTimeOffField in favor of an optional shouldVisuallyHideLabel flag, and wires the existing "Time off" and "Unused time off payout" sections in PayrollEditEmployeePresentation through a Box/DataView table so the balance renders via TimeOffTypeCell instead of inline under the input.
  • No behavior change from a partner-facing API standpoint; TimeOffField/TimeOffTypeCell are @internal-only and not exported.

Test plan

  • npm run test -- --run src/components/Payroll/PayrollEditEmployee — 72/72 passing
  • npm run test -- --run (full suite) — 293 files / 3537 passing, 1 pre-existing expected-fail
  • npx tsc --noEmit and npx eslint clean on changed files
  • npm run i18n:generate — new timeOffColumns.type/timeOffColumns.hours keys generated

🤖 Generated with Claude Code

Extracts the accrual-balance text into a standalone TimeOffTypeCell so
it can render as a table "Type" column, and drops the employee prop
from TimeOffField/PayoutTimeOffField in favor of a shouldVisuallyHideLabel
flag. Prepares PayrollEditEmployee's Time off and Unused time off payout
sections for a card/table layout (SDK-1134); further layout changes land
in a follow-up PR.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@krisxcrash
krisxcrash requested a review from a team as a code owner July 23, 2026 20:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant