Immanuel Onyeka
580c0515a7
Render and style summary pages of reports
Summary component was moved to master.tpl because sub-template calls
allow only one argument to be passed. Passing info for both Estimate and
Loan structs dynamically would involve looping during template
execution, or calling a custom function to restructure the estimate,
which are all too complicated.
pirms 1 gada
Immanuel Onyeka
1932ac1c38
correct file misnaming
pirms 1 gada
Immanuel Onyeka
bf0a017836
Split sections into seperate template files
Split comparison, summary, and header sections into seperate files to
reuse headers more easily and make future changes easier.
pirms 1 gada
Immanuel Onyeka
cae74385dd
Style report table
pirms 1 gada
Immanuel Onyeka
def8d767f2
Cache report view at startup
pirms 1 gada
Immanuel Onyeka
3b66fe413a
Make Result an attribute of Loan type
Move Result attribute from Estimate to it's related Loan to make it's
meaning less confusing.
pirms 1 gada
Immanuel Onyeka
ba9522a883
Generate PDF with os/exec process instead of js
the htmltopdf.js library renders all PDF text as images instead of
vectors, and Go does not have a reliable native library for generating
PDFs that is actively maintained. The best solution appears to be to
make a system call to wkhtmltopdf, but now there is a hidden package
dependency that is not checked at build time and exists in another
process. Maybe in the future a C library can be used and linked with the
Go binary.
pirms 1 gada
Immanuel Onyeka
e77294f777
Save changed user address in database
pirms 1 gada
Immanuel Onyeka
1d7163f5ae
Render and select address from dropdown
pirms 1 gada
Immanuel Onyeka
6566e1a4e9
Fix type and syntax errors
pirms 1 gada
Immanuel Onyeka
4f16ba3e95
List env variables in readme
pirms 1 gada
Immanuel Onyeka
e9547b9df8
Use environment variables instead of config file
Using a config file is not necessary and may be confusing.
Also add address and phone number of User and Branch structs.
pirms 1 gada
Immanuel Onyeka
ad233f81f2
Fix bug caused by empty avatar field
An empty avatar caused a request for the default icon to be fetched,
which caused the request for the user's letterhead to not be made.
pirms 1 gada
Immanuel Onyeka
a2364d8340
Add address and phone number to user and branch
Update the database tables for user and branch to give more information
required for PDF generation. Also set up a test component to preview
change to the view during development. It will be reconfigured once the
genrated PDF is satisfactory.
pirms 1 gada
Immanuel Onyeka
308bfb87a9
Create mockup html for PDF generation
vue-html2pdf appears unmaintained and hacky so it's being avoided.
pirms 1 gada
Immanuel Onyeka
03fc18ff7b
Use composition API in sidebar.vue
pirms 1 gada
Immanuel Onyeka
b3599fbe0e
Add password reset endpoint
pirms 1 gada
Immanuel Onyeka
24f34e47db
Allow password reset requests from settings.vue
pirms 1 gada
Immanuel Onyeka
268227203f
Cancel token refresh if it is currently invalid
pirms 1 gada
Immanuel Onyeka
5111bd51dd
Move code to update user profile from endpoint
Since request.Body can only be read once, calling patchUser from
patchSelf always returned an error. request.Body needed to be either be
saved in a variable and reset or have a new function created.
pirms 1 gada
Immanuel Onyeka
7055f5d6c7
Resize selected letterhead to good dimensions
Uses gift package for server side resizing of selected letterhead
file. It should fit an image file with aspect ratio of 2:1 and be a
reasonable size. A 400x200 resizeToFit is used for now.
gift just uses the native image/draw package internally.
https://pkg.go.dev/image/draw
pirms 1 gada
Immanuel Onyeka
5c919b8f22
Display letterhead as 400x200 pixel image
pirms 1 gada
Immanuel Onyeka
6e5cf4b5cd
Fetch and upload letterhead from settings view
pirms 1 gada
Immanuel Onyeka
7fa03cc393
Add user letterhead endpoints
pirms 1 gada
Immanuel Onyeka
8c5c94da5d
Make GET and POST requests to user avatar endpoints
pirms 1 gada
Immanuel Onyeka
b9d0da2e90
Render and resize new avatar selection
pirms 1 gada
Immanuel Onyeka
290746a438
Dislay PDF mockup as test page
pirms 1 gada
Immanuel Onyeka
da111e4c06
Add deleteFeeTemp endpoint to delete fees
pirms 1 gada
Immanuel Onyeka
366647310f
Fix error caused by negative percentages in fees
pirms 1 gada
Immanuel Onyeka
daaff1c318
Add endpoint to create a new fee
pirms 1 gada
Immanuel Onyeka
4558d1b4cc
Show currency formated summary in estimates.vue
pirms 1 gada
Immanuel Onyeka
26850a0e73
Also retrieve loan type and borrower in getEstimate
pirms 1 gada
Immanuel Onyeka
a2b2ca2ca2
Fix estimate_results SQL error
pirms 1 gada
Immanuel Onyeka
ae5247bc71
Add insert and select SQL queries for Results
pirms 1 gada
Immanuel Onyeka
5368bc6227
Calculate estimate result values with []Loans loop
pirms 1 gada
Immanuel Onyeka
c7158bd863
Insert MI and fees with insert functions
pirms 1 gada
Immanuel Onyeka
6d98b7b47a
Calculate estimate summary values in backend
pirms 1 gada
Immanuel Onyeka
b3cf840f88
Loop over indices to avoid copying values
pirms 1 gada
Immanuel Onyeka
26cd32c82a
Ensure new estimates have correct user IDs
pirms 1 gada
Immanuel Onyeka
3a5477760d
Fetch user's estimates list from estimates.vue
pirms 1 gada
Immanuel Onyeka
c566ddb991
Correctly represent fee types in estimates vue
pirms 1 gada
Immanuel Onyeka
af5c204eb6
Save estimates to database from summary view
pirms 1 gada
Immanuel Onyeka
bbb7bf5f1e
Add mandatory FHA MIP as a fee
pirms 1 gada
Immanuel Onyeka
2e51164a32
Check vA and USDA loan types
pirms 1 gada
Immanuel Onyeka
e9968ae63b
Represent money as int and percentages as float32
pirms 1 gada
Immanuel Onyeka
562c485b2d
Fix loan.type.id conversion error
pirms 1 gada
Immanuel Onyeka
e4f1ec3ab6
Fix type parsing errors for borrower and loan fields
pirms 1 gada
Immanuel Onyeka
0c18bfdab8
Move form validation to golang backend
pirms 1 gada
Immanuel Onyeka
39d84acba6
Calculate monthly MI
pirms 1 gada
Immanuel Onyeka
671316e0b5
Show MI payments in summary
pirms 1 gada