Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,15 @@ import com.afternote.core.ui.theme.AfternoteDesign
import com.afternote.core.ui.theme.AfternoteTheme
import com.afternote.feature.afternote.presentation.R
import com.afternote.feature.afternote.presentation.receiver.deliveryverification.component.RECEIVER_VERIFY_HEADER_SPACING
import com.afternote.feature.afternote.presentation.receiver.deliveryverification.component.RECEIVER_VERIFY_TOTAL_STEPS
import com.afternote.feature.afternote.presentation.receiver.deliveryverification.component.ReceiverVerifyStep

/**
* 열람 신청 완료 화면(design 9) — `submitDeliveryVerification` 성공 직후 노출 (이슈 #215).
*
* 시안 그대로: TopBar "수신자 인증" + h1 "열람 신청 완료" + 안내 2 줄 + 하단 CTA "받은 기록함으로 돌아가기".
* 진행 인디케이터는 시안에 없으므로 미표시. 실제 신청 제출은 [DocumentUploadViewModel.submit] 이 수행하므로
* 본 화면은 결과 안내 + 복귀 액션만 제공한다.
* 진행 인디케이터는 마지막 단계(4/4)로 100% 채워 표시 — 열람 신청 완료를 꽉 찬 바로 나타낸다.
* 실제 신청 제출은 [DocumentUploadViewModel.submit] 이 수행하므로 본 화면은 결과 안내 + 복귀 액션만 제공한다.
*/
@Composable
fun DeliveryVerificationCompleteScreen(
Expand All @@ -32,7 +34,9 @@ fun DeliveryVerificationCompleteScreen(
actionButtonText = stringResource(R.string.receiver_verify_complete_back_to_records),
onBackClick = onBackToRecords,
onActionClick = onBackToRecords,
currentStep = null,
currentStep = ReceiverVerifyStep.COMPLETE,
totalSteps = RECEIVER_VERIFY_TOTAL_STEPS,
progressContentDescription = stringResource(R.string.receiver_verify_step_description, ReceiverVerifyStep.COMPLETE),
modifier = modifier,
) {
Spacer(modifier = Modifier.height(RECEIVER_VERIFY_HEADER_SPACING))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,28 @@ package com.afternote.feature.afternote.presentation.receiver.deliveryverificati

import androidx.compose.ui.unit.Dp
import androidx.compose.ui.unit.dp
import com.afternote.feature.afternote.presentation.receiver.deliveryverification.component.ReceiverVerifyStep.IDENTITY

/**
* 수신자 인증 흐름(designs 2·3·4·5·6·7·8)의 단계 상수.
* 수신자 인증 흐름(designs 2·3·4·5·6·7·8·9)의 단계 상수.
*
* 본인 확인(1) → 마스터 키(2) → 서류 업로드(3). 진행 인디케이터의 `currentStep` 인자에 전달된다.
* `core/ui` 의 공용 [com.afternote.core.ui.scaffold.FlowStepScaffold] 사용 시 [RECEIVER_VERIFY_TOTAL_STEPS]
* 를 `totalSteps` 로 함께 넘긴다.
* 본인 확인(1) → 마스터 키(2) → 서류 업로드(3) → 완료(4). 진행 인디케이터의 `currentStep` 인자에
* 전달된다. `core/ui` 의 공용 [com.afternote.core.ui.scaffold.FlowStepScaffold] 사용 시
* [RECEIVER_VERIFY_TOTAL_STEPS] 를 `totalSteps` 로 함께 넘긴다.
*
* 주의: 단계는 4개지만 화면은 5개다 — 본인 확인(1)은 Intro·Email 두 화면이 공유한다(둘 다 [IDENTITY]
* 전달). 따라서 소개→이메일 전환 시 바가 25%에 멈춰 있고, 마지막 [COMPLETE](4)에서 바가 100%로 꽉 찬다
* (완료를 바 숨김으로 두지 않고 진행을 끝까지 채워 보여준다).
*/
object ReceiverVerifyStep {
const val IDENTITY: Int = 1
const val MASTER_KEY: Int = 2
const val DOCUMENTS: Int = 3
const val COMPLETE: Int = 4
}

/** 수신자 인증 진행 단계 총수 (본인 확인·마스터 키·서류). */
const val RECEIVER_VERIFY_TOTAL_STEPS: Int = 3
/** 수신자 인증 진행 단계 총수 (본인 확인·마스터 키·서류·완료). */
const val RECEIVER_VERIFY_TOTAL_STEPS: Int = 4

/**
* 수신자 인증 흐름 공통: progress 아래·헤드라인 위 spacing.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@
<string name="receiver_verify_document_uploading">업로드 중…</string>
<string name="receiver_verify_complete_description">제출하신 서류를 확인 중입니다.\n빠르게 검토하여 열람하실 수 있도록 안내드리겠습니다.</string>
<string name="receiver_verify_complete_back_to_records">받은 기록함으로 돌아가기</string>
<string name="receiver_verify_step_description">수신자 인증 진행도 3단계 중 %1$d단계</string>
<string name="receiver_verify_step_description">수신자 인증 진행도 4단계 중 %1$d단계</string>

<string name="login_kakao_button">카카오로 로그인</string>
<string name="login_kakao_backend_not_ready">카카오 토큰을 발급받았습니다. 서버 연동(/auth/kakao) 대기 중입니다.</string>
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading