atlp-rwanda / atlp-devpulse-fn

application
https://atlp-devpulse-fn.vercel.app/
3 stars 1 forks source link

Applicant should be able to apply to job post #246

Closed jkarenzi closed 1 day ago

jkarenzi commented 1 week ago

Pull Request Description

Feature: Job Application Submission for Applicants

What does this PR do?

This pull request adds a feature allowing applicants to apply to job posts by submitting an application form with specific fields. Each application is uniquely associated with the applicant and the job post, ensuring that only one application can be submitted per job by the same applicant. Conditional fields are displayed based on the applicant's existing profile information to avoid redundancy.

Description of the Tasks

  1. Frontend Form UI:

    • Implemented a user-friendly application form with:
      • A 200-word limit on the interest_essay field.
      • A CV/Resume field
    • Added validation for form fields and integrated error/success notifications.
  2. Validation & Error Handling:

    • Validated all form inputs on the frontend.
    • Displayed notifications if an applicant attempts to apply for the same job twice.
    • Handled backend responses, showing appropriate error or success messages.

Relevant Pivotal Trackers

How Can This Be Manually Tested?

  1. Setup:

    • Ensure the backend API endpoints for submitting applications are running.
    • Start the frontend application and navigate to the job post page.
  2. Testing the Application Submission:

    • Navigate to any job post and fill out the application form.
    • Fill in the essay field (ensure it does not exceed 200 words).
    • Upload your CV/Resume and submit the application.
  3. Testing for Duplicate Applications:

    • Attempt to submit another application for the same job post.
    • You should see a notification that prevents duplicate applications.
  4. Navigate to the "my applications" tab to view applications.

    • Admin can also view applications by navigating to the "applications" tab
  5. Validation & Error Messages:

    • Ensure validation errors appear for incomplete form fields.
    • Verify that success and error messages appear based on the response from the backend.

Acceptance Criteria Met

Screenshots

Screenshot 2024-11-18 152219 Screenshot 2024-11-18 152334 Screenshot 2024-11-18 152423 Screenshot 2024-11-18 152456
vercel[bot] commented 1 week ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
atlp-devpulse-fn ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 20, 2024 9:02am
jkarenzi commented 3 days ago
  1. Add toast or popup modal telling user if application submitted successfully or failed with other relevant information
  2. Disable next on job post page when no other job post available on next page to prevent error that are thrown
  3. In PR description, remember also to add screenshot if applicable

Done

codeclimate[bot] commented 2 days ago

Code Climate has analyzed commit c34d807b and detected 0 issues on this pull request.

View more on Code Climate.