From adf84a664a5050e2f9ad924fef3fad1b3e0c88ca Mon Sep 17 00:00:00 2001 From: khyeonmin Date: Sat, 7 Jun 2025 23:48:13 +0900 Subject: [PATCH] Chore(structure): clean up project directories and add code comments --- .../figma/company to spec_figma design.svg | 189 ----- frontend/figma/figma_design_all.svg | 289 ------- frontend/spec-trackr-app/src/com_sp.jsx | 9 +- frontend/spec-trackr-app/src/sp_com.jsx | 3 +- frontend/tableau_visualization_example/App.js | 15 - .../TableauEmbed.js | 18 - .../preprocessing for visualization_ex.ipynb | 747 ------------------ tokens.json | 9 - 8 files changed, 7 insertions(+), 1272 deletions(-) delete mode 100644 frontend/figma/company to spec_figma design.svg delete mode 100644 frontend/figma/figma_design_all.svg delete mode 100644 frontend/tableau_visualization_example/App.js delete mode 100644 frontend/tableau_visualization_example/TableauEmbed.js delete mode 100644 frontend/tableau_visualization_example/preprocessing for visualization_ex.ipynb delete mode 100644 tokens.json diff --git a/frontend/figma/company to spec_figma design.svg b/frontend/figma/company to spec_figma design.svg deleted file mode 100644 index a141afca9..000000000 --- a/frontend/figma/company to spec_figma design.svg +++ /dev/null @@ -1,189 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/frontend/figma/figma_design_all.svg b/frontend/figma/figma_design_all.svg deleted file mode 100644 index ace976ada..000000000 --- a/frontend/figma/figma_design_all.svg +++ /dev/null @@ -1,289 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/frontend/spec-trackr-app/src/com_sp.jsx b/frontend/spec-trackr-app/src/com_sp.jsx index c8c78af58..99b4a0a0c 100644 --- a/frontend/spec-trackr-app/src/com_sp.jsx +++ b/frontend/spec-trackr-app/src/com_sp.jsx @@ -54,6 +54,7 @@ const ComSp = ({ onSpecTabClick }) => { ); + // 직업 카테고리 선택 시 관련 회사/직무 목록 가져오기 useEffect(() => { if (selectedJobCategory) { axios @@ -80,6 +81,7 @@ const ComSp = ({ onSpecTabClick }) => { } }, [selectedJobCategory]); + // 회사 선택 시 해당 회사에 맞는 직무만 필터링 useEffect(() => { if (selectedCompany) { const filteredPositions = rawOptions.filter(item => item.company_name === selectedCompany); @@ -93,6 +95,7 @@ const ComSp = ({ onSpecTabClick }) => { } }, [selectedCompany, rawOptions, selectedJobCategory]); + // 직무 선택 시 해당 직무를 포함한 회사만 필터링 useEffect(() => { if (selectedPosition) { const filteredCompanies = rawOptions.filter(item => item.detail_job === selectedPosition); @@ -110,6 +113,7 @@ const ComSp = ({ onSpecTabClick }) => { } }, [selectedPosition, rawOptions, selectedJobCategory]); + // 직업 카테고리 + 회사 + 직무 모두 선택 시 채용공고 불러오기 useEffect(() => { if (selectedJobCategory && selectedCompany && selectedPosition) { axios @@ -131,7 +135,6 @@ const ComSp = ({ onSpecTabClick }) => { } }, [selectedJobCategory, selectedCompany, selectedPosition]); - // --- 렌더링 --- return (
{
- {/* 버튼: 100% 가로, 반반, 붙어 있도록 */} + {/* 상단 탭 버튼 */}