Skip to content

Commit 070dc55

Browse files
neethika12Neethika Prathigadapa
andauthored
feat(auth): improve frontend auth UX (#8)
* feat(auth): redesign access experience with enterprise UX (ref Sentinent-AI/Sentinent#12) * feat(auth): stabilize login/signup UX and error handling (ref Sentinent-AI/Sentinent#12) --------- Co-authored-by: Neethika Prathigadapa <neethikaprathigadapa@Neethikas-MacBook-Air.local>
1 parent 403f8d6 commit 070dc55

9 files changed

Lines changed: 752 additions & 74 deletions

File tree

angular.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,9 @@
8080
},
8181
"serve": {
8282
"builder": "@angular/build:dev-server",
83+
"options": {
84+
"proxyConfig": "proxy.conf.json"
85+
},
8386
"configurations": {
8487
"production": {
8588
"buildTarget": "sentinent-frontend:build:production"
@@ -113,4 +116,4 @@
113116
}
114117
}
115118
}
116-
}
119+
}

proxy.conf.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"/api": {
3+
"target": "http://127.0.0.1:8080",
4+
"secure": false,
5+
"changeOrigin": true
6+
}
7+
}

src/app/app.routes.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
import { Routes } from '@angular/router';
22
import { Login } from './components/login/login';
3-
import { Signup } from './components/signup/signup';
43
import { authGuard } from './guards/auth-guard';
54
import { CreateWorkspace } from './components/workspace/create-workspace';
65

76
export const routes: Routes = [
87
{ path: 'login', component: Login },
9-
{ path: 'signup', component: Signup },
8+
{ path: 'signup', component: Login },
109
{
1110
path: 'dashboard',
1211
loadComponent: () => import('./components/dashboard/dashboard').then(m => m.Dashboard),

0 commit comments

Comments
 (0)