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

feat: AI Support Chat #393

Merged
merged 28 commits into from
Aug 18, 2023
Merged
Show file tree
Hide file tree
Changes from 10 commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
47ba5ca
package upgrades
dogmar Aug 8, 2023
58ab3f7
Basic AI chat back-and-forth working
dogmar Aug 8, 2023
3d31b0b
Test markdown rendering fine
dogmar Aug 9, 2023
2531694
Make chat input multiline
dogmar Aug 10, 2023
3ca253f
Add header to chatbot
dogmar Aug 10, 2023
532c524
Add loading indicator to chatbot input
dogmar Aug 10, 2023
c58c3fa
Maintain state when minimized
dogmar Aug 10, 2023
567400a
Autoscroll when new chatbot messages come in
dogmar Aug 16, 2023
4ea9b3d
Better loading bar location
dogmar Aug 16, 2023
b843e81
Make sure Intercom drop shadow doesn’t cover help launch button
dogmar Aug 16, 2023
d38e7d4
Add min/max functionality
dogmar Aug 16, 2023
eacc047
Kbar integration
dogmar Aug 16, 2023
0f7a16e
Persist chat in session storage
dogmar Aug 16, 2023
2ce4e3d
Animated transitions for help menus
dogmar Aug 16, 2023
27da1a3
Add doc search and ability to open help from kbar
dogmar Aug 17, 2023
031db91
lint
dogmar Aug 17, 2023
205b06b
code reduction
dogmar Aug 17, 2023
2665678
restore index.html formatting
dogmar Aug 17, 2023
1df7204
fix shortcut typo
dogmar Aug 17, 2023
e257b25
Remove unused code
dogmar Aug 17, 2023
cd06f3f
Move intercom open/close into parent
dogmar Aug 17, 2023
a596a44
Refactor to separate files
dogmar Aug 17, 2023
c086146
Handle Intercom’s incoming message mini chat interface
dogmar Aug 17, 2023
22c2703
Allow closing via Escape key or clicking outside
dogmar Aug 17, 2023
ab281ee
remove logging
dogmar Aug 17, 2023
8ca6130
fix: Pods filter select won’t filter pods
dogmar Aug 17, 2023
efd0c11
Use icons from design system
dogmar Aug 17, 2023
2aba324
code cleanup
dogmar Aug 18, 2023
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
16 changes: 14 additions & 2 deletions assets/codegen.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,20 @@
overwrite: true
schema: '../schema/schema.graphql'
documents: './src/graph/**/*.graphql'
generates:
src/generated/graphql.ts:
schema: '../schema/schema.graphql'
documents: './src/graph/**/*.graphql'
plugins:
- 'typescript'
- 'typescript-operations'
- 'typescript-react-apollo'
- 'named-operations-object'
- add:
content:
- '/* eslint-disable */'
- '/* prettier-ignore */'
src/generated/graphql-plural.ts:
schema: 'https://raw.githubusercontent.com/pluralsh/plural/master/schema/schema.graphql'
documents: './src/graph-plural/**/*.graphql'
plugins:
- 'typescript'
- 'typescript-operations'
Expand Down
5 changes: 3 additions & 2 deletions assets/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"@nivo/pie": "0.83.0",
"@nivo/radial-bar": "0.83.0",
"@nivo/tooltip": "0.83.0",
"@pluralsh/design-system": "1.343.1",
"@pluralsh/design-system": "2.1.1",
"@tanstack/react-table": "8.9.1",
"@testing-library/jest-dom": "5.16.5",
"@testing-library/react": "14.0.0",
Expand All @@ -53,6 +53,7 @@
"apollo-link-context": "1.0.20",
"apollo-link-error": "1.1.13",
"apollo-link-retry": "2.2.16",
"classnames": "2.3.2",
"country-code-lookup": "0.0.23",
"emoji-mart": "5.5.2",
"escape-carriage": "1.3.1",
Expand Down Expand Up @@ -109,7 +110,7 @@
"slate-react": "0.95.0",
"styled-components": "5.3.11",
"tinyqueue": "2.0.3",
"type-fest": "3.11.1",
"type-fest": "4.2.0",
"use-immer": "0.9.0",
"uuid": "9.0.0",
"workbox-core": "7.0.0",
Expand Down
1 change: 1 addition & 0 deletions assets/src/App.jsx → assets/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ export default function App() {
<GlobalStyle />
<Grommet
full
// @ts-ignore
theme={mergedStyledTheme}
themeMode="dark"
>
Expand Down
16 changes: 16 additions & 0 deletions assets/src/components/help/ChatIcon.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import createIcon from '@pluralsh/design-system/dist/components/icons/createIcon'

export default createIcon(({ size, color }) => (
dogmar marked this conversation as resolved.
Show resolved Hide resolved
<svg
width={size}
viewBox="0 0 16 16"
fill="none"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="m11.358,12.4676h-.3803l-.101501.3666-.651899,2.3541-.0002-.0001-.0033.0134c-.0008.0034-.0038.0132-.0105.0276-.0065.0141-.013901.026999-.020201.0365h0l-.004499.007c-.0886.139199-.24779.2273-.407821.2273-.148219,0-.291389-.0727-.36895-.1771l-.01829-.0247-.02116-.0222-2.52839-2.6533-.14777-.1551h-3.13766c-1.67475,0-3.05556-1.3874-3.05556-3.09104V3.59102C.5,1.88741,1.88081.5,3.55556.5h8.88884c1.6748,0,3.0556,1.38741,3.0556,3.09102v5.78554c0,1.70364-1.3808,3.09104-3.0556,3.09104h-1.0864Z"
fill="none"
stroke={color}
/>
</svg>
))
Loading
Loading