Skip to content

Commit 454cb55

Browse files
Merge pull request #127 from neo4j-labs/integrate-chatbot-with-the-api
Integrate chatbot with the api
2 parents 9bcc820 + 48ee4ca commit 454cb55

File tree

14 files changed

+217
-167
lines changed

14 files changed

+217
-167
lines changed

frontend/.eslintrc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"version": "detect"
1212
}
1313
},
14-
"ignorePatterns": ["node_modules/**", "packages/**/dist/**", "packages/**/coverage/**"],
14+
"ignorePatterns": ["node_modules/**", "packages/**/dist/**", "packages/**/coverage/**","nvl-modules/"],
1515
"rules": {
1616
"@typescript-eslint/no-explicit-any": "off", // Off for v1
1717
"@typescript-eslint/ban-ts-comment": "off", // Off for v1

frontend/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414
"@emotion/styled": "^11.11.0",
1515
"@mui/material": "^5.15.10",
1616
"@mui/styled-engine": "^5.15.9",
17-
"@neo4j-ndl/base": "^2.3.0",
18-
"@neo4j-ndl/react": "^2.3.0",
1917
"@types/uuid": "^9.0.7",
18+
"@neo4j-ndl/base": "^2.6.0",
19+
"@neo4j-ndl/react": "^2.6.2",
2020
"axios": "^1.6.5",
2121
"eslint-plugin-react": "^7.33.2",
2222
"neo4j-driver": "^5.14.0",

frontend/src/App.css

Lines changed: 21 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,14 @@
33
height: calc(-322px + 100dvh);
44
border: 1px solid #d1d5db;
55
}
6+
67
.fileTableWithExpansion {
78
width: calc(-400px + 100dvw) !important;
89
height: calc(-322px + 100dvh);
910
border: 1px solid #d1d5db;
1011
}
11-
.fileTableWithBothDrawers{
12+
13+
.fileTableWithBothDrawers {
1214
width: calc(-650px + 100dvw) !important;
1315
height: calc(-322px + 100dvh);
1416
border: 1px solid #d1d5db;
@@ -17,9 +19,11 @@
1719
.fileTableWithExpansion .ndl-div-table {
1820
width: max-content !important;
1921
}
22+
2023
.filetable .ndl-div-table {
2124
width: 100% !important;
2225
}
26+
2327
.contentWithExpansion {
2428
width: calc(-360px + 100dvw);
2529
height: calc(100dvh - 60px);
@@ -30,7 +34,8 @@
3034
gap: 5px;
3135
position: relative;
3236
}
33-
.contentWithBothDrawers{
37+
38+
.contentWithBothDrawers {
3439
width: calc(-721px + 100dvw);
3540
height: calc(100dvh - 60px);
3641
padding: 3;
@@ -40,7 +45,8 @@
4045
gap: 5px;
4146
position: relative;
4247
}
43-
.contentWithChatBot{
48+
49+
.contentWithChatBot {
4450
width: calc(-385px + 100dvw);
4551
height: calc(100dvh - 60px);
4652
padding: 3;
@@ -50,6 +56,7 @@
5056
gap: 5px;
5157
position: relative;
5258
}
59+
5360
.contentWithNoExpansion {
5461
width: calc(100% - 64px);
5562
height: calc(100dvh - 60px);
@@ -70,7 +77,7 @@
7077
outline-color: #d1d5db;
7178
}
7279

73-
.s3Container > button > div {
80+
.s3Container>button>div {
7481
display: flex;
7582
flex-direction: column;
7683
align-items: center;
@@ -84,12 +91,14 @@
8491
.ndl-data-grid-root .ndl-data-grid-navigation {
8592
padding-block: 5px !important;
8693
}
94+
8795
.ndl-drawer .ndl-drawer-close-button {
88-
background-color: rgb(var(--theme-palette-neutral-bg-strong));
89-
width: 40px !important;
90-
height: 40px !important;
91-
right: 10px !important;
96+
background-color: rgb(var(--theme-palette-neutral-bg-strong));
97+
width: 36px !important;
98+
height: 36px !important;
99+
right: 5px !important;
92100
}
101+
93102
.custombutton {
94103
display: flex;
95104
align-items: center;
@@ -98,16 +107,19 @@
98107
flex-direction: column;
99108
padding-block: 10px;
100109
}
110+
101111
.brandimg {
102112
width: 70px;
103113
height: 70px;
104114
object-fit: contain;
105115
}
116+
106117
::placeholder {
107118
color: rgb(135, 130, 130) !important;
108119
}
120+
109121
.textellipsis {
110122
overflow: hidden;
111123
text-overflow: ellipsis;
112124
white-space: nowrap;
113-
}
125+
}

frontend/src/assets/ChatbotMessages.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
},
99
{
1010
"id": 2,
11-
"message": "Sure, I can help with that. What specific data are you looking to retrieve?",
11+
"message": "Hi there! Welcome to Neo4j Chat! Your insights are just a click away from completed files",
1212
"user": "chatbot",
1313
"datetime": "01/01/2024 00:00:00"
1414
},

0 commit comments

Comments
 (0)