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

Pehchan integration #18

Merged
merged 15 commits into from
Dec 3, 2024
Merged

Pehchan integration #18

merged 15 commits into from
Dec 3, 2024

Conversation

aliirz
Copy link
Contributor

@aliirz aliirz commented Dec 3, 2024

No description provided.

aliirz and others added 9 commits December 3, 2024 12:58
- 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]>
Copy link

vercel bot commented Dec 3, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
numainda ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 3, 2024 5:20pm

- 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.
@aliirz aliirz merged commit 94445f6 into main Dec 3, 2024
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants