Immanuel Onyeka
eb91253e97
Fix errors
6 months ago
Immanuel Onyeka
33e71edc8e
Fix Stripe webhook errors
7 months ago
Immanuel Onyeka
9f31c024f5
Add code for users to unsubscribe from settings
Also embeds /assets, /migrations, and views/ directories in Go binary to
make deployment simpler.
7 months ago
Immanuel Onyeka
bb7b9fdbe0
Prompt user before unsubscribing
7 months ago
Immanuel Onyeka
1079af08d7
Allow newsletter subscription changes
Users can change their newsletter subscription status in the settings
view.
7 months ago
Immanuel Onyeka
171b508dee
Had billing prompt users with subscribed status
Hiding based on user status and not only billing details allows easier
testing with fake users.
7 months ago
Immanuel Onyeka
586533ec5c
Add page for free trial
7 months ago
Immanuel Onyeka
1199bc6d08
Show billing prompt if there are payment errors
automatically prompts for a new card if past payments were
unsuccessful. Does not actually disable API access.
8 months ago
Immanuel Onyeka
05caf69330
Fix style errors caused by Grav move
8 months ago
Immanuel Onyeka
d28d60e729
Delete files unused by view
10 months ago
Immanuel Onyeka
ea8b32df2e
Correct letterhead rendering when avatar is missing
1 year ago
Immanuel Onyeka
bb1f7eaa70
Delete templates with remove button in view
1 year ago
Immanuel Onyeka
94390b1aa3
List and display template details in view
1 year ago
Immanuel Onyeka
48fa487fea
Handle missing avatar and letterhead in PDF
1 year ago
Immanuel Onyeka
27de7ea416
Allow users to delete saved estimates
1 year ago
Immanuel Onyeka
69009f286f
Make dollar amounts more readable
1 year ago
Immanuel Onyeka
67479195e2
Fix monthly MI calculation
1 year ago
Immanuel Onyeka
7ce7c9300e
Calculate new estimate results server side
1 year ago
Immanuel Onyeka
b10b1919a2
Download PDFs from estimate view
1 year ago
Immanuel Onyeka
536ca8ee87
Assign first two seed estimates to test user
1 year ago
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.
1 year ago
Immanuel Onyeka
6dad31be22
Fix row decleration bug
1 year ago
Immanuel Onyeka
d4a5e4cc4d
Remove vue component for PDF generation
Also structure CLI functions to allow for `skouter dev seed` command.
1 year ago
Immanuel Onyeka
cae74385dd
Style report table
1 year ago
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.
1 year ago
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.
1 year ago
Immanuel Onyeka
e77294f777
Save changed user address in database
1 year ago
Immanuel Onyeka
1d7163f5ae
Render and select address from dropdown
1 year ago
Immanuel Onyeka
6566e1a4e9
Fix type and syntax errors
1 year ago
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.
1 year ago
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.
1 year ago
Immanuel Onyeka
308bfb87a9
Create mockup html for PDF generation
vue-html2pdf appears unmaintained and hacky so it's being avoided.
1 year ago
Immanuel Onyeka
03fc18ff7b
Use composition API in sidebar.vue
1 year ago
Immanuel Onyeka
b3599fbe0e
Add password reset endpoint
1 year ago
Immanuel Onyeka
24f34e47db
Allow password reset requests from settings.vue
1 year ago
Immanuel Onyeka
268227203f
Cancel token refresh if it is currently invalid
1 year ago
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.
1 year ago
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
1 year ago
Immanuel Onyeka
5c919b8f22
Display letterhead as 400x200 pixel image
1 year ago
Immanuel Onyeka
6e5cf4b5cd
Fetch and upload letterhead from settings view
1 year ago
Immanuel Onyeka
7fa03cc393
Add user letterhead endpoints
1 year ago
Immanuel Onyeka
8c5c94da5d
Make GET and POST requests to user avatar endpoints
1 year ago
Immanuel Onyeka
b9d0da2e90
Render and resize new avatar selection
1 year ago
Immanuel Onyeka
da111e4c06
Add deleteFeeTemp endpoint to delete fees
1 year ago
Immanuel Onyeka
366647310f
Fix error caused by negative percentages in fees
1 year ago
Immanuel Onyeka
daaff1c318
Add endpoint to create a new fee
1 year ago
Immanuel Onyeka
4558d1b4cc
Show currency formated summary in estimates.vue
1 year ago
Immanuel Onyeka
26850a0e73
Also retrieve loan type and borrower in getEstimate
1 year ago
Immanuel Onyeka
a2b2ca2ca2
Fix estimate_results SQL error
1 year ago
Immanuel Onyeka
5368bc6227
Calculate estimate result values with []Loans loop
1 year ago