Skip to content

Conversation

@eshc123
Copy link
Member

@eshc123 eshc123 commented Aug 9, 2025

작업

  • 모임 만남 제안 화면 UI 수정

@eshc123 eshc123 requested review from Copilot and ny2060 August 9, 2025 13:31
@eshc123 eshc123 self-assigned this Aug 9, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR modifies the gathering proposal creation screen UI to support a two-step flow. The key changes include adding state management for gathering information passed via navigation and introducing a preview mode after form completion.

  • Added navigation parameter handling to receive gathering name and ID
  • Implemented a two-step UI flow with a preview state after clicking "Next"
  • Modified the post card component to support both editable and read-only modes

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 6 comments.

File Description
CreateGatheringProposalViewModel.kt Added SavedStateHandle to receive navigation parameters and implement next action handling
CreateGatheringProposalScreen.kt Updated UI to show different content based on ready state and handle next button click
CreateGatheringProposalContract.kt Added new state properties for gathering info and ready state, plus next action
CreateProposalPostCard.kt Enhanced component to support read-only mode when editing is disabled

val whatTags : List<String> = emptyList()
val whatTags : List<String> = emptyList(),
val gatheringName: String,
val gatheringId: Long,
Copy link

Copilot AI Aug 9, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The gatheringName and gatheringId properties are not provided with default values, which will break existing code that creates CreateGatheringProposalState instances without these parameters. Consider adding default values or making these properties nullable with defaults.

Suggested change
val gatheringId: Long,
val gatheringName: String = "",
val gatheringId: Long = 0L,

Copilot uses AI. Check for mistakes.
onWhereRefreshClick = onWhereRefreshClick,
onWhatRefreshClick = onWhatRefreshClick
)
if(isReady) {
Copy link

Copilot AI Aug 9, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing space after 'if' keyword. Should be 'if (isReady)' following Kotlin coding conventions.

Suggested change
if(isReady) {
if (isReady) {

Copilot uses AI. Check for mistakes.
.fillMaxWidth()
.padding(horizontal = 20.dp, vertical = 16.dp),
text = stringResource(R.string.common_next),
text = if(isReady) "제안하기" else stringResource(R.string.common_next),
Copy link

Copilot AI Aug 9, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing space after 'if' keyword and hardcoded Korean text should be moved to string resources for proper internationalization. Consider using stringResource(R.string.proposal_submit) instead of "제안하기".

Suggested change
text = if(isReady) "제안하기" else stringResource(R.string.common_next),
text = if (isReady) stringResource(R.string.proposal_submit) else stringResource(R.string.common_next),

Copilot uses AI. Check for mistakes.
shape = RoundedCornerShape(10.dp),
strokeWidth = 1.dp
.then(
if(isEnabledEditGatheringName) Modifier.dashedBorder(
Copy link

Copilot AI Aug 9, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing space after 'if' keyword. Should be 'if (isEnabledEditGatheringName)' following Kotlin coding conventions.

Suggested change
if(isEnabledEditGatheringName) Modifier.dashedBorder(
if (isEnabledEditGatheringName) Modifier.dashedBorder(

Copilot uses AI. Check for mistakes.
modifier = Modifier.weight(1f),
text = stringResource(R.string.create_proposal_selected_gathering_name, gatheringName),
style = TukSerifTypography.body14R,
textAlign = if(isEnabledEditGatheringName) TextAlign.Start else TextAlign.End,
Copy link

Copilot AI Aug 9, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing space after 'if' keyword. Should be 'if (isEnabledEditGatheringName)' following Kotlin coding conventions.

Suggested change
textAlign = if(isEnabledEditGatheringName) TextAlign.Start else TextAlign.End,
textAlign = if (isEnabledEditGatheringName) TextAlign.Start else TextAlign.End,

Copilot uses AI. Check for mistakes.
contentDescription = "close",
tint = Color(0xFF888888)
)
if(isEnabledEditGatheringName){
Copy link

Copilot AI Aug 9, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing spaces around 'if' keyword and before opening brace. Should be 'if (isEnabledEditGatheringName) {' following Kotlin coding conventions.

Suggested change
if(isEnabledEditGatheringName){
if (isEnabledEditGatheringName) {

Copilot uses AI. Check for mistakes.
@eshc123 eshc123 merged commit f8701d4 into dev Aug 10, 2025
1 check passed
@eshc123 eshc123 deleted the feature/add-proposal-preview branch August 10, 2025 02:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants