Skip to content

Conversation

@Ahmonemb
Copy link
Owner

No description provided.

…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`).
@Ahmonemb Ahmonemb merged commit 6bf380f into main Apr 24, 2025
0 of 2 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