Skip to content

Conversation

@eshc123
Copy link
Member

@eshc123 eshc123 commented Jul 23, 2025

작업

  • 디자인 시스템 TopAppBar 추가
  • 홈 화면 TopAppBar 추가

@eshc123 eshc123 requested review from Copilot and ny2060 July 23, 2025 11:48
@eshc123 eshc123 self-assigned this Jul 23, 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 adds a TopAppBar component to the design system and integrates it into the home screen. The changes introduce a new reusable TopAppBar component and updates the home screen layout to use this component with a my page button.

  • Adds a new TukTopAppBar component to the design system
  • Integrates the TopAppBar into the home screen with a my page action button
  • Replaces the old user icon with a new my page icon

Reviewed Changes

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

Show a summary per file
File Description
TukApp.kt Updates Scaffold with white background color
HomeScreen.kt Restructures layout to include TopAppBar and adds preview function
ic_user.xml Removes old user icon drawable
ic_mypage.xml Adds new my page icon drawable
TopAppBar.kt Creates new TukTopAppBar component
build.gradle.kts Adds Compose library dependency to design system module

Scaffold(
modifier = modifier.fillMaxSize()
modifier = modifier.fillMaxSize(),
containerColor = Color.White
Copy link

Copilot AI Jul 23, 2025

Choose a reason for hiding this comment

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

Using hardcoded Color.White may not support theming or dark mode. Consider using a theme-aware color from MaterialTheme.colorScheme.background or defining it in your design system.

Suggested change
containerColor = Color.White
containerColor = MaterialTheme.colorScheme.background

Copilot uses AI. Check for mistakes.
modifier = modifier
.height(64.dp)
.fillMaxWidth()
.padding(end = if(actionButtons == null) 20.dp else 12.dp),
Copy link

Copilot AI Jul 23, 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 (actionButtons == null)' according to Kotlin coding conventions.

Suggested change
.padding(end = if(actionButtons == null) 20.dp else 12.dp),
.padding(end = if (actionButtons == null) 20.dp else 12.dp),

Copilot uses AI. Check for mistakes.
modifier = modifier
.height(64.dp)
.fillMaxWidth()
.padding(end = if(actionButtons == null) 20.dp else 12.dp),
Copy link

Copilot AI Jul 23, 2025

Choose a reason for hiding this comment

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

Magic numbers 20.dp and 12.dp should be extracted as named constants or defined in a dimensions resource file for better maintainability.

Suggested change
.padding(end = if(actionButtons == null) 20.dp else 12.dp),
.padding(end = if(actionButtons == null) DEFAULT_PADDING else ACTION_BUTTONS_PADDING),

Copilot uses AI. Check for mistakes.
@eshc123 eshc123 merged commit cecbe19 into dev Jul 23, 2025
1 check passed
@eshc123 eshc123 deleted the feature/add-top-app-bar branch July 23, 2025 11:54
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