Skip to content
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

Feature: Display number of employees per Function #7955

Open
wants to merge 7 commits into
base: refactor-payroll-management
Choose a base branch
from

Conversation

jniles
Copy link
Collaborator

@jniles jniles commented Jan 2, 2025

This PR is not ready for a merge yet. Give me some time to refine it.

This PR refines Function module for better maintainability. It removes the duplicate FunctionService and migrates the server route to async/await. It also implements the feature requested in #7797 for displaying the number of employees associated with each function. Here is what that looks like:

image

Additionally, to facilitate the creation of multiple functions at a time, it implements the account-style "batch create" function. Currently, while this works, it does not refresh the background items, which is a poor user experience. I'll rework this before final merge.

TODO:

  • Rework the user experience for "Create Another"
  • Rename the "Create another" to "Create another Function"
  • Rename "Function" to the appropriate English translation.
  • Fix my editors lint issues

Closes #7797

@jniles jniles force-pushed the feat-show-number-workers-per-function branch from 31757f6 to 2f62192 Compare January 2, 2025 03:16
@jniles jniles force-pushed the refactor-payroll-management branch from cd1a9d8 to a10945c Compare January 7, 2025 17:32
jniles added 5 commits January 9, 2025 16:00
Converts the server side code to async/await, removes duplicate
FunctionService.
Adds a column to the "function registry" to show the number of
employees with that function assigned.
Removes an unused, untranslated chart-modal.html.  No idea where it came
from.
Implements the same style of batch creates used on the account modal for
creating functions.
Removes technical debt by removing duplicate code.
@jniles jniles force-pushed the feat-show-number-workers-per-function branch from 2f62192 to c3da21d Compare January 9, 2025 22:01
@jniles jniles marked this pull request as ready for review January 9, 2025 22:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant