feat: add core terminations functionality #901
Draft
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.
This pull request introduces a new employee termination flow, including a new
EmployeeTerminationscomponent, supporting presentation, tests, i18n, and event constants. The changes add a complete UI for terminating employees, form validation, event emission, and integration with the API.Key changes:
New Employee Terminations Feature:
EmployeeTerminationscontainer component, which handles employee fetching, form state, validation, API mutation, and event emission for termination actions. (src/components/Terminations/EmployeeTerminations.tsx)EmployeeTerminationsPresentationcomponent to render the termination form UI, including last day selection, payroll options, error handling, and action buttons. (src/components/Terminations/EmployeeTerminationsPresentation.tsx)src/components/Terminations/EmployeeTerminations.test.tsx)Integration and Exports:
Terminationsmodule and addedTerminationsto the main components index for usage throughout the app. (src/components/Terminations/index.tsx,src/components/index.ts) [1] [2]Internationalization and Constants:
src/i18n/en/Terminations.EmployeeTerminations.json)componentEventsobject. (src/shared/constants.ts) [1] [2]