feat: add PolicyConfigurationForm functional component#1510
Open
krisxcrash wants to merge 1 commit intomainfrom
Open
feat: add PolicyConfigurationForm functional component#1510krisxcrash wants to merge 1 commit intomainfrom
krisxcrash wants to merge 1 commit intomainfrom
Conversation
77d98df to
50c322c
Compare
…ration Wire PolicyConfigurationFormPresentation to the embedded API via useTimeOffPoliciesCreateMutation. Maps form-level accrual method selections (hourly/fixed/unlimited) to the 8 API accrual method variants, converts numeric fields to strings, and formats policy reset dates (MM-DD). Emits TIME_OFF_POLICY_DETAILS_DONE on success and CANCEL on back.
37e1142 to
0aed58f
Compare
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
PolicyConfigurationFormfunctional component that wrapsPolicyConfigurationFormPresentationwith theBaseComponent/useBase()patternuseTimeOffPoliciesCreateMutationto create time-off policies via the embedded APIpolicyResetDateasMM-DDTIME_OFF_POLICY_DETAILS_DONEwith{ policyId }on success,CANCELon backindex.tsAccrual Method Mapping
unlimitedper_hour_worked_no_overtimeper_hour_workedper_hour_paid_no_overtimeper_hour_paidper_pay_periodper_calendar_yearper_anniversary_yearTest plan
npx tsc --noEmit)