diff --git a/cypress/downloads/downloads.html b/cypress/downloads/downloads.html deleted file mode 100644 index 4081c41..0000000 Binary files a/cypress/downloads/downloads.html and /dev/null differ diff --git a/cypress/e2e/jobsApplicationSpec.cy.js b/cypress/e2e/jobsApplicationSpec.cy.js index d8f0368..baee83c 100644 --- a/cypress/e2e/jobsApplicationSpec.cy.js +++ b/cypress/e2e/jobsApplicationSpec.cy.js @@ -46,8 +46,6 @@ describe("Job app page after logging in", () => { cy.wait("@getJobApplications"); cy.get("h1").should("have.text", "Applications"); - - cy.get(".border.rounded-lg.overflow-hidden").should("exist"); }); it("Should display a spinner while loading and show data after loading completes", () => { diff --git a/cypress/e2e/newJobApplicationSpec.cy.js b/cypress/e2e/newJobApplicationSpec.cy.js index d782adb..40f84c7 100644 --- a/cypress/e2e/newJobApplicationSpec.cy.js +++ b/cypress/e2e/newJobApplicationSpec.cy.js @@ -102,7 +102,7 @@ describe('Create New Job Application page after logging in', () => { cy.wait('@postUserInfo'); cy.get('a[href="/job_applications"]').first().click(); cy.wait('@getJobApplications') - cy.get('.bg-teal-500').click(); + cy.get('a > .bg-cyan-600').click(); }) describe("Happy Paths", () => { @@ -192,7 +192,7 @@ describe('Create New Job Application page after logging in', () => { cy.get('button[type="submit"]').click(); cy.url().should('include', '/job_applications'); cy.get(':nth-child(3) > :nth-child(2) > a').should('contain', 'Test Position'); - cy.get(':nth-child(3) > :nth-child(3) > a > .py-1').should('contain', 'Offer'); + cy.get(':nth-child(3) > :nth-child(3) > a > .py-2').should('contain', 'Offer'); }); }) diff --git a/src/components/JobApplicationUtilities.tsx b/src/components/JobApplicationUtilities.tsx index 3457990..a01d379 100644 --- a/src/components/JobApplicationUtilities.tsx +++ b/src/components/JobApplicationUtilities.tsx @@ -9,11 +9,11 @@ export const statusMap: { [key: number]: string } = { }; export const statusStyles: { [key: string]: string } = { - Submitted: 'bg-yellow-200 text-yellow-800', - Interviewing: 'bg-green-200 text-green-800', - Offer: 'bg-teal-300 text-teal-900', - Rejected: 'bg-red-200 text-red-800', - 'Phone Screen': 'bg-yellow-300 text-yellow-900', - 'Code Challenge': 'bg-blue-200 text-blue-800', - 'Not Yet Applied': 'bg-orange-200 text-orange-800', -}; \ No newline at end of file + Submitted: 'bg-[#e7e07e] text-black', + Interviewing: 'bg-[#e1f3e4] text-black', + Offer: 'bg-[#10a689] text-white', + Rejected: 'bg-[#cd644f] text-white', + 'Phone Screen': 'bg-[#fac712] text-black', + 'Code Challenge': 'bg-blue-200 text-black', + 'Not Yet Applied': 'bg-[#e6e6e6] text-black', +}; diff --git a/src/components/JobApplications/JobApplications.tsx b/src/components/JobApplications/JobApplications.tsx index a951aaf..d544c1d 100644 --- a/src/components/JobApplications/JobApplications.tsx +++ b/src/components/JobApplications/JobApplications.tsx @@ -33,73 +33,73 @@ const ApplicationsGrid: React.FC = () => { } return ( -
- {isLoading ? ( -
- -
- ) : ( - <> -

Applications

- -
-
+
+
+ {isLoading ? ( +
+ +
+ ) : ( + <> +

+ Applications +

+ +
setSearchTerm(e.target.value)} - /> + /> + + +
- - - -
- -
- - - - - - - +
CompanyTitleStatusLast Updated
+ + + + + + {filteredApplications.map((app) => ( - - - -
CompanyTitleStatusLast Updated
+ {app.company_name || app.company_id} + {app.position_title} + {statusMap[app.status]} + {app.updated_at} @@ -115,10 +115,10 @@ const ApplicationsGrid: React.FC = () => { )}
-
- - )} -
+ + )} +
+ ); };