| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071 |
- //
- // DashboardModels.swift
- // App for Indeed
- //
- import Foundation
- struct SidebarItem {
- let title: String
- let systemImage: String
- let badge: String?
- }
- struct JobListing: Hashable, Codable {
- let title: String
- let description: String
- let url: String?
- }
- struct DashboardData {
- let subtitle: String
- let sidebarItems: [SidebarItem]
- let jobListings: [JobListing]
- }
- protocol DashboardDataProviding {
- func loadDashboardData() -> DashboardData
- }
- final class MockDashboardDataProvider: DashboardDataProviding {
- func loadDashboardData() -> DashboardData {
- DashboardData(
- subtitle: L("Find your perfect job with the power of AI."),
- sidebarItems: [
- SidebarItem(title: L("Home"), systemImage: "house.fill", badge: nil),
- SidebarItem(title: L("Saved Jobs"), systemImage: "heart", badge: nil),
- SidebarItem(title: L("CV Maker"), systemImage: "doc.text", badge: nil),
- SidebarItem(title: L("Profile"), systemImage: "person", badge: nil),
- SidebarItem(title: L("Settings"), systemImage: "gearshape", badge: nil)
- ],
- jobListings: [
- JobListing(
- title: "Senior iOS Engineer",
- description: "Build polished native software in Swift and SwiftUI. Remote-friendly team, strong product focus, and mentorship for mid-level engineers.",
- url: "https://www.indeed.com/jobs?q=Senior+iOS+Engineer"
- ),
- JobListing(
- title: "Product Designer",
- description: "Own end-to-end UX for job seeker flows—from discovery to apply. Figma systems, accessibility, and close collaboration with engineering.",
- url: "https://www.indeed.com/jobs?q=Product+Designer"
- ),
- JobListing(
- title: "Machine Learning Engineer",
- description: "Improve search and recommendations using large-scale data. Python, PyTorch, and production software for ML pipelines; research-to-ship mindset.",
- url: "https://www.indeed.com/jobs?q=Machine+Learning+Engineer"
- ),
- JobListing(
- title: "Technical Recruiter",
- description: "Partner with hiring managers to grow engineering teams. Full-cycle recruiting, inclusive sourcing, and a high-trust candidate experience.",
- url: "https://www.indeed.com/jobs?q=Technical+Recruiter"
- ),
- JobListing(
- title: "Customer Success Manager",
- description: "Help employers get the most from their hiring tools. Onboarding, training, and proactive check-ins with a metrics-driven playbook.",
- url: "https://www.indeed.com/jobs?q=Customer+Success+Manager"
- )
- ]
- )
- }
- }
|