develop-me / bagajob

Job Hunting Management App built by Develop Me students for Develop Me students.
https://bagajob.developme.space
GNU Affero General Public License v3.0
1 stars 2 forks source link

Display and edit jobs #60

Closed kierancott closed 3 years ago

kierancott commented 3 years ago

Changelog:

kierancott commented 3 years ago

Updated

Issue: "When I click the "Add Interview" button the POST request is triggered right away. I don't see a place where I can add in interview information to be POST'd. Additionally the API Key is not included in the header so I get an unauthenticated response"

Action: Created a form that dispatches a POST request to api/users/id/jobs/id/interviews with new interview data

Screenshot 2020-10-08 at 16 45 08

Screenshot 2020-10-08 at 16 44 58

Screenshot 2020-10-08 at 16 45 32

<img width="896" alt="Screenshot 2020-10-08 at 16 45 45" src="https://user-images.githubusercontent.com/52701889/95483938-bf522a00-0987-11eb-89b8-b81ff3c68d67.png">

Screenshot 2020-10-08 at 16 45 53

Issue: "When I am in the edit single job page, there isn't a clear way to navigate back to the /mainpage. Looks like you can got to Account > My Applications - happy to leave this for MVP, but could add a button somewhere"

Action: Added a button that directs back to the main page - will need to be styled with CSS so that it is not right next to the delete job button

Screenshot 2020-10-08 at 16 46 20


Issue: "Clicking to advance the green application stage indicators works visually, but I don't see any PATCH requests to the backend to change the stage value"

Action: Wrapped the status circle in a <div> that handles the colour change, the status circle itself sends a patch request. The <div> wrapper itself will need to be styled such that you cannot click the <div> without also clicking the status circle, which is currently not the case.

However, clicking the status circle itself now changes the colour, and sends a patch request for the correct job_id.

Screenshot 2020-10-08 at 16 50 46

Screenshot 2020-10-08 at 16 51 01

kierancott commented 3 years ago

Updated:

Issue: If I add an interview but don't change the "format" drop down the client doesn't include the format in the POST request and fails

Action: Added default values in initial state to be sent if any fields left blank.

Behaviour upon submitting a blank form:

Screenshot 2020-10-08 at 18 12 42 Screenshot 2020-10-08 at 18 12 46

Issue: DELETE interview is failing as Unauthorized

Action:

Screenshot 2020-10-08 at 18 12 19
kierancott commented 3 years ago

Updated

I've changed all components to use state.user_id rather than state.user.user.id, because the user: { ... } object changes structure whereas user_id will remain constant.

Since I've changed all the instances of state.user.user.id to state.user_id, not just the StageTracker.js, this should stop this type of error across the whole app.

Thanks for your thorough testing, let me know if you find any more pesky bugs.

nosvalds commented 3 years ago

New issues

From our Slack discussion

kierancott commented 3 years ago

Updated:

Screenshot 2020-10-09 at 15 37 41
nosvalds commented 3 years ago

APPROVED

kierancott commented 3 years ago

Post-Approval Update:

Thanks, Nik. Just a quick fix to a small issue that fell through the cracks:

Issue: Sending both CV and cover letter, or neither, works - but if you send only one, the API returns Error 422 because the API does not accept an empty string for either value.

Action: Added conditions to the form submission function, that will exclude the CV or Cover letter from the PATCH request if it is left blank