Skip to content

merge: update everything to v5#21

Merged
galagyy merged 25 commits intomainfrom
v5
Oct 24, 2025
Merged

merge: update everything to v5#21
galagyy merged 25 commits intomainfrom
v5

Conversation

@galagyy
Copy link
Copy Markdown
Contributor

@galagyy galagyy commented Oct 24, 2025

  • Update backend, ai, and frontend to V5.

galagyy and others added 24 commits October 23, 2025 21:19
- Updated model to use a better dataset.
- Removed unneeded __init__.py files.

Co-Authored-By: Om-Kasar <188000396+Om-Kasar@users.noreply.github.com>
- Removed unneeded endpoints.
- Kept the health and generation endpoints.
- Updated to a newer, more concise model.
- Reduced dataset size for more accurate results.

Co-Authored-By: Om-Kasar <188000396+Om-Kasar@users.noreply.github.com>
- Updated Python documentation.
- Removed unneeded Python files (test_recommend.py)
- Updated code version.

Co-Authored-By: Om-Kasar <188000396+Om-Kasar@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-Authored-By: Om-Kasar <188000396+Om-Kasar@users.noreply.github.com>
- Fixed inputted keys.
- Fixed documentation.
- Fixed n_estimator.

Co-Authored-By: Om-Kasar <188000396+Om-Kasar@users.noreply.github.com>
- Updated endpoint version.
- Change recommendation endpoint to POST.

Co-Authored-By: Om-Kasar <188000396+Om-Kasar@users.noreply.github.com>
- Updated career_routes to follow the PEP8 standard.
- Updated all code to follow all PEP8 standards; fixed W293, E501, W291, and E128.
- Added all AI changes, including optimization, documentation, and model resizing.
- Updated DTOs to match the Python endpoint.
- Updated all important classes to contain a class description.
- Removed older unused methods for code cleanliness.
- Removed unused methods to make code more concise.
- Added more helper methods to assist with code.
- Implemented college recommendation service to recommend colleges, degrees, strategies, and more.
- Added career-data.json to store college related career data.
- Added documentation to every class.
- Added swagger documentation to every class.
- Sorted imports for every class.
- Added scripts to properly manage the database version.
- Added updated backend with better code, etc.
- Added questionnaire variable.
- Changed AI endpoint
- Fixed the request requiring the wrong type of header.
- Rewired questionnaire progression.
- Added proper documentation and styling to the frontend.
- Made all code conform to the Google Typescript Style Guide.
- Added more logging into the Java backend.
- Added more refined dataset
- Retrained random forest model
- Updated code to use the response from the API.
- Reformatted code style.
@galagyy galagyy requested a review from Copilot October 24, 2025 20:05
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR updates the entire Aspira platform to version 5, encompassing backend, AI, and frontend components. The update includes a major overhaul of the AI recommendation system, introduction of new data models and endpoints, enhanced type safety in the frontend, and comprehensive documentation improvements.

Key Changes:

  • Upgraded AI career recommendation system from v2 to v4 with improved model architecture, probability calibration, and confidence scoring
  • Added new backend endpoints for college recommendations, degree programs, salary expectations, and success strategies
  • Enhanced frontend with comprehensive TypeScript typing, improved error handling, and questionnaire completion tracking
  • Added database migration scripts and updated Docker configuration for production deployment

Reviewed Changes

Copilot reviewed 45 out of 52 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
scripts/db-version.sh New script to refresh PostgreSQL collation version
scripts/db-version.bat Windows equivalent for database version refresh
frontend/lib/api.ts Added comprehensive JSDoc comments and improved error handling for career recommendations
frontend/app/signup/page.tsx Enhanced with TypeScript types, cookie management, and improved form validation
frontend/app/questionnaire/page.tsx Refactored to use new unified recommendation endpoint with better state management
frontend/app/page.tsx Updated team member information and added interface definitions
frontend/app/login/page.tsx Added questionnaire completion check and conditional routing logic
frontend/app/dashboard/page.tsx Complete rewrite with new data transformation functions and empty state handling
frontend/app/blogs/page.tsx Added TypeScript interfaces and comprehensive JSDoc documentation
backend/src/main/resources/application-prod.properties Updated AI backend port from 5000 to 8001
backend/src/main/java/com/sck/aspira/util/BlogDataLoader.java Added JavaDoc header documentation
backend/src/main/java/com/sck/aspira/service/UserService.java Added skills management, questionnaire tracking, and updated recommendation flow
backend/src/main/java/com/sck/aspira/service/UserDetailsServiceImpl.java Added JavaDoc header documentation
backend/src/main/java/com/sck/aspira/service/CollegeRecommendationService.java New service for college, degree, salary, and strategy recommendations
backend/src/main/java/com/sck/aspira/service/CareerRecommendationService.java Simplified to single recommendation method with new endpoint structure
backend/src/main/java/com/sck/aspira/security/*.java Added comprehensive JavaDoc documentation
backend/src/main/java/com/sck/aspira/repository/*.java Added JavaDoc header documentation
backend/src/main/java/com/sck/aspira/model/User.java Added skills collection and questionnaire completion flag
backend/src/main/java/com/sck/aspira/model/*.java Added JavaDoc header documentation
backend/src/main/java/com/sck/aspira/dto/*.java Updated CareerResponseDto structure and added documentation
backend/src/main/java/com/sck/aspira/controller/UserController.java Major refactor with new recommendation endpoint and college/degree/salary endpoints
backend/src/main/java/com/sck/aspira/controller/*.java Added Swagger annotations and JavaDoc documentation
backend/src/main/java/com/sck/aspira/config/*.java Added JavaDoc header documentation
ai/careers/test_recommend.py Removed deprecated test file
ai/careers/run.py Updated version and improved code formatting
ai/careers/examples.py Removed deprecated examples file
ai/careers/app/services/career_recommender.py Major upgrade with probability calibration, confidence boosting, and memory optimization
ai/careers/app/main.py Updated version and improved error handling
ai/careers/app/config.py Enhanced configuration with better validation and formatting

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

- Updated backend methods to have proper naming.
- Refactored backend method usage.
- Updated AI to remove "magic numbers".
@galagyy galagyy merged commit f8a51dd into main Oct 24, 2025
1 check passed
@galagyy galagyy deleted the v5 branch October 25, 2025 01:16
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.

3 participants