Is your feature request related to a problem? Please describe. Every year the travel rates for Meals and Incidentals, distance allowance, and private accommodations are updated. Create admin tables that allow system admin to update these. Allow the ability to audit who updated the field and when the update occured.
Describe the solution you'd like Create admin tables in the admin section of the application (access thru top right) for each of the stored amounts. https://yukon.ca/travel-rates
Update the code to hit the newly entered values.
Implementation
Take over "Administration -> YG Rates" page stub and turn it into Travel Rates view that matches, more or less, the pdf downloadable from https://yukon.ca/travel-rates.
Clean up Administration dashboard page.
Implement SimpleBreadcrumbs component, and LayoutWithBreadcrumbs to fix the broken breadcrumbs on the Admin dashboard. Note that I've only fixed the pages I'm using here. Fixing all of the pages will be done in https://github.com/ytgov/travel-authorization/issues/106.
Add useBreadcrumbs to explicitly set breadcrumbs for a given page via the LayoutWithBreadcrumbs. This is much more flexible and easier to debug that the current generated breadcrumbs.
Implement back-end ordering of per-diems so that they are ordered and grouped in a consistent way based on time and distance. Also make default page size match with number of claim types (6).
Given that per-diem and travel allowances are hard-coded by name/type in the back-end, it is not possible for the admin to add/remove per-diems or travel allowances, or change there type/currency. Only the amount is editable.
Notes
All currency values are shown using standard Intl.NumberFormat("en-CA", { style: "currency", }) currency format. Given that this is an international standard, we should stick to it, rather than rolling our own local standard. The effect of this is that values in CAD are shown without a currency type, while USD values are shown prefixed with US.
e.g.
$165.75 vs. US$165.75
Click on the kebab menu in the top right and select "Administration".
Click on User Management and select your user.
Add the "Admin" role to your user.
Click on the kebab menu in the top right and select "Administration". (breadcrumbs are broken).
Click on Travel Rates in the center column at the bottom.
Scroll through the travel rates "read" view and check that it matches visually (as much as possible) the PDF downloadable from https://yukon.ca/travel-rates. Note that this link is also at the bottom of the /administration/travel-rates page. The values may differ, though should be logically consistent.
"Full days on travel status" value should be the sum of all "Partial days on travel status" values, plus "Incidental expenses" value.
Scroll to the top of the page, and click on the "Edit" call-to-action button in the top right of the page.
Check that the breadcrumbs updated, and that you can go back to any of the previous pages by clicking the appropriate breadcrumb.
Look at the Per-Diems edit table, check that you can change the number of rows on the page and change the page number.
Check that changing the page number of rows on the the page updates the URL, and will load the appropriate page if the page is refreshed.
Check that the "Claim Type" filter update the returned data and page URL.
Fixes https://github.com/ytgov/travel-authorization/issues/82
Relates to:
Context
Is your feature request related to a problem? Please describe. Every year the travel rates for Meals and Incidentals, distance allowance, and private accommodations are updated. Create admin tables that allow system admin to update these. Allow the ability to audit who updated the field and when the update occured.
Describe the solution you'd like Create admin tables in the admin section of the application (access thru top right) for each of the stored amounts. https://yukon.ca/travel-rates
Update the code to hit the newly entered values.
Implementation
Caveats
Notes
Intl.NumberFormat("en-CA", { style: "currency", })
currency format. Given that this is an international standard, we should stick to it, rather than rolling our own local standard. The effect of this is that values in CAD are shown without a currency type, while USD values are shown prefixed with US. e.g.$165.75
vs.US$165.75
Screenshots
Travel Rates page http://localhost:8080/administration/travel-rates
Edit Travel Rates page. http://localhost:8080/administration/travel-rates/edit
Edit Travel Rates page with Private Accommodations filter pre-applied. http://localhost:8080/administration/travel-rates/edit?perDiemsClaimType=private_accommodations
Testing Instructions
dev test
(ordev test_api
)dev up
/administration/travel-rates
page. The values may differ, though should be logically consistent.