File size: 1,777 Bytes
13971d4
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# AI Money Flow client portal

Public client-facing loan intake and dashboard flow for Netlify.

## Route map

- `/` - premium AI Money Flow landing page rendered by the Vite/React app.
- `/start.html` - client route choice: `Eraisikule` or `Ettevõttele`.
- `/intake-personal.html` - personal loan intake form.
- `/intake-company.html` - company financing intake form with company details and extra uploads.
- `/submitted.html` - confirmation page after form submission.
- `/dashboard.html` - client-visible case dashboard.

## Netlify build settings

The repo uses `netlify.toml`:

```toml

[build]

  command = "npm run build && mkdir -p dist/assets && cp -r assets/* dist/assets/ && cp -f start.html intake-personal.html intake-company.html submitted.html dashboard.html dist/"

  publish = "dist"



[build.environment]

  NODE_VERSION = "20"

```

The Vite build creates `dist/index.html`. The command then copies the static client flow pages and shared assets into `dist`.

## Netlify Forms

Two Netlify Forms are registered in the static HTML:

- `aimoneyflow-personal-intake`
- `aimoneyflow-company-intake`

Both forms use:

- `method="POST"`
- `action="/submitted.html"`
- `data-netlify="true"`
- hidden `form-name`
- `netlify-honeypot="bot-field"`
- `enctype="multipart/form-data"` for file uploads

## Local behavior

On localhost or file preview, `assets/app.js` stores demo case data in `localStorage` and redirects to `submitted.html`. In Netlify production, the script lets the native Netlify form POST continue while still saving the demo data for the client dashboard when available.

## Public branding

Public pages show only `AI Money Flow`. Internal or old project names are not used in the client-facing flow.