forked from Sinaptik-AI/pandas-ai
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat(pandasai_server): pandasai server code commit * fix(docker-compose): add pandasbi backend in docker * fix(pandasai-lint): sort linting errors * refactor: rename modle file name * feat(chat): adding chat endpoint * fix: remove some keywords from spellcheck * fix: poetry lock file * me api integrated * chat api integrated * renamed, fix and add documentation * workspace replaced * fix: add conversation id to response * feat(conversation): return all user conversations * fix: should be equal equal * feat(pandasai_server): pandasai server code commit (Sinaptik-AI#1189) * feat(pandasai_server): pandasai server code commit * fix(docker-compose): add pandasbi backend in docker * fix(pandasai-lint): sort linting errors * refactor: rename modle file name * feat(chat): adding chat endpoint * fix: remove some keywords from spellcheck * fix: poetry lock file * me api integrated * chat api integrated * renamed, fix and add documentation * workspace replaced * fix: add conversation id to response * feat(conversation): return all user conversations * fix: should be equal equal --------- Co-authored-by: Shahrukh Khan <[email protected]> * get all datasets endpoint completed * feat(conversation_messages): return conversation messages (Sinaptik-AI#1196) * get all datasets endpoint completed (Sinaptik-AI#1197) * chore: update poetry.lock * chore: add pgdata to gitignore * chore: fix postgres url in the server .env example * chore: add .env.example for the client * fix: add rollbar * fix: wrong redirects * fix: docker compose to wait for postgres before starting (Sinaptik-AI#1198) * fix: response message should be value for strings and numbers (Sinaptik-AI#1199) * docs: mention the platform in the docs * style: hide rightbar for now * style: move the "new chat" button next to chat * [PAN-816]: Past conversations integrated and workspace removed (Sinaptik-AI#1200) * feat(conversation_messages): return conversation messages * past conversations integrated * workspace page removed * workspace page removed * workspace page removed * workspace page removed * bugfix --------- Co-authored-by: ArslanSaleem <[email protected]> * style: remove tooltip from the sidebar * style: clean up the UI * chore: fix typo in volume name * conversation actions removed * conversation actions removed (Sinaptik-AI#1201) * fix: filter out empty conversations * docs: add platform in the docs * get users by workspace id api added * docs: add docs about the platform * pydantic response for workspace user added * workspace datasets endpoint added * archive conversation api added (Sinaptik-AI#1209) * [PAN-820]: archive api integrated on frontend (Sinaptik-AI#1210) * archive conversation api added * archive conversation integrated on frontend * chore: add link about the roadmap * past conversation issues fixed * [PAN-824]: Ui stuck fixed (Sinaptik-AI#1215) * ui stuck fixed * docker fixed * style: ctas in the sidebar fade out on collapse * scroll to bottom bug fix (Sinaptik-AI#1217) * tests(pandasai): write python test cases (Sinaptik-AI#1216) * new conversation not adding to sidebar fixed * fix: frontend docker build (Sinaptik-AI#1219) * merge main to release --------- Co-authored-by: ArslanSaleem <[email protected]> Co-authored-by: Shahrukh Khan <[email protected]> Co-authored-by: Shahrukh khan <[email protected]>
- Loading branch information
1 parent
3547329
commit 4148c14
Showing
222 changed files
with
16,108 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,3 +42,6 @@ exports/ | |
# coverage | ||
.coverage | ||
coverage.xml | ||
|
||
# pgdata | ||
pgdata/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# THE URL OF YOUR CLIENT | ||
NEXT_PUBLIC_API_URL='http://localhost:8000/' | ||
|
||
# ENVIRONMENT | ||
NEXT_PUBLIC_ROLLBAR_CLIENT_TOKEN="development" | ||
|
||
# ANALYTICS | ||
NEXT_PUBLIC_MIXPANEL_TOKEN="04a81d58ade99299e19e5a89fe84c670" | ||
NEXT_PUBLIC_GOOGLE_ANALYTICS_ID="G-SD7MBGS6J9" | ||
|
||
# SUPPORT CHAT | ||
NEXT_PUBLIC_INTERCOM_APP_ID="jzfk3qc5" | ||
|
||
# ENV | ||
NODE_ENV="development" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ | ||
"env": { | ||
"browser": true, | ||
"es2021": true | ||
}, | ||
"extends": [ | ||
"next/core-web-vitals", | ||
"eslint:recommended", | ||
"plugin:@typescript-eslint/recommended", | ||
"plugin:react/recommended" | ||
], | ||
"parser": "@typescript-eslint/parser", | ||
"parserOptions": { | ||
"ecmaVersion": 2023, | ||
"sourceType": "module" | ||
}, | ||
"plugins": [ | ||
"@typescript-eslint", | ||
"react" | ||
], | ||
"rules": { | ||
"react/no-unescaped-entities": ["error", { "forbid": [">", "}"] }], | ||
"@typescript-eslint/no-explicit-any": "off", | ||
"no-useless-catch": "off", | ||
"react-hooks/exhaustive-deps": 0 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. | ||
|
||
# dependencies | ||
/node_modules | ||
/.pnp | ||
.pnp.js | ||
.yarn/install-state.gz | ||
|
||
# testing | ||
/coverage | ||
|
||
# next.js | ||
/.next/ | ||
/out/ | ||
|
||
# production | ||
/build | ||
|
||
# misc | ||
.DS_Store | ||
*.pem | ||
|
||
# debug | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
|
||
# local env files | ||
.env*.local | ||
.env | ||
# vercel | ||
.vercel | ||
|
||
# typescript | ||
*.tsbuildinfo | ||
next-env.d.ts | ||
|
||
# lock files | ||
package-lock.json | ||
yarn-lock.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
FROM node:19.4.0-alpine3.17 | ||
|
||
WORKDIR /app | ||
|
||
COPY package*.json ./ | ||
|
||
RUN npm install | ||
|
||
COPY . . | ||
|
||
RUN npm run build | ||
|
||
EXPOSE 3000 | ||
|
||
CMD ["npm", "start"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
"use client"; | ||
import React, { ReactNode, useEffect } from "react"; | ||
import ContextProvider from "@/contexts/ContextProvider"; | ||
import { usePathname } from "next/navigation"; | ||
import dynamic from "next/dynamic"; | ||
import { getTitleFromPath } from "@/utils/getTitleFromPath"; | ||
import { | ||
NEXT_PUBLIC_INTERCOM_APP_ID, | ||
NEXT_PUBLIC_MIXPANEL_TOKEN, | ||
NEXT_PUBLIC_ROLLBAR_CLIENT_TOKEN, | ||
} from "@/utils/constants"; | ||
import mixpanel from "mixpanel-browser"; | ||
import { Provider as RollbarProvider, ErrorBoundary } from "@rollbar/react"; | ||
import QueryProvider from "./QueryProvider"; | ||
import Intercom from "@/components/Intercom/Intercom"; | ||
import { ToastContainer } from "react-toastify"; | ||
import "styles/globals.css"; | ||
import "styles/App.css"; | ||
import "styles/multi-range-slider.css"; | ||
import "react-toastify/dist/ReactToastify.css"; | ||
import "react-tooltip/dist/react-tooltip.css"; | ||
|
||
const _NoSSR = ({ children }) => <React.Fragment>{children}</React.Fragment>; | ||
const NoSSR = dynamic(() => Promise.resolve(_NoSSR), { | ||
ssr: false, | ||
}); | ||
|
||
export default function AppProvider({ children }: { children: ReactNode }) { | ||
const pathname = usePathname(); | ||
const defaultTitle = getTitleFromPath(pathname); | ||
|
||
const rollbarConfig = { | ||
accessToken: NEXT_PUBLIC_ROLLBAR_CLIENT_TOKEN, | ||
environment: process.env.NODE_ENV || "development", | ||
}; | ||
|
||
useEffect(() => { | ||
document.title = `${defaultTitle} | PandaBI`; | ||
}, [defaultTitle]); | ||
|
||
useEffect(() => { | ||
mixpanel.init(NEXT_PUBLIC_MIXPANEL_TOKEN, { | ||
autotrack: true, | ||
track_pageview: true, | ||
}); | ||
}, []); | ||
return ( | ||
<> | ||
<RollbarProvider config={rollbarConfig}> | ||
<ErrorBoundary> | ||
<ContextProvider> | ||
<NoSSR> | ||
<ToastContainer autoClose={3000} className="w-64 text-white" /> | ||
<QueryProvider>{children}</QueryProvider> | ||
</NoSSR> | ||
</ContextProvider> | ||
</ErrorBoundary> | ||
</RollbarProvider> | ||
<Intercom appID={NEXT_PUBLIC_INTERCOM_APP_ID} /> | ||
</> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
"use client"; | ||
import React, { ReactNode, useState } from "react"; | ||
import { QueryClient, QueryClientProvider } from "@tanstack/react-query"; | ||
import { ReactQueryDevtools } from "@tanstack/react-query-devtools"; | ||
|
||
const QueryProvider = ({ children }: { children: ReactNode }) => { | ||
const [queryClient] = useState(() => new QueryClient()); | ||
return ( | ||
// Provide the client to your App | ||
<QueryClientProvider client={queryClient}> | ||
<ReactQueryDevtools initialIsOpen={false} /> | ||
{children} | ||
</QueryClientProvider> | ||
); | ||
}; | ||
|
||
export default QueryProvider; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app). | ||
|
||
## Getting Started | ||
|
||
First, run the development server: | ||
|
||
```bash | ||
npm run dev | ||
# or | ||
yarn dev | ||
# or | ||
pnpm dev | ||
# or | ||
bun dev | ||
``` | ||
|
||
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result. | ||
|
||
You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file. | ||
|
||
This project uses [`next/font`](https://nextjs.org/docs/basic-features/font-optimization) to automatically optimize and load Inter, a custom Google Font. | ||
|
||
## Learn More | ||
|
||
To learn more about Next.js, take a look at the following resources: | ||
|
||
- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API. | ||
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial. | ||
|
||
You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome! | ||
|
||
## Deploy on Vercel | ||
|
||
The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js. | ||
|
||
Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details. |
Oops, something went wrong.