artificialcitizens / acai.so

Your AI Powered Toolkit
https://acai.so
Other
14 stars 2 forks source link

fixes tiptap bug causing extra re-renders #96

Closed mabry1985 closed 1 year ago

mabry1985 commented 1 year ago

Summary by CodeRabbit

vercel[bot] commented 1 year ago

The latest updates on your projects. Learn more about Vercel for Git ā†—ļøŽ

Name Status Preview Updated (UTC)
acai-so āœ… Ready (Inspect) Visit Preview Oct 24, 2023 2:10am
coderabbitai[bot] commented 1 year ago

Walkthrough

This pull request introduces significant changes to the acai.so platform, focusing on expanding the database schema, refining the user interface, and enhancing the functionality of the AVA (Automated Virtual Agent). It also includes updates to the documentation and refactoring of the codebase to improve maintainability and modularity.

Changes

File(s) Summary
db.ts Expanded the database schema to support workspaces and documents.
public/docs/*.md Updated the documentation for the platform, including information about workspaces, the editor, and the AVA functionality.
src/App.tsx, src/components/Ava/Ava.tsx, src/components/Ava/use-ava.ts, src/components/Chat/Chat.tsx, src/components/ChatSettings/ChatSettings.tsx, src/components/Knowledge/Knowledge.tsx, src/components/KnowledgeView/KnowledgeView.tsx, src/components/MainView/MainView.tsx, src/components/SideNav/SideNav.tsx, src/components/SocketManager/SocketManager.tsx, src/components/TipTap/TipTap.tsx, src/components/TipTap/components/EditorDropzone.tsx, src/state/agent.xstate.ts, src/state/app.xstate.ts, src/state/ui.xstate.ts, src/state/use-voice-command.ts, src/utils/docs.ts Refactored the codebase, replacing the Tab interface with ACDoc and updating the related logic.
src/components/AvaNav/AvaNav.tsx, src/components/Modal/Modal.tsx, src/components/SettingsTabs/AudioSettings.tsx, src/components/SettingsTabs/SettingsTabs.tsx, src/components/QuickSettings/QuickSettings.tsx Introduced new components to enhance the user interface and functionality.
src/components/NotificationCenter/index.tsx, src/components/Sidebar/SBSidebar.tsx, src/components/SettingsTabs/Settings.css, src/index.css Updated the UI styling and behavior.
src/lib/ac-langchain/agents/chat-model.ts, src/lib/ac-langchain/chains/ask-ai-chain.ts, src/lib/ac-langchain/chains/autocomplete-chain.ts, src/lib/ac-langchain/chains/observation-chain.ts, src/lib/ac-langchain/vector-store/in-memory.ts Removed console.log statements and commented out code.
src/state/speech.xstate.ts Introduced a new state machine for managing speech-related states.
vite.config.ts Enhanced the configuration for generating a progressive web app (PWA) with proper icons and assets.

šŸ‡šŸ’»

Code refactored, UI enhanced,

With new features, users are entranced.

Docs updated, errors toasted,

In code quality, we've boasted.

From Tab to ACDoc, the journey's been long,

But with every change, the platform grows strong. šŸŽ‰šŸš€


Tips ### Chat with CodeRabbit Bot (`@coderabbitai`) - If you reply to a *review comment* from CodeRabbit, the bot will automatically respond. - To engage with CodeRabbit bot directly around the specific lines of code in the PR, mention @coderabbitai in your review comment - Note: Review comments are made on code diffs or files, not on the PR overview. - Add `@coderabbitai ignore` anywhere in the PR description to prevent this PR from being reviewed. ### CodeRabbit Commands (invoked as PR comments) - `@coderabbitai pause` to pause the reviews on a PR. - `@coderabbitai resume` to resume the paused reviews. - `@coderabbitai review` to trigger a review. This is useful when automatic reviews are disabled for the repository. - `@coderabbitai help` to get help. Note: For conversation with the bot, please use the review comments on code diffs or files. ### CodeRabbit Configration File (`.coderabbit.yaml`) - You can programmatically configure CodeRabbit by adding a `.coderabbit.yaml` file to the root of your repository. - The JSON schema for the configuration file is available [here](https://coderabbit.ai/integrations/coderabbit-overrides.json). - If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: `# yaml-language-server: $schema=https://coderabbit.ai/integrations/coderabbit-overrides.json`