-
Notifications
You must be signed in to change notification settings - Fork 1
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
Pehchan integration #18
Merged
Merged
Conversation
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
…mline setup and focus on server actions.
…pehchan-integration
- Added `@radix-ui/react-toast` dependency for toast notifications. - Implemented user authentication callback handling in `app/auth/callback/page.tsx`. - Created a new API route for fetching user info in `app/api/auth/userinfo/route.ts`. - Enhanced chat page and sidebar to manage authentication state and display login/logout buttons. - Introduced `PehchanLoginButton` for user login redirection. - Added toast notifications for login success and failure. - Updated main navigation and message threads sidebar to reflect authentication status.
…ility - Updated path attributes from `fill-rule` and `clip-rule` to `clipRule` for JSX compatibility. - Ensured consistent use of `fill="white"` across all paths for visual consistency.
…r useToast - Added the Toaster component to the RootLayout for enhanced user notifications. - Updated the import path for the useToast hook to reflect the new directory structure.
- Introduced new API routes for managing chat threads, including GET and POST methods in `app/api/chat/threads/route.ts` and `app/api/chat/threads/[id]/route.ts`. - Implemented database schema for chat threads in PostgreSQL with migration files. - Integrated Supabase client library for enhanced user authentication and data management. - Updated user info retrieval in `app/api/auth/userinfo/route.ts` to log responses. - Enhanced chat page and sidebar to handle thread loading and creation based on user authentication state. - Added local storage management for user identification and improved logging for debugging purposes.
- Updated the ChatPage component to improve layout by ensuring full height and overflow handling. - Adjusted the structure of the messages container to allow for better scrolling and visibility of messages. - Refactored the input section to maintain consistent spacing and layout. - Ensured that the chat bubbles and avatars maintain their styling and functionality within the new layout.
Co-authored-by: Masna <[email protected]>
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
- Added a loading indicator to display when the assistant is generating a response. - Implemented a copy-to-clipboard feature for chat messages with user feedback via toast notifications. - Improved the layout of the ChatPage to ensure the messages container is scrollable and maintains a fixed input section at the bottom. - Updated the scrolling behavior to automatically scroll to the bottom when new messages are received. This update enhances user experience by providing visual feedback and improving message accessibility.
- Added document type selection and conditional input for bulletin date in the upload page. - Implemented DELETE API functionality for chat threads, allowing users to remove threads securely. - Updated chat page to ensure messages are displayed only when the client is ready, improving user experience. - Integrated delete thread functionality in the message threads sidebar for better thread management. These changes improve the document upload process and enhance the chat interface, providing users with more control over their interactions.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.