diff --git a/README.md b/README.md index 65eb0ff..af3c17b 100644 --- a/README.md +++ b/README.md @@ -34,6 +34,8 @@ Job Tracker is a simple, powerful, and user-friendly web application designed to - Point of Contact (P.o.C.) - Email - Website + - Status (No response, Interviewing, Job offer, Hired, Not hired) + - Location (Hybrid, Remote, In office) - **Dynamic Filtering**: Quickly find specific applications using search and filter options. - **Real-time Updates**: Leveraging Hotwire for seamless, dynamic content updates without full page reloads. - **Responsive Design**: Fully functional on both desktop and mobile devices. diff --git a/app/views/job_applications/_job_applications_table.html.erb b/app/views/job_applications/_job_applications_table.html.erb index 0d2b877..5824c48 100644 --- a/app/views/job_applications/_job_applications_table.html.erb +++ b/app/views/job_applications/_job_applications_table.html.erb @@ -22,7 +22,7 @@ P.o.C. - + Email diff --git a/db/seeds.rb b/db/seeds.rb index e02cdb9..3508e87 100644 --- a/db/seeds.rb +++ b/db/seeds.rb @@ -1,22 +1,25 @@ -require "faker" +# Commenting out the code below to prevent accidental seeding of the database and to avoid destroying existing data. +# To seed the database, uncomment the code below and run `rails db:seed` in the terminal. -JobApplication.destroy_all -20.times do - method_of_contact = %w[email internet_job_application recruiter].sample - email_address = (method_of_contact == "email") ? Faker::Internet.email : nil - website_link = (method_of_contact == "internet_job_application") ? "https://example.com/" : nil +# require "faker" - JobApplication.create!( - date_applied: Faker::Date.backward(days: 30), - company_name: Faker::Company.name, - method_of_contact: method_of_contact, - email_address: email_address, - point_of_contact: Faker::Name.name, - position_type: %w[full_time part_time internship].sample, - position_title: Faker::Job.title, - website_link: website_link, - claimed_for_unemployment: [true, false].sample, - status: %w[interviewing no_response not_hired job_offer].sample, - location: %w[remote in_office hybrid].sample - ) -end +# JobApplication.destroy_all +# 20.times do +# method_of_contact = %w[email internet_job_application recruiter].sample +# email_address = (method_of_contact == "email") ? Faker::Internet.email : nil +# website_link = (method_of_contact == "internet_job_application") ? "https://example.com/" : nil + +# JobApplication.create!( +# date_applied: Faker::Date.backward(days: 30), +# company_name: Faker::Company.name, +# method_of_contact: method_of_contact, +# email_address: email_address, +# point_of_contact: Faker::Name.name, +# position_type: %w[full_time part_time internship].sample, +# position_title: Faker::Job.title, +# website_link: website_link, +# claimed_for_unemployment: [true, false].sample, +# status: %w[interviewing no_response not_hired job_offer].sample, +# location: %w[remote in_office hybrid].sample +# ) +# end