-
Notifications
You must be signed in to change notification settings - Fork 2
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
2024 05 16 integrate user feedback #164
Closed
Closed
Changes from 18 commits
Commits
Show all changes
98 commits
Select commit
Hold shift + click to select a range
62d24d9
Merge branch 'master' of github.com:Ches-ctrl/Cheddar
Ches-ctrl 4e3275c
Merge branch 'master' of github.com:Ches-ctrl/Cheddar
Ches-ctrl ff95567
minor update to re-push
Ches-ctrl f1fcdf8
change matching for log and tmp files
Ches-ctrl 45b4d5a
change log file matching
Ches-ctrl d3c9e48
refactor job card into separate partials
Ches-ctrl 35b6271
correct incorrectly placed div
Ches-ctrl 1409c34
update meta tags
Ches-ctrl 535439d
start to add responsiveness
Ches-ctrl 4f11920
adding responsiveness to the index page
Ches-ctrl 4cc794f
install brakeman to review vulnerabilities
Ches-ctrl ea57811
add new relic
Ches-ctrl f15d3f3
hide license key
Ches-ctrl 90f23ac
fetch key
Ches-ctrl 9fa6474
test adding brakeman to github actions
Ches-ctrl 9b49a8f
enable brakeman in test environment
Ches-ctrl 6ab248d
bundle exec
Ches-ctrl 5b90e0c
continue on error
Ches-ctrl 551dc24
add hubspot api client
Ches-ctrl 15d7b84
add utility class for background color
Ches-ctrl e4939cd
update footer
Ches-ctrl 6ec2de8
remove unnecessary css
Ches-ctrl a73ec06
clean about page
Ches-ctrl 5f8ce40
update pages controller
Ches-ctrl 7b55a1e
comment out footer for now
Ches-ctrl ae060c6
remove old pages
Ches-ctrl 5ac0136
tidy routes
Ches-ctrl cf6c1af
minor updates
Ches-ctrl a95fd2a
add todo
Ches-ctrl dfb0810
remove
Ches-ctrl 74eb1ba
adding example component for testing
Ches-ctrl 74f45b9
install sendgrid gem
Ches-ctrl 04ef0df
put signup form in a partial for reuse elsewhere
Ches-ctrl 21ebb18
add user mailer
Ches-ctrl f98b711
add mailer views
Ches-ctrl e7b48a1
add config for sendgrid
Ches-ctrl 03e5e10
add factory bot to rails helper
Ches-ctrl 92198b9
require vcr
Ches-ctrl a8487c3
add emails controller - working this time with proper requires in place
Ches-ctrl 6896fff
add emails to routes
Ches-ctrl 2399d17
add emails controller
Ches-ctrl 013384a
update user mailer
Ches-ctrl 1123e43
add post request to form
Ches-ctrl 92e0f95
tidy
Ches-ctrl cbf1462
install hotjar
Ches-ctrl 2ca2c71
tidying
Ches-ctrl ade5242
refactor script into partial
Ches-ctrl fd6bcd7
tidying 2
Ches-ctrl 54f8afe
install google analytics
Ches-ctrl ed22258
tidying 3
Ches-ctrl 49855f5
move tinymce - will need to check this doesn't break anything
Ches-ctrl 356e543
tidying 5
Ches-ctrl 89b8203
add contact to sendgrid support
Ches-ctrl e8265f8
configure sendgrid in production
Ches-ctrl 0036d3f
rubocop change
Ches-ctrl 5d8ea60
install hubspot api client gem
Ches-ctrl 25a81f3
omit hash value
Ches-ctrl 759b614
move hubspot and sendgrid into service classes to clean up controller
Ches-ctrl 2479024
access token and hubspot tracking
Ches-ctrl 5b9c4fd
add hubspot todo and comment out gem for now
Ches-ctrl 9ab011f
add todo for later
Ches-ctrl b83ea65
update html
Ches-ctrl 6ca05ab
update meta tag
Ches-ctrl f36adec
move css round
Ches-ctrl 1b4851a
col-10 > col-11
Ches-ctrl bb8dbd2
format update
Ches-ctrl 7aa61d5
tidy and add todo to speak with dan
Ches-ctrl d749010
add kaminari and update controller
Ches-ctrl b0a0e87
update container
Ches-ctrl 50a2724
add spacing for pagination links
Ches-ctrl 8d51825
remove will_paginate
Ches-ctrl dd8c2d8
minor padding update
Ches-ctrl 3353941
add utility class for text
Ches-ctrl 0abb407
add sort functionality on index page
Ches-ctrl 14f2d19
scss update
Ches-ctrl ff07be9
add turbo frame
Ches-ctrl 5794b58
add event listener for search box is empty
Ches-ctrl bd1ddda
update formatting for search box
Ches-ctrl 04e8506
bundle update
Ches-ctrl ad75ef8
update styling of category sidebar
Ches-ctrl e0f2e76
sort by
Ches-ctrl 607b860
sort by
Ches-ctrl fff21a8
adding back div
Ches-ctrl d31579f
add responsive dropdowns for mobile
Ches-ctrl 6ef6233
update ordering
Ches-ctrl 310678b
add dropdowns on small screens
Ches-ctrl a60e573
styling updates
Ches-ctrl 8a040e7
make job card look reasonable on small screens - messy and needs upda…
Ches-ctrl 7ebc521
Merge branch 'master' into 2024-05-16-integrate-user-feedback
Ches-ctrl aa50f27
update for git status
Ches-ctrl a98c47f
Merge branch '2024-05-16-integrate-user-feedback' of github.com:Ches-…
Ches-ctrl fcb359f
remove old gem version causing error
Ches-ctrl accd00c
relable other piece
Ches-ctrl 7d0d395
commenting out mobile version for now until we have time to add
Ches-ctrl f045c5d
removing cache for category_sidebar
Ches-ctrl 91d5273
remove rubocop error
Ches-ctrl 1f8d269
turn off hubspot for now
Ches-ctrl 30d83de
removing commented code as causing failures?
Ches-ctrl File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<div class="d-flex align-items-center justify-content-center me-3"> | ||
<% if user_signed_in? %> | ||
<% if @saved_job_ids.include?(job.id) %> | ||
<%= link_to saved_job_path(job.saved_job_ids), data: {turbo_method: :delete} do %> | ||
<i class="fa-solid fa-bookmark pe-2"></i> | ||
<% end %> | ||
<% else %> | ||
<%= link_to job_saved_jobs_path(job), data: {turbo_method: :post} do %> | ||
<i class="fa-regular fa-bookmark pe-2"></i> | ||
<% end %> | ||
<% end %> | ||
<% include_checkboxes ||= false %> | ||
<% if include_checkboxes %> | ||
<div class="ms-3"> | ||
<%= check_box_tag "job_ids[]", job.id, onclick: "document.getElementById('apply_button').disabled = false" %> | ||
</div> | ||
<% end %> | ||
<% end %> | ||
|
||
<%= link_to job.posting_url, target: "_blank" do %> | ||
<i class="fa-solid fa-arrow-up-right-from-square"></i> | ||
<% end %> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<div class="basic-info d-flex flex-column align-items-end justify-space-between text-sm"> | ||
<div class="salaryBudget"><%= job.salary.present? ? job.salary : "<br>".html_safe %></div> | ||
<div class="my-1"><%= job.employment_type %> • | ||
<% if job.remote %> | ||
<%= "Remote"%> | ||
<% elsif job.hybrid %> | ||
<%= "Hybrid" %> | ||
<% else %> | ||
<%= "In-office" %> | ||
<% end %> | ||
</div> | ||
<div><%= job.date_posted.strftime("%d/%m") %> <span class="meter"><hr class="line-horizontal"><div class="triangle-inverted-blue" style="left:<%= (job.deadline.nil? || job.deadline < Date.today) ? 50 : (Date.today - job.date_posted).to_i.fdiv((job.deadline - job.date_posted).to_i) * 100 %>%;"></div></span> <%= (job.deadline.nil? || job.deadline < Date.today) ? "Rolling" : job.deadline.strftime("%d/%m") %></div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<div class="d-flex flex-column align-items-center justify-content-center text-sm"> | ||
<div class="climate-rating"><%# job.company.carbon_pledge || 'no data' %>no data</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<div class="d-flex flex-column align-items-center justify-content-center text-sm"> | ||
<div class="apply-rating"> | ||
<%# To-do: Create a difficulty column for jobs table and transfer this logic to JobCreator; eventually GetFormFieldsJob will distinguish between input and text fields (for longer responses), which will help with accurate classification %> | ||
<% if job.requirement.no_of_qs < 8 && !job.requirement.cover_letter %> | ||
<% apply_rating = 'no data' %> | ||
<% elsif job.requirement.no_of_qs > 15 %> | ||
<% apply_rating = 'hard' %> | ||
<% else %> | ||
<% apply_rating = 'medium' %> | ||
<% end %> | ||
<%= apply_rating %> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,103 +1,17 @@ | ||
<div class="card job-card mb-2" data-select-by-job-type-target="jobRow"> | ||
<div class="row card-body"> | ||
<%# TODO: Store company logo, use clearbit when we don't have one %> | ||
|
||
<%# Logo %> | ||
<div class="col-5 d-flex flex-row align-items-center"> | ||
<div class="d-flex justify-content-center align-items-center mx-2"> | ||
<%= link_to company_path(job.company), target: "_blank" do %> | ||
<%= image_tag("https://logo.clearbit.com/#{job.company.url_website}", onerror: "this.src='https://i.pinimg.com/736x/ec/d9/c2/ecd9c2e8ed0dbbc96ac472a965e4afda.jpg'", style: "width: 60px; height: 60px; padding-right: 0.5rem;") %> | ||
<% end %> | ||
</div> | ||
|
||
<%# Job Title, Company, Location %> | ||
<div class="d-flex flex-column justify-content-center align-items-start" data-role="<%= job.title %>"> | ||
<%= link_to job_path(job), target: "_blank" do %> | ||
<strong><%= job.title.truncate(35) %></strong> | ||
<% end %> | ||
|
||
<%= link_to company_path(job.company), target: "_blank" do %> | ||
<strong class="text-sm"><%= job.company.name %></strong> | ||
<% end %> | ||
|
||
<div class="text-sm"> | ||
<% if job.remote || job.locations.empty? %> | ||
Remote | ||
<% else %> | ||
<%= job.locations.map(&:city).join(' | ') %> | ||
<% end %> | ||
<% if job.countries.loaded? || job.countries.count == 1 %> | ||
<%= " | #{job.countries.first.name}" if job.countries.count == 1 %> | ||
<% else %> | ||
<%= " | #{job.countries.first.name}" if job.countries.size == 1 %> | ||
<% end %> | ||
</div> | ||
</div> | ||
<%# Logo & Info %> | ||
<div class="col-12 col-md-5 col-lg-5 d-flex flex-row align-items-center mb-2 mb-md-0"> | ||
<%= render partial: 'jobs/logo', locals: { job: job } %> | ||
<%= render partial: 'jobs/job_info', locals: { job: job } %> | ||
</div> | ||
|
||
<%# Job Details %> | ||
<div class="col-7 d-flex flex-row justify-content-between align-items-center"> | ||
|
||
<%# Salary etc. %> | ||
<div class="basic-info d-flex flex-column align-items-end justify-space-between text-sm"> | ||
<div class="salaryBudget"><%= job.salary.present? ? job.salary : "<br>".html_safe %></div> | ||
<div class="my-1"><%= job.employment_type %> • | ||
<% if job.remote %> | ||
<%= "Remote"%> | ||
<% elsif job.hybrid %> | ||
<%= "Hybrid" %> | ||
<% else %> | ||
<%= "In-office" %> | ||
<% end %> | ||
</div> | ||
<div><%= job.date_posted.strftime("%d/%m") %> <span class="meter"><hr class="line-horizontal"><div class="triangle-inverted-blue" style="left:<%= (job.deadline.nil? || job.deadline < Date.today) ? 50 : (Date.today - job.date_posted).to_i.fdiv((job.deadline - job.date_posted).to_i) * 100 %>%;"></div></span> <%= (job.deadline.nil? || job.deadline < Date.today) ? "Rolling" : job.deadline.strftime("%d/%m") %></div> | ||
</div> | ||
|
||
<%# Net Zero Rating %> | ||
<div class="d-flex flex-column align-items-center justify-content-center text-sm"> | ||
<div class="climate-rating"><%# job.company.carbon_pledge || 'no data' %>no data</div> | ||
</div> | ||
|
||
<%# Ease of Applying %> | ||
<div class="d-flex flex-column align-items-center justify-content-center text-sm"> | ||
<div class="apply-rating"> | ||
<%# To-do: Create a difficulty column for jobs table and transfer this logic to JobCreator; eventually GetFormFieldsJob will distinguish between input and text fields (for longer responses), which will help with accurate classification %> | ||
<% if job.requirement.no_of_qs < 8 && !job.requirement.cover_letter %> | ||
<% apply_rating = 'no data' %> | ||
<% elsif job.requirement.no_of_qs > 15 %> | ||
<% apply_rating = 'hard' %> | ||
<% else %> | ||
<% apply_rating = 'medium' %> | ||
<% end %> | ||
<%= apply_rating %> | ||
</div> | ||
</div> | ||
|
||
|
||
<%# Add job to basket %> | ||
<div class="d-flex align-items-center justify-content-center me-3"> | ||
<% if user_signed_in? %> | ||
<% if @saved_job_ids.include?(job.id) %> | ||
<%= link_to saved_job_path(job.saved_job_ids), data: {turbo_method: :delete} do %> | ||
<i class="fa-solid fa-bookmark pe-2"></i> | ||
<% end %> | ||
<% else %> | ||
<%= link_to job_saved_jobs_path(job), data: {turbo_method: :post} do %> | ||
<i class="fa-regular fa-bookmark pe-2"></i> | ||
<% end %> | ||
<% end %> | ||
<% include_checkboxes ||= false %> | ||
<% if include_checkboxes %> | ||
<div class="ms-3"> | ||
<%= check_box_tag "job_ids[]", job.id, onclick: "document.getElementById('apply_button').disabled = false" %> | ||
</div> | ||
<% end %> | ||
<% end %> | ||
|
||
<%= link_to job.posting_url, target: "_blank" do %> | ||
<i class="fa-solid fa-arrow-up-right-from-square"></i> | ||
<% end %> | ||
</div> | ||
<div class="col-12 col-md-7 col-lg-7 d-flex flex-row justify-content-between align-items-center"> | ||
<%= render partial: 'jobs/basic_info', locals: { job: job } %> | ||
<%= render partial: 'jobs/climate_rating', locals: { job: job } %> | ||
<%= render partial: 'jobs/difficulty_rating', locals: { job: job } %> | ||
<%= render partial: 'jobs/add_job_to_basket', locals: { job: job, saved_job_ids: @saved_job_ids } %> | ||
</div> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<div class="d-flex flex-column justify-content-center align-items-start" data-role="<%= job.title %>"> | ||
<%= link_to job_path(job), target: "_blank" do %> | ||
<strong><%= job.title.truncate(35) %></strong> | ||
<% end %> | ||
|
||
<%= link_to company_path(job.company), target: "_blank" do %> | ||
<strong class="text-sm"><%= job.company.name %></strong> | ||
<% end %> | ||
|
||
<div class="text-sm"> | ||
<% if job.remote || job.locations.empty? %> | ||
Remote | ||
<% else %> | ||
<%= job.locations.map(&:city).join(' | ') %> | ||
<% end %> | ||
<% if job.countries.loaded? || job.countries.count == 1 %> | ||
<%= " | #{job.countries.first.name}" if job.countries.count == 1 %> | ||
<% else %> | ||
<%= " | #{job.countries.first.name}" if job.countries.size == 1 %> | ||
<% end %> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<div class="d-flex justify-content-center align-items-center mx-2"> | ||
<%= link_to company_path(job.company), target: "_blank" do %> | ||
<%= image_tag("https://logo.clearbit.com/#{job.company.url_website}", onerror: "this.src='https://i.pinimg.com/736x/ec/d9/c2/ecd9c2e8ed0dbbc96ac472a965e4afda.jpg'", style: "width: 60px; height: 60px; padding-right: 0.5rem;") %> | ||
<% end %> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,20 @@ | ||
<%# The title meta tag here seems to be affecting the filter_category_sidebar. Not sure how to fix because I don't want to break anything but uncomment the title "All Jobs" below to see what I mean %> | ||
|
||
<%# <% title "All Jobs" %> | ||
<% description "Discover thousands of jobs on our platform. With Cheddar's innovative one-click applciation process, you can select multiple positions that interest you and apply to all of them at once without having to leave our site." %> | ||
<% title "Find Jobs" %> | ||
<% description "Discover and apply to thousands of jobs with Cheddar's innovative one-click application process. Add jobs that interest you to your basket and apply to all of them at once, without ever need to leave our site." %> | ||
|
||
<div class="container" data-controller="select-by-job-type"> | ||
|
||
<div class="d-flex justify-content-center align-items-center pb-4"> | ||
<%= render 'search' %> | ||
<div class="row d-flex justify-content-center align-items-center pb-4"> | ||
<div class="col-12 col-md-8"> | ||
<%= render 'search' %> | ||
</div> | ||
</div> | ||
|
||
<div class="row"> | ||
<%= render 'category_sidebar' %> | ||
<%= render 'job_cards_container' %> | ||
<div class="col-12 col-md-9 order-md-2"> | ||
<%= render 'job_cards_container' %> | ||
</div> | ||
<div class="col-12 col-md-3 order-md-1 mb-4 mb-md-0"> | ||
<%= render 'category_sidebar' %> | ||
</div> | ||
</div> | ||
</div> |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Check notice
Code scanning / Brakeman
Potentially unsafe model attribute in link_to href. Note