Skip to content

[IDLE-141] 공고 지원자 확인및 공고 지원자 프로필 확인 #37

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

Merged
merged 20 commits into from
Aug 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
33f3827
[IDLE-141] 이미지가 Prefix로 배치된 라벨 버튼 구현
J0onYEong Aug 12, 2024
6f0d055
[IDLE-141] CenterEmployCard 컴포넌트 구현
J0onYEong Aug 12, 2024
8d5e6b8
[IDLE-141] CenterEmployCardCell 컴포넌트 구현
J0onYEong Aug 12, 2024
83e9354
[IDLE-141] CenterEmployCardInfoView분리
J0onYEong Aug 12, 2024
88f63a7
[IDLE-141] PostInfoCardView 컴포넌트 구현
J0onYEong Aug 12, 2024
e89aeb2
[IDLE-141] IdleSecondaryButton 컴포넌트 구현
J0onYEong Aug 12, 2024
73e8c56
[IDLE-141] ApplicantCardView 컴포넌트 구현
J0onYEong Aug 12, 2024
1e1503c
[IDLE-141] ApplicantCardCell 컴포넌트 구현
J0onYEong Aug 12, 2024
d793de5
[IDLE-141] 상단 탭바 컴포넌트 구현
J0onYEong Aug 12, 2024
780ff73
[IDLE-141] 상단 탭바 작업완료
J0onYEong Aug 12, 2024
032c468
[IDLE-141] 공고 관리 메인화면 구현완료
J0onYEong Aug 13, 2024
6161eee
[IDLE-141] ViewModel을 참조하도록 수정
J0onYEong Aug 13, 2024
22f2922
[IDLE-141] 지원자확인 창으로 이동 구현
J0onYEong Aug 13, 2024
658e0ec
[IDLE-141] 지원자 확인창 나가기 로직 구현
J0onYEong Aug 13, 2024
a823e1d
[IDLE-141] 지원자 확인창에서 요양보호사 프로필 이동 로직 구현
J0onYEong Aug 14, 2024
abceca2
[IDLE-141] 프로필 화면 탈출 로직 수정
J0onYEong Aug 14, 2024
9f5b3fc
[IDLE-141] 요양보호사 프로필뷰 스크롤 뷰 적용
J0onYEong Aug 14, 2024
fd12a1c
[IDLE-141] IdleNavigationBar 구현
J0onYEong Aug 14, 2024
e3e4492
[IDLE-146] 스타버튼 주석 처리
J0onYEong Aug 14, 2024
7c6cecd
[IDLE-146] 예시앱 코드 수정
J0onYEong Aug 14, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions project/Projects/App/Sources/DI/Assembly/DomainAssembly.swift
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,12 @@ public struct DomainAssembly: Assembly {
repository: repository
)
}

container.register(WorkerProfileUseCase.self) { resolver in
let repository = resolver.resolve(UserProfileRepository.self)!

return DefaultWorkerProfileUseCase(repository: repository)
}

}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//
// AuthCoordinator+Extension.swift
// AuthFeature
// Idle-iOS
//
// Created by choijunios on 6/30/24.
//
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//
// AuthCoordinator.swift
// AuthFeature
// Idle-iOS
//
// Created by choijunios on 6/30/24.
//
Expand All @@ -11,6 +11,11 @@ import AuthFeature

class AuthCoordinator: ParentCoordinator {

struct Dependency {
let navigationController: UINavigationController
let injector: Injector
}

var childCoordinators: [Coordinator] = []

var parent: ParentCoordinator?
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ import ConcreteRepository

class CenterAuthCoorinator: ParentCoordinator {

struct Dependency {
let navigationController: UINavigationController
let injector: Injector
}

var childCoordinators: [Coordinator] = []

var parent: AuthCoordinatable?
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//
// WorkerAuthCoordinator.swift
// AuthFeature
// Idle-iOS
//
// Created by choijunios on 6/30/24.
//
Expand All @@ -12,6 +12,11 @@ import AuthFeature

class WorkerAuthCoordinator: ParentCoordinator {

struct Dependency {
let navigationController: UINavigationController
let injector: Injector
}

var childCoordinators: [Coordinator] = []

var navigationController: UINavigationController
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,15 @@ import UIKit
import DSKit
import PresentationCore
import RootFeature
import UseCaseInterface

class CenterMainCoordinator: CenterMainCoordinatable {

struct Dependency {
let navigationController: UINavigationController
let injector: Injector
}

var childCoordinators: [Coordinator] = []

var parent: ParentCoordinator?
Expand Down Expand Up @@ -46,7 +53,7 @@ class CenterMainCoordinator: CenterMainCoordinatable {
func createNavForTab(tab: CenterMainScreen) -> UINavigationController {

let tabNavController = UINavigationController()
tabNavController.setNavigationBarHidden(false, animated: false)
tabNavController.setNavigationBarHidden(true, animated: false)

startTabCoordinator(
tab: tab,
Expand All @@ -58,13 +65,16 @@ class CenterMainCoordinator: CenterMainCoordinatable {
// #2. 생성한 컨트롤러를 각 탭별 Coordinator에 전달
func startTabCoordinator(tab: CenterMainScreen, navigationController: UINavigationController) {

var coordinator: ChildCoordinator!
var coordinator: Coordinator!

switch tab {
case .recruitmentManage:
coordinator = RecruitmentManagementCoordinator(
parent: self,
navigationController: navigationController
dependency: .init(
parent: self,
navigationController: navigationController,
workerProfileUseCase: injector.resolve(WorkerProfileUseCase.self)
)
)

case .setting:
Expand Down Expand Up @@ -95,6 +105,7 @@ enum CenterMainScreen: Int, CaseIterable {
}
}

// Test
extension CenterMainCoordinator {

/// 센터 정보등록 창을 표시합니다.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ import PresentationCore
import UseCaseInterface

class CenterProfileRegisterCoordinator: CenterProfileRegisterCoordinatable {

struct Dependency {
let navigationController: UINavigationController
let injector: Injector
}

var childCoordinators: [Coordinator] = []

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ import UseCaseInterface

class RegisterRecruitmentPostCoordinator: RegisterRecruitmentPostCoordinatable {

struct Dependency {
let navigationController: UINavigationController
let injector: Injector
}

var childCoordinators: [Coordinator] = []

var parent: ParentCoordinator?
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ import PresentationCore
import RootFeature

class WorkerMainCoordinator: ParentCoordinator {

struct Dependency {
let navigationController: UINavigationController
let injector: Injector
}

var childCoordinators: [Coordinator] = []

var parent: ParentCoordinator?
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@
import UIKit
import PresentationCore

struct Dependency {
let navigationController: UINavigationController
let injector: Injector
}

class RootCoordinator: ParentCoordinator {

struct Dependency {
let navigationController: UINavigationController
let injector: Injector
}

var childCoordinators: [Coordinator] = []

let navigationController: UINavigationController
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
//
// CenterEmployCardVO.swift
// Entity
//
// Created by choijunios on 8/13/24.
//

import Foundation

public class CenterEmployCardVO {

public let postId: String
public let isOngoing: Bool

// For rendering
public let startDay: String
public let endDay: String?
public let postTitle: String
public let name: String
public let careGrade: CareGrade
public let age: Int
public let gender: Gender
public let applicantCount: Int

public init(
isOngoing: Bool,
postId: String,
startDay: String,
endDay: String?,
postTitle: String,
name: String,
careGrade: CareGrade,
age: Int,
gender: Gender,
applicantCount: Int
) {
self.isOngoing = isOngoing
self.postId = postId
self.startDay = startDay
self.endDay = endDay
self.postTitle = postTitle
self.name = name
self.careGrade = careGrade
self.age = age
self.gender = gender
self.applicantCount = applicantCount
}

public static var mock: CenterEmployCardVO {
.init(
isOngoing: true,
postId: "00-00000-00000",
startDay: "12:00",
endDay: nil,
postTitle: "서울특별시 강남구 신사동",
name: "홍길동",
careGrade: .one,
age: 78,
gender: .female,
applicantCount: 78
)
}
}
45 changes: 45 additions & 0 deletions project/Projects/Domain/Entity/VO/Employ/PostApplicantVO.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
//
// PostApplicantVO.swift
// Entity
//
// Created by choijunios on 8/13/24.
//

import Foundation

public struct PostApplicantVO {

//
public let workerId: String

// For Render
public let profileUrl: URL?
public let isJobFinding: Bool
public let isStared: Bool
public let name: String
public let age: Int
public let gender: Gender
public let expYear: Int?

public init(workerId: String, profileUrl: URL?, isJobFinding: Bool, isStared: Bool, name: String, age: Int, gender: Gender, expYear: Int?) {
self.workerId = workerId
self.profileUrl = profileUrl
self.isJobFinding = isJobFinding
self.isStared = isStared
self.name = name
self.age = age
self.gender = gender
self.expYear = expYear
}

public static let mock: PostApplicantVO = .init(
workerId: "testworkerId",
profileUrl: URL(string: "https://dummyimage.com/600x400/00ffbf/0011ff&text=worker+profile"),
isJobFinding: false,
isStared: false,
name: "홍길동",
age: 51,
gender: .female,
expYear: nil
)
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"colors" : [
{
"color" : {
"color-space" : "srgb",
"components" : {
"alpha" : "1.000",
"blue" : "0xFF",
"green" : "0xFF",
"red" : "0xFE"
}
},
"idiom" : "universal"
},
{
"appearances" : [
{
"appearance" : "luminosity",
"value" : "dark"
}
],
"color" : {
"color-space" : "srgb",
"components" : {
"alpha" : "1.000",
"blue" : "0xFF",
"green" : "0xFF",
"red" : "0xFE"
}
},
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"images" : [
{
"filename" : "bell.svg",
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
},
"properties" : {
"template-rendering-intent" : "template"
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"images" : [
{
"filename" : "post_check.svg",
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
},
"properties" : {
"template-rendering-intent" : "template"
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"images" : [
{
"filename" : "post_edit.svg",
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
},
"properties" : {
"template-rendering-intent" : "template"
}
}
Loading
Loading