Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setup basic route/view/controller for mentee application states #447

Open
wants to merge 11 commits into
base: main
Choose a base branch
from

Conversation

JoshDevHub
Copy link
Collaborator

What's the change?

  • Create route, controller action, and view for mentee application states
  • Link to current mentee application state on applications#index rather than the application itself
  • Add new model methods for getting future and past states from any given mentee application state
  • Introduced basic styles to the show page. Text content is spec'd in i18n file

What key workflows are impacted?

Viewing application state for applicants

Highlights / Surprises / Risks / Cleanup

Going to mention some highlights in some review comments

Potential surprise: we're kicking the full styling to a different PR.
Another potential surprise: we currently only have the text content for the application_received state. This is so we can confirm this PR's approach to this is the one we want to go with.

Demo / Screenshots

image

Issue ticket number and link

Closes #442

Checklist before requesting a review

Please delete items that are not relevant.

  • Did you add appropriate automated tests?
  • Have you thought of misfiring code? e.g. too many loops, n+1, or how to handle nils?
  • Did you leave helpful inline PR comments for the reviewer(s)?
  • Did you add any relevant tags and decide if this PR is a Draft vs. Ready for Review?

Copy link

codecov bot commented Dec 1, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (06c9b49) 99.26% compared to head (daec3b6) 99.27%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #447   +/-   ##
=======================================
  Coverage   99.26%   99.27%           
=======================================
  Files         219      220    +1     
  Lines        3393     3437   +44     
=======================================
+ Hits         3368     3412   +44     
  Misses         25       25           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

end

def next_state
user_mentee_application.mentee_application_states.where('created_at > ?', created_at).order(:created_at).first
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These methods could arguably go on the user_mentee_application, but it'd have to accept a parameter for the state. This is one thing I'm not too sure about.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

these are fine for now

Copy link
Collaborator

@toyhammered toyhammered left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One change related to the en.yml file.

end

def next_state
user_mentee_application.mentee_application_states.where('created_at > ?', created_at).order(:created_at).first
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

these are fine for now

Copy link
Collaborator Author

@JoshDevHub JoshDevHub left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some comments related to the copy we show people at each stage of the process


<p>You have been sent an email with a coding challenge. This should take you no more than 2-3 hours to complete.</p>

<!-- TODO: fill in more content here -->
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we want more copy here?

@@ -0,0 +1,3 @@
<h3>Coding Challenge Approved</h3>

<!-- TODO: do we need this step anymore? It's not outlined in the notion -->
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This step is not in the notion outline for this feature. Do we want it?


<p>You have submitted your solution to our coding challenge. We will contact you after our team has reviewed your work.</p>

<!-- TODO: fill more content here -->
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this need any more copy?

@@ -0,0 +1,3 @@
<h3>Phone Screen Completed</h3>

<!-- This is another status I'm not sure we need? -->
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't think we need this?

@@ -0,0 +1,5 @@
<h3>Phone Screen</h3>

<p>We would like to schedule a zoom call with you. This call is a quick interview with one of our senior members. It will last about 30 minutes. We will have read your application and reviewed your code. The ideal call is an informal conversation about your goals and your coding journey. There will also be an opportunity for you to ask us questions as well.</p>
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe this open with something about how we reviewed their code challenge and liked it?


<p>You have withdrawn your application to the Agency.</p>

<!-- TODO the notion references links? What might those be? -->
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Notion references different links that we could give the user here. What did people have in mind for this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[UserMenteeApplication-2.0] Setup Routes for Mentee Application States view
3 participants