Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/default model #308

Open
wants to merge 675 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
675 commits
Select commit Hold shift + click to select a range
afaf72a
add prompt id copy button
Frank-Xie-SmartNews May 10, 2024
1bbec69
Merge pull request #228 from smartnews/set-up
Frank-Xie-SmartNews May 10, 2024
518de22
limit login system
Frank-Xie-SmartNews May 10, 2024
5a64d53
Merge pull request #230 from smartnews/set-up
Frank-Xie-SmartNews May 10, 2024
d966a45
limit login system
Frank-Xie-SmartNews May 10, 2024
692778c
Merge pull request #232 from smartnews/set-up
Frank-Xie-SmartNews May 10, 2024
e495d47
remove unused swagger
Frank-Xie-SmartNews May 11, 2024
5394e92
remove unused swagger
Frank-Xie-SmartNews May 11, 2024
2d32f96
Merge pull request #234 from smartnews/set-up
Frank-Xie-SmartNews May 11, 2024
02dcdbd
remove unused swagger
Frank-Xie-SmartNews May 11, 2024
334d2e2
Merge pull request #236 from smartnews/set-up
Frank-Xie-SmartNews May 11, 2024
9862521
remove unused swagger
Frank-Xie-SmartNews May 11, 2024
495a208
Merge pull request #238 from smartnews/set-up
Frank-Xie-SmartNews May 11, 2024
e5e84b8
remove unused swagger
Frank-Xie-SmartNews May 11, 2024
5966a0b
Merge pull request #240 from smartnews/set-up
Frank-Xie-SmartNews May 11, 2024
bb637f2
add debug log
Frank-Xie-SmartNews May 13, 2024
5ccedf9
Merge pull request #242 from smartnews/set-up
Frank-Xie-SmartNews May 13, 2024
83b6313
update api-key prefix from pez_ to llm_ops_
Frank-Xie-SmartNews May 13, 2024
4fabd90
Clear all local storage when login out to avoid use old user id when …
Frank-Xie-SmartNews May 13, 2024
00a2ec7
Merge pull request #244 from smartnews/set-up
Frank-Xie-SmartNews May 13, 2024
b5a549d
update project landing page from dashboard to prompt
Frank-Xie-SmartNews May 14, 2024
2a5c428
Merge pull request #247 from smartnews/set-up
Frank-Xie-SmartNews May 14, 2024
c7be80a
update sideNav order
Frank-Xie-SmartNews May 14, 2024
4221455
Merge pull request #249 from smartnews/set-up
Frank-Xie-SmartNews May 14, 2024
c8c1f4b
update sideNav order
Frank-Xie-SmartNews May 14, 2024
d14e72e
Merge pull request #250 from smartnews/set-up
Frank-Xie-SmartNews May 14, 2024
b8ef41d
update sideNav order
Frank-Xie-SmartNews May 14, 2024
f2b867a
Merge pull request #251 from smartnews/set-up
Frank-Xie-SmartNews May 14, 2024
65678d4
update sideNav order
Frank-Xie-SmartNews May 14, 2024
09ec831
Merge pull request #252 from smartnews/set-up
Frank-Xie-SmartNews May 14, 2024
89c2723
fix prompt detail no project id issue
Frank-Xie-SmartNews May 14, 2024
a78abbd
Merge pull request #253 from smartnews/set-up
Frank-Xie-SmartNews May 14, 2024
4561e17
fix prompt detail no project id issue
Frank-Xie-SmartNews May 14, 2024
3452075
Merge pull request #254 from smartnews/set-up
Frank-Xie-SmartNews May 14, 2024
9a82341
fix prompt detail no project id issue
Frank-Xie-SmartNews May 14, 2024
ecaec5e
Merge pull request #255 from smartnews/set-up
Frank-Xie-SmartNews May 14, 2024
81921ff
fix prompt detail no project id issue
Frank-Xie-SmartNews May 14, 2024
e568a03
Merge pull request #256 from smartnews/set-up
Frank-Xie-SmartNews May 14, 2024
7290119
fix prompt detail no project id issue
Frank-Xie-SmartNews May 14, 2024
06dc96f
Merge pull request #257 from smartnews/set-up
Frank-Xie-SmartNews May 14, 2024
db3cbb5
fix prompt detail no project id issue
Frank-Xie-SmartNews May 14, 2024
9abb596
Merge pull request #258 from smartnews/set-up
Frank-Xie-SmartNews May 14, 2024
7358ec5
fix prompt detail no project id issue
Frank-Xie-SmartNews May 14, 2024
a64bef5
Merge pull request #259 from smartnews/set-up
Frank-Xie-SmartNews May 14, 2024
4122c59
fix prompt detail no project id issue
Frank-Xie-SmartNews May 14, 2024
63c5e1c
Merge pull request #260 from smartnews/set-up
Frank-Xie-SmartNews May 14, 2024
9bd9b03
fix prompt detail no project id issue
Frank-Xie-SmartNews May 14, 2024
2949f82
fix prompt detail no project id issue
Frank-Xie-SmartNews May 14, 2024
7739275
Merge pull request #261 from smartnews/set-up
Frank-Xie-SmartNews May 14, 2024
0ebc3a6
fix prompt detail no project id issue
Frank-Xie-SmartNews May 14, 2024
eb43d4f
fix prompt detail no project id issue
Frank-Xie-SmartNews May 14, 2024
83d428f
Merge pull request #262 from smartnews/set-up
Frank-Xie-SmartNews May 14, 2024
ae0f99d
add gpt-4o
Frank-Xie-SmartNews May 14, 2024
f633c36
Merge pull request #263 from smartnews/set-up
Frank-Xie-SmartNews May 14, 2024
33d5e45
fix usePrompts bug
Frank-Xie-SmartNews May 15, 2024
ba52887
Merge pull request #266 from smartnews/set-up
Frank-Xie-SmartNews May 15, 2024
c7f3da5
add gpt-4o
Frank-Xie-SmartNews May 15, 2024
af4f040
add new API: get all prompts in one specific project
Frank-Xie-SmartNews May 15, 2024
4a27c48
Merge pull request #267 from smartnews/set-up
Frank-Xie-SmartNews May 15, 2024
9f3bbc3
fix side nav active issue
Frank-Xie-SmartNews May 15, 2024
2d47e68
Merge pull request #268 from smartnews/set-up
Frank-Xie-SmartNews May 15, 2024
6dd0e69
update root html title
Frank-Xie-SmartNews May 15, 2024
b0a65dd
update ingress to separate ui and api
Frank-Xie-SmartNews May 15, 2024
204d47c
Merge pull request #269 from smartnews/set-up
Frank-Xie-SmartNews May 15, 2024
ae8e0a2
update BASE_API_URL
Frank-Xie-SmartNews May 15, 2024
faeae92
Merge pull request #270 from smartnews/set-up
Frank-Xie-SmartNews May 15, 2024
4380f52
update BASE_API_URL
Frank-Xie-SmartNews May 15, 2024
eb8cc52
Merge pull request #271 from smartnews/set-up
Frank-Xie-SmartNews May 15, 2024
0af9950
remove supertoken auth
Frank-Xie-SmartNews May 15, 2024
bb5d2b9
Merge pull request #273 from smartnews/set-up
Frank-Xie-SmartNews May 15, 2024
c6bcf5c
disable supertoken
Frank-Xie-SmartNews May 16, 2024
6ef84f2
Merge pull request #274 from smartnews/set-up
Frank-Xie-SmartNews May 16, 2024
bf679cb
disable supertoken
Frank-Xie-SmartNews May 16, 2024
9740d6b
Merge pull request #275 from smartnews/set-up
Frank-Xie-SmartNews May 16, 2024
d0afc2c
disable supertoken
Frank-Xie-SmartNews May 16, 2024
b785e66
add Access-Control-Allow-Origin: *
Frank-Xie-SmartNews May 16, 2024
2921ed6
Merge pull request #276 from smartnews/set-up
Frank-Xie-SmartNews May 16, 2024
2dab943
remove supertoken from config schema
Frank-Xie-SmartNews May 16, 2024
9302e61
remove supertoken from nestjs bootstrap
Frank-Xie-SmartNews May 16, 2024
08b950c
Merge pull request #277 from smartnews/set-up
Frank-Xie-SmartNews May 16, 2024
803b367
remove supertoken from nestjs bootstrap
Frank-Xie-SmartNews May 16, 2024
582ef30
Merge pull request #278 from smartnews/set-up
Frank-Xie-SmartNews May 16, 2024
9507fb7
remove backend authN with supertoken
Frank-Xie-SmartNews May 16, 2024
682dc09
Merge pull request #279 from smartnews/set-up
Frank-Xie-SmartNews May 16, 2024
88aff62
remove FE authN with supertoken
Frank-Xie-SmartNews May 16, 2024
7a19efb
update auth guard logic
Frank-Xie-SmartNews May 16, 2024
2a28868
Merge pull request #280 from smartnews/set-up
Frank-Xie-SmartNews May 16, 2024
db19304
update auth guard logic
Frank-Xie-SmartNews May 16, 2024
c6a4b21
Merge pull request #281 from smartnews/set-up
Frank-Xie-SmartNews May 16, 2024
6e22052
get user info from okta
Frank-Xie-SmartNews May 16, 2024
57e2854
Merge pull request #282 from smartnews/set-up
Frank-Xie-SmartNews May 16, 2024
7085667
remove UserMetadata
Frank-Xie-SmartNews May 16, 2024
7039935
Merge pull request #283 from smartnews/set-up
Frank-Xie-SmartNews May 16, 2024
b1bdf99
remove UserMetadata
Frank-Xie-SmartNews May 16, 2024
449e54c
Merge pull request #284 from smartnews/set-up
Frank-Xie-SmartNews May 16, 2024
60edd87
remove UserMetadata
Frank-Xie-SmartNews May 16, 2024
078cb5d
Merge pull request #285 from smartnews/set-up
Frank-Xie-SmartNews May 16, 2024
97bc349
remove supertoken service
Frank-Xie-SmartNews May 16, 2024
d0ce053
Merge pull request #286 from smartnews/set-up
Frank-Xie-SmartNews May 16, 2024
919b7b2
remove supertoken service
Frank-Xie-SmartNews May 16, 2024
6ed4a44
Merge pull request #287 from smartnews/set-up
Frank-Xie-SmartNews May 16, 2024
cd9c2b5
remove supertoken service
Frank-Xie-SmartNews May 16, 2024
278d225
Merge pull request #288 from smartnews/set-up
Frank-Xie-SmartNews May 16, 2024
1c90029
add debug log
Frank-Xie-SmartNews May 17, 2024
e7302b9
Merge pull request #289 from smartnews/set-up
Frank-Xie-SmartNews May 17, 2024
86a95c9
add get user info from okta
Frank-Xie-SmartNews May 17, 2024
626deb5
Merge pull request #290 from smartnews/set-up
Frank-Xie-SmartNews May 17, 2024
2f48d08
add get user info from okta
Frank-Xie-SmartNews May 17, 2024
89bfaa6
add get user info from okta
Frank-Xie-SmartNews May 17, 2024
67977af
Merge pull request #291 from smartnews/set-up
Frank-Xie-SmartNews May 17, 2024
7aa4c8d
add get user info from okta
Frank-Xie-SmartNews May 17, 2024
1b1648f
Merge pull request #292 from smartnews/set-up
Frank-Xie-SmartNews May 17, 2024
7b35e23
add get user info from okta
Frank-Xie-SmartNews May 17, 2024
3c61c84
Merge pull request #293 from smartnews/set-up
Frank-Xie-SmartNews May 17, 2024
10405dd
add get user info from okta
Frank-Xie-SmartNews May 17, 2024
93ce718
add get user info from okta
Frank-Xie-SmartNews May 17, 2024
1d012c4
Merge pull request #294 from smartnews/set-up
Frank-Xie-SmartNews May 17, 2024
91901fc
remove debug log
Frank-Xie-SmartNews May 17, 2024
52049af
Merge pull request #295 from smartnews/set-up
Frank-Xie-SmartNews May 17, 2024
16cea5c
add debug log
Frank-Xie-SmartNews May 17, 2024
5449ae0
Merge pull request #296 from smartnews/set-up
Frank-Xie-SmartNews May 17, 2024
61469ff
add debug log
Frank-Xie-SmartNews May 17, 2024
d695d4a
Merge pull request #297 from smartnews/set-up
Frank-Xie-SmartNews May 17, 2024
a6ac782
add service account sign up / in
Frank-Xie-SmartNews May 19, 2024
d50655d
add get user by email graphql
Frank-Xie-SmartNews May 19, 2024
c69ced3
add debug log
Frank-Xie-SmartNews May 19, 2024
5b6ce96
add get user by email graphql
Frank-Xie-SmartNews May 19, 2024
5caac25
add get user by email graphql
Frank-Xie-SmartNews May 19, 2024
051bc15
Merge pull request #298 from smartnews/set-up
Frank-Xie-SmartNews May 19, 2024
0aec5bc
add get user by email graphql
Frank-Xie-SmartNews May 20, 2024
0ce435e
add get user by email graphql
Frank-Xie-SmartNews May 20, 2024
7da4b9b
add get user by email graphql
Frank-Xie-SmartNews May 20, 2024
47a9533
add okta sso login situation
Frank-Xie-SmartNews May 20, 2024
54e39f1
Merge pull request #299 from smartnews/set-up
Frank-Xie-SmartNews May 20, 2024
f2a5d66
add okta sso login situation
Frank-Xie-SmartNews May 20, 2024
408a297
Merge pull request #300 from smartnews/set-up
Frank-Xie-SmartNews May 20, 2024
3de700d
add okta sso login situation
Frank-Xie-SmartNews May 21, 2024
1ce3e90
Merge pull request #301 from smartnews/set-up
Frank-Xie-SmartNews May 21, 2024
75be16c
add okta sso login situation
Frank-Xie-SmartNews May 21, 2024
14dff25
Merge pull request #302 from smartnews/set-up
Frank-Xie-SmartNews May 21, 2024
4902c48
add okta sso login situation
Frank-Xie-SmartNews May 21, 2024
0621021
Merge pull request #303 from smartnews/set-up
Frank-Xie-SmartNews May 21, 2024
251f8c0
add okta sso login situation
Frank-Xie-SmartNews May 21, 2024
3ba6783
Merge pull request #304 from smartnews/set-up
Frank-Xie-SmartNews May 21, 2024
cda1c45
add okta sso login situation
Frank-Xie-SmartNews May 21, 2024
9b2a71b
Merge pull request #305 from smartnews/set-up
Frank-Xie-SmartNews May 21, 2024
3447ce0
add okta sso login situation
Frank-Xie-SmartNews May 21, 2024
5820f89
Merge pull request #306 from smartnews/set-up
Frank-Xie-SmartNews May 21, 2024
c2b4a08
add okta sso login situation
Frank-Xie-SmartNews May 21, 2024
dbb32dc
Merge pull request #307 from smartnews/set-up
Frank-Xie-SmartNews May 21, 2024
ec7444c
add okta sso login situation
Frank-Xie-SmartNews May 21, 2024
2637c35
Merge pull request #308 from smartnews/set-up
Frank-Xie-SmartNews May 21, 2024
ccddbda
add okta sso login situation
Frank-Xie-SmartNews May 21, 2024
2265268
Merge pull request #309 from smartnews/set-up
Frank-Xie-SmartNews May 21, 2024
44f6cc0
add okta sso login situation
Frank-Xie-SmartNews May 21, 2024
6991ea6
Merge pull request #310 from smartnews/set-up
Frank-Xie-SmartNews May 21, 2024
8a082af
add okta sso login situation
Frank-Xie-SmartNews May 21, 2024
55de6db
Merge pull request #311 from smartnews/set-up
Frank-Xie-SmartNews May 21, 2024
3f92af4
add okta sso login situation
Frank-Xie-SmartNews May 21, 2024
769465a
Merge pull request #312 from smartnews/set-up
Frank-Xie-SmartNews May 21, 2024
617dc80
add okta sso login situation
Frank-Xie-SmartNews May 21, 2024
fa03669
Merge pull request #313 from smartnews/set-up
Frank-Xie-SmartNews May 21, 2024
0e76d9b
add okta sso login situation
Frank-Xie-SmartNews May 21, 2024
49afa53
Merge pull request #314 from smartnews/set-up
Frank-Xie-SmartNews May 21, 2024
d6c4da8
add service account login
Frank-Xie-SmartNews May 21, 2024
5d0dfdb
add service account login
Frank-Xie-SmartNews May 21, 2024
346eb36
Merge pull request #315 from smartnews/set-up
Frank-Xie-SmartNews May 21, 2024
c9ba47f
add service account login
Frank-Xie-SmartNews May 21, 2024
e024b30
Merge pull request #316 from smartnews/set-up
Frank-Xie-SmartNews May 21, 2024
3f79670
add service account login
Frank-Xie-SmartNews May 21, 2024
aca7551
Merge pull request #317 from smartnews/set-up
Frank-Xie-SmartNews May 21, 2024
227b286
add service account login
Frank-Xie-SmartNews May 21, 2024
0e1e170
add service account login
Frank-Xie-SmartNews May 21, 2024
bf4b6a2
Merge pull request #318 from smartnews/set-up
Frank-Xie-SmartNews May 21, 2024
1b610b7
add service account login
Frank-Xie-SmartNews May 21, 2024
157a678
Merge pull request #319 from smartnews/set-up
Frank-Xie-SmartNews May 21, 2024
8d552af
add service account login
Frank-Xie-SmartNews May 22, 2024
cbcdf7f
Merge pull request #320 from smartnews/set-up
Frank-Xie-SmartNews May 22, 2024
8c04449
add service account login
Frank-Xie-SmartNews May 22, 2024
d5607d8
Merge pull request #321 from smartnews/set-up
Frank-Xie-SmartNews May 22, 2024
58601c0
add service account login
Frank-Xie-SmartNews May 22, 2024
53b8735
Merge pull request #322 from smartnews/set-up
Frank-Xie-SmartNews May 22, 2024
ef2e517
add service account login
Frank-Xie-SmartNews May 22, 2024
6fd7a20
Merge pull request #323 from smartnews/set-up
Frank-Xie-SmartNews May 22, 2024
b26dcbf
add service account login
Frank-Xie-SmartNews May 22, 2024
fe0719f
Merge pull request #325 from smartnews/set-up
Frank-Xie-SmartNews May 22, 2024
cad3289
add service account login
Frank-Xie-SmartNews May 22, 2024
36dc043
Merge pull request #326 from smartnews/set-up
Frank-Xie-SmartNews May 22, 2024
4c4cff3
add service account login
Frank-Xie-SmartNews May 22, 2024
0c1d059
Merge pull request #327 from smartnews/set-up
Frank-Xie-SmartNews May 22, 2024
0b0e1bc
add service account login
Frank-Xie-SmartNews May 22, 2024
552bcff
Merge pull request #328 from smartnews/set-up
Frank-Xie-SmartNews May 22, 2024
8c5dd2f
add service account login
Frank-Xie-SmartNews May 22, 2024
93caf9d
Merge pull request #329 from smartnews/set-up
Frank-Xie-SmartNews May 22, 2024
53b2b82
add service account login
Frank-Xie-SmartNews May 22, 2024
affc280
Merge pull request #330 from smartnews/set-up
Frank-Xie-SmartNews May 22, 2024
2695bab
add service account login
Frank-Xie-SmartNews May 22, 2024
cac6d11
Merge pull request #331 from smartnews/set-up
Frank-Xie-SmartNews May 22, 2024
292ff39
add service account login
Frank-Xie-SmartNews May 22, 2024
7b82499
add service account login
Frank-Xie-SmartNews May 22, 2024
4e03ea9
Merge pull request #332 from smartnews/set-up
Frank-Xie-SmartNews May 22, 2024
3184220
add okta for prd
Frank-Xie-SmartNews May 22, 2024
7f39e65
Merge pull request #333 from smartnews/set-up
Frank-Xie-SmartNews May 22, 2024
88a5da7
add okta for prd
Frank-Xie-SmartNews May 22, 2024
7d32432
add okta for prd
Frank-Xie-SmartNews May 22, 2024
e2a6756
add okta for prd
Frank-Xie-SmartNews May 23, 2024
d1d4a71
Merge pull request #337 from smartnews/set-up
Frank-Xie-SmartNews May 23, 2024
b667036
add okta for prd
Frank-Xie-SmartNews May 23, 2024
daac0f9
Merge pull request #339 from smartnews/set-up
Frank-Xie-SmartNews May 23, 2024
16d9890
add okta for prd
Frank-Xie-SmartNews May 23, 2024
7b36a80
Merge pull request #341 from smartnews/set-up
Frank-Xie-SmartNews May 23, 2024
0c1f6cb
add okta for prd
Frank-Xie-SmartNews May 23, 2024
761f4b2
Merge pull request #343 from smartnews/set-up
Frank-Xie-SmartNews May 23, 2024
394e727
add okta for prd
Frank-Xie-SmartNews May 24, 2024
75e2dcc
update add member logic
Frank-Xie-SmartNews May 24, 2024
0d36461
Merge pull request #345 from smartnews/set-up
Frank-Xie-SmartNews May 24, 2024
e0c404e
update add member logic
Frank-Xie-SmartNews May 24, 2024
bb59eaa
Merge pull request #346 from smartnews/set-up
Frank-Xie-SmartNews May 24, 2024
1c92bbd
update add member logic
Frank-Xie-SmartNews May 24, 2024
c2a5abc
Merge pull request #347 from smartnews/set-up
Frank-Xie-SmartNews May 24, 2024
a88de83
update add member logic
Frank-Xie-SmartNews May 24, 2024
37e4a11
Merge pull request #349 from smartnews/set-up
Frank-Xie-SmartNews May 24, 2024
af32d9d
update add member logic
Frank-Xie-SmartNews May 24, 2024
905db3c
Merge pull request #350 from smartnews/set-up
Frank-Xie-SmartNews May 24, 2024
b9642f0
add get specific prompt all versions API
Frank-Xie-SmartNews May 27, 2024
47d9147
Merge pull request #352 from smartnews/set-up
Frank-Xie-SmartNews May 28, 2024
791735e
add get specific prompt all versions API
Frank-Xie-SmartNews May 28, 2024
920c08f
Merge pull request #353 from smartnews/set-up
Frank-Xie-SmartNews May 28, 2024
58b9757
add get specific prompt all versions API
Frank-Xie-SmartNews May 28, 2024
c60ea85
Merge pull request #354 from smartnews/set-up
Frank-Xie-SmartNews May 28, 2024
dbc1f66
add commit prompt version API
Frank-Xie-SmartNews May 28, 2024
89f2b5b
Merge pull request #355 from smartnews/set-up
Frank-Xie-SmartNews May 28, 2024
466d716
add commit prompt version API schema
Frank-Xie-SmartNews May 28, 2024
8e7dce3
Merge pull request #356 from smartnews/set-up
Frank-Xie-SmartNews May 28, 2024
124b6b8
remove service account login
Frank-Xie-SmartNews May 29, 2024
aa557df
Merge pull request #357 from smartnews/set-up
Frank-Xie-SmartNews May 29, 2024
879405c
remove service account login
Frank-Xie-SmartNews May 29, 2024
2550e1c
Merge pull request #359 from smartnews/set-up
Frank-Xie-SmartNews May 29, 2024
bf45bbe
fix auth provider bug
frank-xie-git Jul 10, 2024
257ebc0
add gpt-4o-mini model
anandjoshisn Jul 23, 2024
07c043e
Merge pull request #361 from smartnews/chore/add-gpt4omini
anandjoshisn Jul 23, 2024
87d80f1
create super admin account
anandjoshisn Jul 24, 2024
4c7a87f
keep original org name
anandjoshisn Jul 24, 2024
c7f1b65
Revert "keep original org name"
anandjoshisn Jul 24, 2024
3d7d201
Merge pull request #363 from smartnews/feature/create-superadmin-org
anandjoshisn Jul 25, 2024
a7bb8d5
optimize code
frank-xie-git Jul 25, 2024
548e251
Merge pull request #364 from smartnews/optimize-code
Frank-Xie-SmartNews Jul 25, 2024
52b2a99
change order of default models
anandjoshisn Jul 25, 2024
b605462
Merge pull request #366 from smartnews/chore/update-default-model-mini
anandjoshisn Jul 26, 2024
c5cb9d5
fix default model
anandjoshisn Jul 26, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
491 changes: 491 additions & 0 deletions .circleci/config.yml

Large diffs are not rendered by default.

18 changes: 14 additions & 4 deletions apps/console/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,24 @@
FROM node:20-alpine as builder
WORKDIR /app
COPY . .
RUN npm install
RUN npx nx run console:build


FROM nginx:1.20-alpine
LABEL org.opencontainers.image.source https://github.com/pezzolabs/pezzo

RUN apk add --update nodejs
RUN apk add --update nodejs npm

WORKDIR /app

COPY dist/apps/console/nginx.conf /etc/nginx/conf.d/default.conf
COPY dist/apps/console .
# update file path based on real path
COPY --from=builder app/dist/apps/console/nginx.conf /etc/nginx/conf.d/default.conf
#COPY apps/dist/apps/console/nginx.conf /etc/nginx/conf.d/default.conf
COPY --from=builder app/dist/apps/console .
#COPY apps/dist/apps/console .

RUN chmod +x scripts/entrypoint.sh

ENTRYPOINT ["./scripts/entrypoint.sh"]
CMD ["nginx", "-g", "daemon off;"]
CMD ["nginx", "-g", "daemon off;"]
7 changes: 4 additions & 3 deletions apps/console/nginx.conf
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
server {
listen 8080;
listen [::]:4200;
listen 4200;
root /app;
location / {
try_files $uri /index.html;
try_files $uri /index.html;
}
}
}
2 changes: 1 addition & 1 deletion apps/console/scripts/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
set -e;
node /app/scripts/inject-variables.js /app/index.html;
exec "$@";
exec "$@";
197 changes: 99 additions & 98 deletions apps/console/src/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import { Toaster } from "@pezzo/ui";

// Auth
import { QueryClientProvider } from "@tanstack/react-query";
import { SuperTokensWrapper } from "supertokens-auth-react";
import { SessionAuth } from "supertokens-auth-react/recipe/session";
import { initSuperTokens } from "./lib/auth/supertokens";
// import { SuperTokensWrapper } from "supertokens-auth-react";
// import { SessionAuth } from "supertokens-auth-react/recipe/session";
// import { initSuperTokens } from "./lib/auth/supertokens";

// Pages
import { EnvironmentsPage } from "./pages/environments/EnvironmentsPage";
Expand Down Expand Up @@ -40,7 +40,8 @@ import { OrgPage } from "./pages/projects/OrgPage";
import { useCurrentOrganization } from "./lib/hooks/useCurrentOrganization";
import { WaitlistWrapper } from "~/pages/WaitlistWrapper";

initSuperTokens();
// use Okta for auth instead of SuperTokens
// initSuperTokens();

if (HOTJAR_SITE_ID && HOTJAR_VERSION) {
hotjar.initialize(Number(HOTJAR_SITE_ID), Number(HOTJAR_VERSION));
Expand All @@ -62,114 +63,114 @@ export function App() {
return (
<div className="relative h-full">
<Toaster />
<SuperTokensWrapper>
<QueryClientProvider client={queryClient}>
{/* Non-authorized routes */}
<Routes>
{/* We don't render the LayoutWrapper for non-authorized routes */}
<QueryClientProvider client={queryClient}>
{/* Non-authorized routes */}
<Routes>
<Route
path="/login/callback/:email"
element={<AuthCallbackPage />}
/>
<Route
path="/login/callback"
element={<AuthCallbackPage />}
/>
<Route path="/admin/login" element={<LoginPage />} />
<Route path="/logout" element={<LogoutPage />} />
</Routes>
{/* Authorized routes */}
<Routes>
<Route
element={
<AuthProvider>
<OptionalIntercomProvider>
<Outlet />
</OptionalIntercomProvider>
</AuthProvider>
}
>
<Route index element={<RootHandler />} />

<Route
path="/login/callback/:providerId"
element={<AuthCallbackPage />}
path="/invitations/:token/accept"
element={
<LayoutWrapper withSideNav={false}>
<AcceptInvitationPage />
</LayoutWrapper>
}
/>
<Route path="/login" element={<LoginPage />} />
<Route path="/logout" element={<LogoutPage />} />
</Routes>
{/* Authorized routes */}
<Routes>

<Route
path="/onboarding"
element={
<SessionAuth>
<AuthProvider>
<OptionalIntercomProvider>
<Outlet />
</OptionalIntercomProvider>
</AuthProvider>
</SessionAuth>
<LayoutWrapper withSideNav={false}>
<WaitlistWrapper>
<OnboardingPage />
</WaitlistWrapper>
</LayoutWrapper>
}
>
<Route index element={<RootHandler />} />

<Route
path="/invitations/:token/accept"
element={
<LayoutWrapper withSideNav={false}>
<AcceptInvitationPage />
</LayoutWrapper>
}
/>
/>

<Route
path="/onboarding"
element={
<LayoutWrapper withSideNav={false}>
{/* Organizations */}
<Route
path="/orgs/:orgId"
element={
<LayoutWrapper withSideNav={false} withOrgSubHeader={true}>
<Suspense fallback={<FullScreenLoader />}>
<WaitlistWrapper>
<OnboardingPage />
<Outlet />
</WaitlistWrapper>
</LayoutWrapper>
}
/>
</Suspense>
</LayoutWrapper>
}
>
<Route index element={<OrgPage />} />
<Route path="members" element={<OrgMembersPage />} />
<Route path="api-keys" element={<OrgApiKeysPage />} />
<Route path="settings" element={<OrgSettingsPage />} />
</Route>

{/* Organizations */}
<Route
path="/orgs/:orgId"
element={
<LayoutWrapper withSideNav={false} withOrgSubHeader={true}>
<Suspense fallback={<FullScreenLoader />}>
{/* In-project routes */}
<Route
path="/projects/:projectId"
element={
<Suspense fallback={<FullScreenLoader />}>
<CurrentPromptProvider>
<RequiredProviderApiKeyModalProvider>
<LayoutWrapper withSideNav={true}>
<WaitlistWrapper>
<Outlet />
</WaitlistWrapper>
</Suspense>
</LayoutWrapper>
}
>
<Route index element={<OrgPage />} />
<Route path="members" element={<OrgMembersPage />} />
<Route path="api-keys" element={<OrgApiKeysPage />} />
<Route path="settings" element={<OrgSettingsPage />} />
</Route>

{/* In-project routes */}
<Route
path="/projects/:projectId"
element={
<Suspense fallback={<FullScreenLoader />}>
<CurrentPromptProvider>
<RequiredProviderApiKeyModalProvider>
<LayoutWrapper withSideNav={true}>
<WaitlistWrapper>
<Outlet />
</WaitlistWrapper>
</LayoutWrapper>
</RequiredProviderApiKeyModalProvider>
</CurrentPromptProvider>
</Suspense>
}
>
<Route index element={<DashboardPage />} />
<Route path="environments" element={<EnvironmentsPage />} />
<Route path={"dashboard"} element={<DashboardPage />} />
<Route path={"requests"} element={<RequestsPage />} />
<Route path="prompts" element={<PromptsPage />} />
<Route path="prompts/:promptId" element={<PromptPage />}>
<Route index element={<Navigate to="edit" />} />
<Route
index
path="edit"
element={
<EditorProvider>
<PromptTesterProvider>
<PromptEditView />
</PromptTesterProvider>
</EditorProvider>
}
/>
<Route path="versions" element={<PromptVersionsView />} />
</Route>
</LayoutWrapper>
</RequiredProviderApiKeyModalProvider>
</CurrentPromptProvider>
</Suspense>
}
>
// TODO: decide if need DashboardPage or not, and change the index page to PromptPage
<Route index element={<PromptsPage />} />
<Route path="environments" element={<EnvironmentsPage />} />
<Route path={"dashboard"} element={<DashboardPage />} />
<Route path={"requests"} element={<RequestsPage />} />
<Route path="prompts" element={<PromptsPage />} />
<Route path="prompts/:promptId" element={<PromptPage />}>
<Route index element={<Navigate to="edit" />} />
<Route
index
path="edit"
element={
<EditorProvider>
<PromptTesterProvider>
<PromptEditView />
</PromptTesterProvider>
</EditorProvider>
}
/>
<Route path="versions" element={<PromptVersionsView />} />
</Route>
</Route>
</Routes>
</QueryClientProvider>
</SuperTokensWrapper>
</Route>
</Routes>
</QueryClientProvider>
</div>
);
}
Expand Down
9 changes: 9 additions & 0 deletions apps/console/src/components/layout/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,13 @@ import { UserMenu } from "./UserMenu";
import { useAuthContext } from "~/lib/providers/AuthProvider";
import { ProjectCopy } from "../projects/ProjectCopy";
import { OrgSelector } from "./OrgSelector";
import { usePrompts } from "~/lib/hooks/usePrompts";
import { PromptCopy } from "~/components/prompts/PromptCopy";

export const Header = () => {
const { organization } = useCurrentOrganization();
const { project } = useCurrentProject();
const { prompts } = usePrompts();
const { currentUser } = useAuthContext();

return (
Expand Down Expand Up @@ -62,6 +65,12 @@ export const Header = () => {
)}
</div>

{prompts && (
<div className="text-sm">
<PromptCopy />
</div>
)}

{project && (
<div className="text-sm">
<ProjectCopy />
Expand Down
24 changes: 12 additions & 12 deletions apps/console/src/components/layout/SideNavigation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ export const SideNavigation = () => {

const projectNavigation = [
{
name: "Dashboard",
name: "Prompts",
href: `/projects/${projectId}`,
icon: BarChart2,
icon: BoxIcon,
isActive: (href: string) => window.location.pathname === href,
},
{
Expand All @@ -32,17 +32,17 @@ export const SideNavigation = () => {
isActive: (href: string) => window.location.pathname.startsWith(href),
},
{
name: "Prompts",
href: `/projects/${projectId}/prompts`,
icon: BoxIcon,
isActive: (href: string) => window.location.pathname.startsWith(href),
},
{
name: "Environments",
href: `/projects/${projectId}/environments`,
icon: HardDriveIcon,
name: "Dashboard",
href: `/projects/${projectId}/dashboard`,
icon: BarChart2,
isActive: (href: string) => window.location.pathname.startsWith(href),
},
// {
// name: "Environments",
// href: `/projects/${projectId}/environments`,
// icon: HardDriveIcon,
// isActive: (href: string) => window.location.pathname.startsWith(href),
// },
];

return (
Expand Down Expand Up @@ -111,7 +111,7 @@ export const SideNavigation = () => {
</Link>
<Link
className="mb-2 mt-auto flex cursor-pointer items-center rounded-md p-2 text-sm font-medium text-stone-400 transition-all hover:bg-stone-800 hover:text-white "
to="https://docs.pezzo.ai"
to="https://www.notion.so/User-Manual-d49c811d16ff4f1db415830b3f5a04b2"
target="_blank"
>
<GraduationCapIcon
Expand Down
2 changes: 1 addition & 1 deletion apps/console/src/components/layout/UserMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export const UserMenu = () => {
</div>
</DropdownMenuLabel>
<DropdownMenuSeparator />
<Link to="https://docs.pezzo.ai" target="_blank">
<Link to="https://www.notion.so/User-Manual-d49c811d16ff4f1db415830b3f5a04b2" target="_blank">
<DropdownMenuItem>
<GraduationCap className="mr-2 h-4 w-4" />
<span>Documentation</span>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,9 @@ export const InviteOrgMemberModal = ({ open, onClose }: Props) => {
onClose();
toast({
title: "Invitation sent",
description: `An invitation has been sent to ${inviteeEmail}`,
description: `Will add ${inviteeEmail} into ${organization.name} soon...`,
});
window.location.assign(`/orgs/${organization.id}`);
},
}
);
Expand Down Expand Up @@ -109,7 +110,7 @@ export const InviteOrgMemberModal = ({ open, onClose }: Props) => {
</DialogDescription>
</DialogHeader>
<DialogFooter className="mt-4">
<Button type="submit">Send Invitation</Button>
<Button type="submit">Add Member</Button>
</DialogFooter>
</form>
</Form>
Expand Down
Loading