Conversation
…ate chat - Implement draggable divider and hideable majors column in AgreementViewerPage. - Add localStorage caching for majors list and PDF image filenames. - Enable ChatInterface immediately on AgreementViewerPage load. - Remove major selection from CollegeTransferForm and update navigation. - Adjust layout calculations and fix closure issue in resize handler. - Update Python and JS dependencies (openai, dotenv, etc.).
Adds Google OAuth login/logout functionality and introduces a new Course Map feature using React Flow.
- **Authentication:**
- Integrate `@react-oauth/google` for user authentication.
- Implement login success/error handling, decoding JWT with `jwt-decode`.
- Persist user session state in `localStorage`.
- Add logout functionality, clearing state and `localStorage`.
- Update `main.jsx` to include `GoogleOAuthProvider` and use Vite environment variables (`VITE_GOOGLE_CLIENT_ID`) via `dotenv`.
- Add a navigation bar in `App.jsx` showing login status, user info, and conditional links (e.g., Course Map).
- **Course Map:**
- Add `reactflow` dependency and its related packages.
- Create new `CourseMap.jsx` component.
- Implement React Flow canvas for visualizing course prerequisites.
- Add functionality to add, connect, rename, and delete nodes/edges.
- Implement API integration (`fetchData`) for CRUD operations on user-specific course maps (`/course-maps`, `/course-map/{id}`).
- Load list of saved maps for the user.
- Load specific map data (nodes, edges).
- Save new or update existing maps (prompts for name if new/untitled).
- Delete selected map with confirmation.
- Integrate user authentication (sending ID token) for API requests.
- Add `localStorage` caching for map list and individual map data to improve performance.
- Add map management UI (dropdown selector, New, Save, Delete buttons).
- **Chat Interface:**
- Refactor `ChatInterface.jsx` to manage and send conversation history to the backend API.
- Send `image_filenames` context only with the *first* message of a session.
- Improve UI: auto-scrolling, message bubble styling, placeholder text, context clearing on agreement change.
- **Performance:**
- Add `localStorage` caching for institution and academic year data in `CollegeTransferForm.jsx` to reduce API calls.
- **Dependencies:**
- Add `@react-oauth/google`, `dotenv`, `jwt-decode`, `reactflow`.
Refactors the Course Map component (`CourseMap.jsx`) to handle create, load, save, and delete operations via API endpoints (`/api/course-map`, `/api/course-maps`). - Implements API calls for creating, updating, loading, and deleting maps associated with the logged-in user. - Adds local storage caching for the map list and individual map data to improve performance and reduce API calls. - Refines the UI for selecting, creating, saving, and deleting maps. - Updates `handleNewMap` and `handleSave` logic for better state management and API interaction. Also includes: - Adds frontend check for Google ID token expiration on load (`App.jsx`). - Configures Vite (`vite.config.js`) to load `.env` variables, expose `VITE_GOOGLE_CLIENT_ID`, and set development server headers for OAuth popups. - Updates React Router configuration (`main.jsx`). - Minor cleanup in backend logging (`app.py`).
This file contains hidden or 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
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.