Immanuel Onyeka
826a356432
Prevent new users from being administrators
Secures the user registration endpoint.
il y a 1 an
Immanuel Onyeka
bb1f7eaa70
Delete templates with remove button in view
il y a 1 an
Immanuel Onyeka
94390b1aa3
List and display template details in view
il y a 1 an
Immanuel Onyeka
48fa487fea
Handle missing avatar and letterhead in PDF
il y a 1 an
Immanuel Onyeka
27de7ea416
Allow users to delete saved estimates
il y a 1 an
Immanuel Onyeka
69009f286f
Make dollar amounts more readable
il y a 1 an
Immanuel Onyeka
67479195e2
Fix monthly MI calculation
il y a 1 an
Immanuel Onyeka
7ce7c9300e
Calculate new estimate results server side
il y a 1 an
Immanuel Onyeka
87fba7a7f0
Comma format dollar amounts in PDF
il y a 1 an
Immanuel Onyeka
b10b1919a2
Download PDFs from estimate view
il y a 1 an
Immanuel Onyeka
536ca8ee87
Assign first two seed estimates to test user
il y a 1 an
Immanuel Onyeka
274ea0581d
Fix duplicate loan_id error
At most one result should exist for each loan stored but not redeclaring
the 'estimate' variable within the seed loop caused the loan entries of
the first estimate to be copied onto the second, which caused an error
while seeding result entries.
il y a 1 an
Immanuel Onyeka
6dad31be22
Fix row decleration bug
il y a 1 an
Immanuel Onyeka
f26b39f093
Add functions for seeding estimates in dev
il y a 1 an
Immanuel Onyeka
fb64597116
Add insert and select queries for user licenses
il y a 1 an
Immanuel Onyeka
987090a927
Create CLI command for reseting database
Also seperate stages of seeding into other functions.
il y a 1 an
Immanuel Onyeka
3b00be6374
Create sample users in seed function
il y a 1 an
Immanuel Onyeka
14efd4937b
Add seed function for addresses and branches
il y a 1 an
Immanuel Onyeka
d4a5e4cc4d
Remove vue component for PDF generation
Also structure CLI functions to allow for `skouter dev seed` command.
il y a 1 an
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.
il y a 1 an
Immanuel Onyeka
1932ac1c38
correct file misnaming
il y a 1 an
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.
il y a 1 an
Immanuel Onyeka
cae74385dd
Style report table
il y a 1 an
Immanuel Onyeka
def8d767f2
Cache report view at startup
il y a 1 an
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.
il y a 1 an
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.
il y a 1 an
Immanuel Onyeka
e77294f777
Save changed user address in database
il y a 1 an
Immanuel Onyeka
1d7163f5ae
Render and select address from dropdown
il y a 1 an
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.
il y a 1 an
Immanuel Onyeka
b3599fbe0e
Add password reset endpoint
il y a 1 an
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.
il y a 1 an
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
il y a 1 an
Immanuel Onyeka
6e5cf4b5cd
Fetch and upload letterhead from settings view
il y a 1 an
Immanuel Onyeka
7fa03cc393
Add user letterhead endpoints
il y a 1 an
Immanuel Onyeka
8c5c94da5d
Make GET and POST requests to user avatar endpoints
il y a 1 an
Immanuel Onyeka
290746a438
Dislay PDF mockup as test page
il y a 1 an
Immanuel Onyeka
da111e4c06
Add deleteFeeTemp endpoint to delete fees
il y a 1 an
Immanuel Onyeka
366647310f
Fix error caused by negative percentages in fees
il y a 1 an
Immanuel Onyeka
daaff1c318
Add endpoint to create a new fee
il y a 1 an
Immanuel Onyeka
26850a0e73
Also retrieve loan type and borrower in getEstimate
il y a 1 an
Immanuel Onyeka
a2b2ca2ca2
Fix estimate_results SQL error
il y a 1 an
Immanuel Onyeka
ae5247bc71
Add insert and select SQL queries for Results
il y a 1 an
Immanuel Onyeka
5368bc6227
Calculate estimate result values with []Loans loop
il y a 1 an
Immanuel Onyeka
c7158bd863
Insert MI and fees with insert functions
il y a 1 an
Immanuel Onyeka
6d98b7b47a
Calculate estimate summary values in backend
il y a 1 an
Immanuel Onyeka
b3cf840f88
Loop over indices to avoid copying values
il y a 1 an
Immanuel Onyeka
26cd32c82a
Ensure new estimates have correct user IDs
il y a 1 an
Immanuel Onyeka
3a5477760d
Fetch user's estimates list from estimates.vue
il y a 1 an
Immanuel Onyeka
af5c204eb6
Save estimates to database from summary view
il y a 1 an
Immanuel Onyeka
bbb7bf5f1e
Add mandatory FHA MIP as a fee
il y a 1 an