From 8c398ff3f49277854b9d46fa145c2986a4303670 Mon Sep 17 00:00:00 2001 From: Josh Date: Thu, 13 Mar 2025 17:11:40 +0000 Subject: [PATCH] Integrated Career Suggestions filtering UI, moved Getting Started steps around --- src/components/CareerSuggestions.js | 1 - src/components/Dashboard.js | 85 +++++++++++++++-------------- src/components/GettingStarted.js | 21 +++---- 3 files changed, 55 insertions(+), 52 deletions(-) diff --git a/src/components/CareerSuggestions.js b/src/components/CareerSuggestions.js index b4b7dfe..49d4093 100644 --- a/src/components/CareerSuggestions.js +++ b/src/components/CareerSuggestions.js @@ -104,7 +104,6 @@ export function CareerSuggestions({ careerSuggestions = [], userState, areaTitle return (
-

Career Suggestions

{loading ? (
diff --git a/src/components/Dashboard.js b/src/components/Dashboard.js index 5db39d8..0bf01dd 100644 --- a/src/components/Dashboard.js +++ b/src/components/Dashboard.js @@ -137,13 +137,11 @@ const memoizedCareerSuggestions = useMemo(() => filteredCareers, [filteredCareer if (profileResponse.ok) { const profileData = await profileResponse.json(); - console.log('Fetched User Profile:', profileData); const { state, area, zipcode } = profileData; // Use 'area' instead of 'AREA_TITLE' setUserState(state); setAreaTitle(area && area.trim() ? area.trim() : ''); // Ensure 'area' is set correctly setUserZipcode(zipcode); // Set 'zipcode' in the state - console.log('Profile Data Set:', { state, area, zipcode }); } else { console.error('Failed to fetch user profile'); } @@ -192,7 +190,6 @@ async (career) => { try { salaryResponse = await axios.get(`${apiUrl}/salary`, { params: { socCode: socCode.split('.')[0], area: areaTitle }}); } catch (error) { - console.warn(`⚠️ Salary data not available for ${career.title} (${socCode})`); salaryResponse = { data: {} }; // Prevents breaking the whole update } @@ -201,7 +198,6 @@ async (career) => { try { economicResponse = await axios.get(`${apiUrl}/projections/${socCode.split('.')[0]}`); } catch (error) { - console.warn(`⚠️ Economic projections not available for ${career.title} (${socCode})`); economicResponse = { data: {} }; // Prevents breaking the whole update } @@ -210,7 +206,7 @@ async (career) => { try { tuitionResponse = await axios.get(`${apiUrl}/tuition`, { params: { cipCode: cleanedCipCode, state: userState }}); } catch (error) { - console.warn(`⚠️ Tuition data not available for ${career.title} (${socCode})`); + tuitionResponse = { data: {} }; } @@ -228,7 +224,6 @@ async (career) => { const { distance, duration } = response.data; return { ...school, distance, duration }; } catch (error) { - console.warn(`⚠️ Distance calculation failed for ${school.INSTNM}`); return { ...school, distance: 'N/A', duration: 'N/A' }; } })); @@ -264,8 +259,6 @@ async (career) => { [userState, apiUrl, areaTitle, userZipcode] ); - console.log('Updated careerDetails:', careerDetails); - const chartData = { labels: riaSecScores.map((score) => score.area), datasets: [ @@ -281,40 +274,50 @@ async (career) => { return (
-
-
- - -
+
+
+
+ -
- - -
-
- - -
-
- + +
+
diff --git a/src/components/GettingStarted.js b/src/components/GettingStarted.js index 0c21390..6c9fba8 100644 --- a/src/components/GettingStarted.js +++ b/src/components/GettingStarted.js @@ -15,24 +15,25 @@ function GettingStarted() {

Let’s start by getting to know you better. Completing the steps below will help us tailor career recommendations based on your interests.

-
- 🎯 -
-

Step 1: Complete the O*Net Interest Inventory

-

Discover your career interests by taking the O*Net inventory. This will help us suggest personalized career paths for you.

- {/* Start Inventory button */} - -
-
📄
-

Step 2: Set Up Your Profile

+

Step 1: Set Up Your Profile

Add details like your skills, education, and experience to further personalize your recommendations.

+ +
+ 🎯 +
+

Step 2: Complete the O*Net Interest Inventory

+

Discover your career interests by taking the O*Net inventory. This will help us suggest personalized career paths for you.

+ {/* Start Inventory button */} + +
+
);