icefoganalytics / travel-authorization

0 stars 0 forks source link

Add UI Warning For Admins When Pre-Approvals Overflow Limits #181

Open klondikemarlen opened 2 months ago

klondikemarlen commented 2 months ago

Relates to:

Context

Is your feature request related to a problem? Please describe. As decided previously, the scope of the software around "pre-approvals" needs to be very flexible. This means that multiple people need to be able to pick the same pre-approval, or overflow pre-approval limits. While this is troubling from a software purity perspective, it is essential from a business case perspective.

A workaround to these constraints and limitations, is to have a warning show up for travel authorization approvers when a pre-approval is used by more than one person, if person specific, or overflows the pre-approved traveler count, if generic.

Describe the solution you'd like Show a warning to admins when pre-approval overflows limits.

Describe alternatives you've considered Enforce limits at a software level. This has been determined to be too ridge to handle current government operations.

Additional context Show warning on http://localhost:8080/travel-requests/xxx/details/manage page. Also show usage count in pre-approval, if it relates to multiple travelers. e.g.

image