Skip to content
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

๐Ÿ”€ :: (#202) - ๋ฐ•๋žŒํšŒ ์ƒ์„ฑ ํ™”๋ฉด๋ฅผ ํผ๋ธ”๋ฆฌ์‹ฑ ํ–ˆ์Šต๋‹ˆ๋‹ค. #203

Merged
merged 16 commits into from
Nov 14, 2024

Conversation

audgns10
Copy link
Member

@audgns10 audgns10 commented Nov 14, 2024

๐Ÿ’ก ๊ฐœ์š”

  • ๋ฐ•๋žŒํšŒ ์ƒ์„ฑ ํ™”๋ฉด ํผ๋ธ”๋ฆฌ์‹ฑ์ด ํ•„์š”ํ•ด๋ณด์˜€์Šต๋‹ˆ๋‹ค.

๐Ÿ“ƒ ์ž‘์—…๋‚ด์šฉ

  • ๋ฐ•๋žŒํšŒ ์ƒ์„ฑ ํ™”๋ฉด ํผ๋ธ”๋ฆฌ์‹ฑ์„ ํ•˜์˜€์Šต๋‹ˆ๋‹ค.
    • ์—ฌ๋Ÿฌ๋ฒˆ ์‚ฌ์šฉ๋˜๋Š” ์ปดํฌ๋„ŒํŠธ๊ฐ€ ์กด์žฌํ•˜์—ฌ Feature ๋ชจ๋“ˆ ์•ˆ์˜ ์ปดํฌ๋„ŒํŠธ ํŽ˜ํ‚ค์ง€๊ฐ€ ์•„๋‹Œ Design-System์˜ TextField ์ปดํฌ๋„ŒํŠธ๋กœ ์˜ฎ๊ฒผ์Šต๋‹ˆ๋‹ค.

    • ๋„ค๋น„๊ฒŒ์ด์…˜๋ฐ”๊ฐ€ ์•„์ดํ…œ๊ณผ ๊ณ‚์น˜๋Š” ๋ฌธ์ œ๊ฐ€ ์กด์žฌํ•˜์—ฌ paddingValues๋ฅผ ์ ์šฉํ•˜์—ฌ ํ•ด๊ฒฐํ•˜์˜€์Šต๋‹ˆ๋‹ค.

    • ํ•ด๋‹น ํ™”๋ฉด์˜ ๋„ค๋น„๊ฒŒ์ด์…˜ ์„ธํŒ…์„ ํ•˜์˜€์Šต๋‹ˆ๋‹ค.

    • 2024-11-14.11.10.56.mov

๐Ÿ”€ ๋ณ€๊ฒฝ์‚ฌํ•ญ

  • add ExpoCreateScreen
  • chore Move The Feature Component To The Design System Component

๐Ÿ™‹โ€โ™‚๏ธ ์งˆ๋ฌธ์‚ฌํ•ญ

  • ๊ฐœ์„ ํ•  ์ , ์˜คํƒ€, ์ฝ”๋“œ์— ์ด์ƒํ•œ ๋ถ€๋ถ„์ด ์žˆ๋‹ค๋ฉด Comment ๋‹ฌ์•„์ฃผ์„ธ์š”.

๐Ÿด ์‚ฌ์šฉ๋ฐฉ๋ฒ•

  • x

๐ŸŽธ ๊ธฐํƒ€

-x

Summary by CodeRabbit

  • ์ƒˆ๋กœ์šด ๊ธฐ๋Šฅ
    • Expo ์ƒ์„ฑ ํ™”๋ฉด์„ ์œ„ํ•œ ์ƒˆ๋กœ์šด ๋‚ด๋น„๊ฒŒ์ด์…˜ ๊ฒฝ๋กœ ๋ฐ ๊ธฐ๋Šฅ ์ถ”๊ฐ€.
    • Expo ์ƒ์„ฑ ์ด๋ฒคํŠธ๋ฅผ ์œ„ํ•œ ์‚ฌ์šฉ์ž ์ธํ„ฐํŽ˜์ด์Šค ๋ฐ ์ด๋ฏธ์ง€ ์„ ํƒ ๊ธฐ๋Šฅ ์ถ”๊ฐ€.
    • ํ…์ŠคํŠธ ํ•„๋“œ์— ์œ„์น˜ ์•„์ด์ฝ˜ ๋ฒ„ํŠผ ํ†ตํ•ฉ.
    • ๋‚ด๋น„๊ฒŒ์ด์…˜ ๊ทธ๋ž˜ํ”„์— ์ƒˆ๋กœ์šด ํ™”๋ฉด ์ถ”๊ฐ€.
  • ๋ฒ„๊ทธ ์ˆ˜์ •
    • ๊ธฐ์กด UI ์ปดํฌ๋„ŒํŠธ๋ฅผ ์ƒˆ๋กœ์šด ์ปดํฌ๋„ŒํŠธ๋กœ ๊ต์ฒดํ•˜์—ฌ ์ž…๋ ฅ ์ฒ˜๋ฆฌ ๊ฐœ์„ .
  • ๋ฌธ์„œํ™”
    • ์ฝ”๋“œ ๋‚ด ์ฃผ์„์„ ํ†ตํ•ด ๋ณ€๊ฒฝ ์‚ฌํ•ญ์— ๋Œ€ํ•œ ์„ค๋ช… ์œ ์ง€.

Copy link

coderabbitai bot commented Nov 14, 2024

Walkthrough

์ด ๋ณ€๊ฒฝ ์‚ฌํ•ญ์€ ExpoNavHost.kt, ExpoApp.kt, ExpoAppState.kt, HomeNavigation.kt, ExpoCreateScreen.kt ๋ฐ HomeDetailModifyScreen.kt ํŒŒ์ผ์—์„œ ๋‚ด๋น„๊ฒŒ์ด์…˜ ๊ธฐ๋Šฅ์„ ํ–ฅ์ƒ์‹œํ‚ค๊ณ  ์ƒˆ๋กœ์šด UI ๊ตฌ์„ฑ ์š”์†Œ๋ฅผ ์ถ”๊ฐ€ํ•˜๋Š” ๋ฐ ์ค‘์ ์„ ๋‘ก๋‹ˆ๋‹ค. ์ƒˆ๋กœ์šด ๋‚ด๋น„๊ฒŒ์ด์…˜ ๊ฒฝ๋กœ์™€ ํ™”๋ฉด์ด ์ถ”๊ฐ€๋˜์—ˆ์œผ๋ฉฐ, ๊ธฐ์กด ๊ตฌ์„ฑ ์š”์†Œ๊ฐ€ ์ƒˆ๋กœ์šด ํ…์ŠคํŠธ ํ•„๋“œ ๊ตฌ์„ฑ ์š”์†Œ๋กœ ๋Œ€์ฒด๋˜์—ˆ์Šต๋‹ˆ๋‹ค. ์ „์ฒด์ ์œผ๋กœ ์‚ฌ์šฉ์ž ๊ฒฝํ—˜์„ ๊ฐœ์„ ํ•˜๊ณ  ๋‚ด๋น„๊ฒŒ์ด์…˜ ํ๋ฆ„์„ ํ™•์žฅํ•˜๋Š” ๋ฐฉํ–ฅ์œผ๋กœ ์ง„ํ–‰๋˜์—ˆ์Šต๋‹ˆ๋‹ค.

Changes

ํŒŒ์ผ ๊ฒฝ๋กœ ๋ณ€๊ฒฝ ์š”์•ฝ
app/src/main/java/com/school_of_company/expo_android/navigation/ExpoNavHost.kt expoCreateScreen, homeRoute ์ถ”๊ฐ€ ๋ฐ ๋‚ด๋น„๊ฒŒ์ด์…˜ ๋กœ์ง ์ˆ˜์ •.
app/src/main/java/com/school_of_company/expo_android/ui/ExpoApp.kt expoCreateRoute ์ถ”๊ฐ€ ๋ฐ topLevelDestinationRoute ๋ฐฐ์—ด ์—…๋ฐ์ดํŠธ. Scaffold์˜ ํŒจ๋”ฉ ์ ์šฉ.
app/src/main/java/com/school_of_company/expo_android/ui/ExpoAppState.kt navigateToExpoCreate ์ถ”๊ฐ€ ๋ฐ ๋‚ด๋น„๊ฒŒ์ด์…˜ ๊ธฐ๋Šฅ ํ–ฅ์ƒ.
core/design-system/src/main/java/com/school_of_company/design_system/component/textfield/ExpoAddTextField.kt ํŒจํ‚ค์ง€ ๋ณ€๊ฒฝ ๋ฐ ํ•จ์ˆ˜ ์ด๋ฆ„ ๋ณ€๊ฒฝ.
core/design-system/src/main/java/com/school_of_company/design_system/component/textfield/ExpoTextField.kt ExpoLocationIconTextField ์ถ”๊ฐ€.
feature/home/src/main/java/com/school_of_company/home/navigation/HomeNavigation.kt expoCreateRoute ๋ฐ navigateToExpoCreate ์ถ”๊ฐ€.
feature/home/src/main/java/com/school_of_company/home/view/ExpoCreateScreen.kt ExpoCreateRoute ์ถ”๊ฐ€ ๋ฐ ์ด๋ฏธ์ง€ ์„ ํƒ ๊ธฐ๋Šฅ ๊ตฌํ˜„.
feature/home/src/main/java/com/school_of_company/home/view/HomeDetailModifyScreen.kt ExpoAddTextField, ExpoLocationIconTextField๋กœ ๊ตฌ์„ฑ ์š”์†Œ ๋ณ€๊ฒฝ.
feature/home/src/main/java/com/school_of_company/home/view/component/HomeDetailModifyIconTextField.kt HomeDetailModifyIconTextField ์‚ญ์ œ.
settings.gradle.kts excludedTaskNames์˜ ์ˆœ์„œ ๋ณ€๊ฒฝ.

Possibly related PRs

Suggested labels

1๏ธโƒฃ Priority: High, โœจ Feature

Suggested reviewers

  • Chaejongin12
  • diejdkll
  • kimjeakwan

๐Ÿ‡ ์ƒˆ๋กœ์šด ๊ฒฝ๋กœ๊ฐ€ ์—ด๋ฆฌ๊ณ ,
๋‚ด๋น„๊ฒŒ์ด์…˜์ด ๋” ๋ฐ์•„์ ธ์š”.
ํ…์ŠคํŠธ ํ•„๋“œ๊ฐ€ ์ƒˆ๋กœ์›Œ,
์‚ฌ์šฉ์ž ๊ฒฝํ—˜์„ ๋”ํ•ด์ค˜์š”.
๋ชจ๋‘ ํ•จ๊ป˜ ๋›ฐ์–ด๋†€์•„์š”,
๋ณ€ํ™”์˜ ์ˆœ๊ฐ„์„ ์ฆ๊ฒจ์š”! ๐ŸŒŸ


Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

โค๏ธ Share
๐Ÿชง Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 5

๐Ÿงน Outside diff range and nitpick comments (13)
feature/home/src/main/java/com/school_of_company/home/navigation/HomeNavigation.kt (1)

143-150: ํ•จ์ˆ˜ ๋ฌธ์„œํ™” ์ถ”๊ฐ€๋ฅผ ์ œ์•ˆ๋“œ๋ฆฝ๋‹ˆ๋‹ค.

ํ•จ์ˆ˜ ๊ตฌํ˜„์€ ์ ์ ˆํ•˜๋‚˜, ๋‹ค์Œ ์‚ฌํ•ญ๋“ค์˜ ์ถ”๊ฐ€๋ฅผ ๊ณ ๋ คํ•ด์ฃผ์„ธ์š”:

  • ํ•จ์ˆ˜์˜ ๋ชฉ์ ๊ณผ ์—ญํ• ์— ๋Œ€ํ•œ KDoc ๋ฌธ์„œํ™”
  • onExpoCreateClick ํŒŒ๋ผ๋ฏธํ„ฐ์˜ ์šฉ๋„ ์„ค๋ช…

๋‹ค์Œ๊ณผ ๊ฐ™์€ ๋ฌธ์„œํ™”๋ฅผ ์ถ”๊ฐ€ํ•˜๋Š” ๊ฒƒ์„ ์ œ์•ˆ๋“œ๋ฆฝ๋‹ˆ๋‹ค:

+/**
+ * Expo ์ƒ์„ฑ ํ™”๋ฉด์„ ๋„ค๋น„๊ฒŒ์ด์…˜ ๊ทธ๋ž˜ํ”„์— ์ถ”๊ฐ€ํ•ฉ๋‹ˆ๋‹ค.
+ *
+ * @param onExpoCreateClick Expo ์ƒ์„ฑ ๋ฒ„ํŠผ ํด๋ฆญ ์‹œ ์‹คํ–‰๋  ์ฝœ๋ฐฑ
+ */
fun NavGraphBuilder.expoCreateScreen(
    onExpoCreateClick: () -> Unit
) {
core/design-system/src/main/java/com/school_of_company/design_system/component/textfield/ExpoAddTextField.kt (2)

29-36: KDoc ๋ฌธ์„œํ™” ์ถ”๊ฐ€ ํ•„์š”

์ปดํฌ๋„ŒํŠธ์˜ ์žฌ์‚ฌ์šฉ์„ฑ์„ ๋†’์ด๊ธฐ ์œ„ํ•ด ๊ฐ ๋งค๊ฐœ๋ณ€์ˆ˜์˜ ์šฉ๋„์™€ ์˜ˆ์ƒ๋˜๋Š” ๋™์ž‘์„ ์„ค๋ช…ํ•˜๋Š” KDoc ๋ฌธ์„œ๋ฅผ ์ถ”๊ฐ€ํ•˜๋Š” ๊ฒƒ์ด ์ข‹์Šต๋‹ˆ๋‹ค.

๋‹ค์Œ๊ณผ ๊ฐ™์€ ๋ฌธ์„œํ™”๋ฅผ ์ œ์•ˆํ•ฉ๋‹ˆ๋‹ค:

+/**
+ * ํ…์ŠคํŠธ ํ•„๋“œ๋ฅผ ๋™์ ์œผ๋กœ ์ถ”๊ฐ€/์ œ๊ฑฐํ•  ์ˆ˜ ์žˆ๋Š” ์ž…๋ ฅ ์ปดํฌ๋„ŒํŠธ
+ *
+ * @param modifier ์ปดํฌ๋„ŒํŠธ์˜ ์ˆ˜์ •์ž
+ * @param placeHolder ๋นˆ ํ…์ŠคํŠธ ํ•„๋“œ์— ํ‘œ์‹œ๋  ์•ˆ๋‚ด ํ…์ŠคํŠธ
+ * @param trainingTextFieldList ํ˜„์žฌ ํ‘œ์‹œ๋œ ํ…์ŠคํŠธ ํ•„๋“œ๋“ค์˜ ๊ฐ’ ๋ชฉ๋ก
+ * @param onValueChange ํ…์ŠคํŠธ ํ•„๋“œ ๊ฐ’์ด ๋ณ€๊ฒฝ๋  ๋•Œ ํ˜ธ์ถœ๋˜๋Š” ์ฝœ๋ฐฑ (์ธ๋ฑ์Šค, ์ƒˆ๋กœ์šด ๊ฐ’)
+ * @param onAddTextField ์ƒˆ๋กœ์šด ํ…์ŠคํŠธ ํ•„๋“œ ์ถ”๊ฐ€ ๋ฒ„ํŠผ ํด๋ฆญ์‹œ ํ˜ธ์ถœ๋˜๋Š” ์ฝœ๋ฐฑ
+ * @param onRemoveTextField ํ…์ŠคํŠธ ํ•„๋“œ ์ œ๊ฑฐ ๋ฒ„ํŠผ ํด๋ฆญ์‹œ ํ˜ธ์ถœ๋˜๋Š” ์ฝœ๋ฐฑ (์ œ๊ฑฐํ•  ์ธ๋ฑ์Šค)
+ */

Line range hint 37-119: ์ ‘๊ทผ์„ฑ ๋ฐ ์ž…๋ ฅ ์œ ํšจ์„ฑ ๊ฒ€์‚ฌ ๊ฐœ์„  ํ•„์š”

ํ˜„์žฌ ๊ตฌํ˜„์— ๋‹ค์Œ ์‚ฌํ•ญ๋“ค์„ ์ถ”๊ฐ€ํ•˜๋ฉด ์ข‹์„ ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค:

  1. ํ…์ŠคํŠธ ์ž…๋ ฅ ์ œํ•œ (์ตœ๋Œ€ ๊ธธ์ด)
  2. ์˜ค๋ฅ˜ ์ƒํƒœ ํ‘œ์‹œ
  3. ์ ‘๊ทผ์„ฑ ๋ ˆ์ด๋ธ”

๋‹ค์Œ๊ณผ ๊ฐ™์€ ๊ฐœ์„ ์‚ฌํ•ญ์„ ์ œ์•ˆํ•ฉ๋‹ˆ๋‹ค:

 BasicTextField(
     value = text,
     onValueChange = { newState ->
-        onValueChange(index, newState)
+        if (newState.length <= MAX_LENGTH) {
+            onValueChange(index, newState)
+        }
     },
     textStyle = typography.bodyRegular2,
     cursorBrush = SolidColor(colors.main),
+    modifier = Modifier
+        .weight(1f)
+        .padding(end = 8.dp)
+        .semantics {
+            contentDescription = "$placeHolder ${index + 1}๋ฒˆ์งธ ์ž…๋ ฅ์ฐฝ"
+        },
-    modifier = Modifier
-        .weight(1f)
-        .padding(end = 8.dp)
 )

์ƒ์ˆ˜ ์ถ”๊ฐ€:

private const val MAX_LENGTH = 100 // ์ ์ ˆํ•œ ์ตœ๋Œ€ ๊ธธ์ด๋กœ ์กฐ์ •
app/src/main/java/com/school_of_company/expo_android/ui/ExpoApp.kt (1)

70-75: Scaffold์˜ padding ์ฒ˜๋ฆฌ๊ฐ€ ๊ฐœ์„ ๋˜์—ˆ์Šต๋‹ˆ๋‹ค.

Box์™€ padding์„ ์ถ”๊ฐ€ํ•˜์—ฌ ๋„ค๋น„๊ฒŒ์ด์…˜ ๋ฐ”์™€ ์ฝ˜ํ…์ธ  ๊ฐ„์˜ ๊ฒน์นจ ๋ฌธ์ œ๋ฅผ ํ•ด๊ฒฐํ•œ ๊ฒƒ์ด ์ข‹์Šต๋‹ˆ๋‹ค. ๋‹ค๋งŒ, ๊ฐ€๋…์„ฑ์„ ์œ„ํ•ด ๋‹ค์Œ๊ณผ ๊ฐ™์ด ๊ฐœ์„ ํ•˜๋ฉด ์ข‹์„ ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค:

-            Box(modifier = Modifier.padding(paddingValues =
-            paddingValues)) {
+            Box(
+                modifier = Modifier.padding(paddingValues = paddingValues)
+            ) {
                 ExpoNavHost(appState = appState)
             }
app/src/main/java/com/school_of_company/expo_android/navigation/ExpoNavHost.kt (1)

Line range hint 68-80: ์• ๋‹ˆ๋ฉ”์ด์…˜ ๋กœ์ง ๊ฐœ์„ ์ด ํ•„์š”ํ•ฉ๋‹ˆ๋‹ค.

๋‹ค์Œ๊ณผ ๊ฐ™์€ ๊ฐœ์„ ์‚ฌํ•ญ์„ ์ œ์•ˆ๋“œ๋ฆฝ๋‹ˆ๋‹ค:

  1. ์• ๋‹ˆ๋ฉ”์ด์…˜ ์ง€์† ์‹œ๊ฐ„์„ ์ƒ์ˆ˜๋กœ ๋ถ„๋ฆฌํ•˜์—ฌ ์žฌ์‚ฌ์šฉ์„ฑ๊ณผ ์œ ์ง€๋ณด์ˆ˜์„ฑ์„ ๋†’์ด๋Š” ๊ฒƒ์ด ์ข‹์Šต๋‹ˆ๋‹ค.
  2. homeRoute ์ฒดํฌ ๋กœ์ง์„ ๋” ๋ช…ํ™•ํ•˜๊ฒŒ ํ‘œํ˜„ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

๋‹ค์Œ๊ณผ ๊ฐ™์ด ์ˆ˜์ •ํ•˜๋Š” ๊ฒƒ์„ ์ถ”์ฒœ๋“œ๋ฆฝ๋‹ˆ๋‹ค:

+ private const val FORWARD_ANIMATION_DURATION = 500
+ private const val BACK_ANIMATION_DURATION = 350

  enterTransition = {
-     if (targetState.destination.route != homeRoute) {
+     val isHomeRoute = targetState.destination.route == homeRoute
+     if (!isHomeRoute) {
          slideIntoContainer(
              AnimatedContentTransitionScope.SlideDirection.Left,
-             animationSpec = tween(durationMillis = 500)
+             animationSpec = tween(durationMillis = FORWARD_ANIMATION_DURATION)
          )
      } else {
          EnterTransition.None
      }
  }
feature/home/src/main/java/com/school_of_company/home/view/HomeDetailModifyScreen.kt (4)

Line range hint 342-359: ์—ฐ์ˆ˜ ์ข…๋ฅ˜ ์ž…๋ ฅ ํ•„๋“œ์˜ ์ƒํƒœ ๊ด€๋ฆฌ ๊ฐœ์„ ์ด ํ•„์š”ํ•ฉ๋‹ˆ๋‹ค.

trainingTextState๊ฐ€ Screen ๋ ˆ๋ฒจ์—์„œ ๊ด€๋ฆฌ๋˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ViewModel๋กœ ์ƒํƒœ ๊ด€๋ฆฌ๋ฅผ ์ด๋™ํ•˜๋Š” ๊ฒƒ์ด ์ข‹์Šต๋‹ˆ๋‹ค.

๋‹ค์Œ๊ณผ ๊ฐ™์ด ์ˆ˜์ •ํ•˜๋Š” ๊ฒƒ์„ ์ œ์•ˆ๋“œ๋ฆฝ๋‹ˆ๋‹ค:

- var trainingTextState by rememberSaveable { mutableStateOf(listOf("")) }
+ val trainingTextState by viewModel.training_types.collectAsStateWithLifecycle()

ViewModel์— ๋‹ค์Œ ์ฝ”๋“œ๋ฅผ ์ถ”๊ฐ€ํ•ด์ฃผ์„ธ์š”:

private val _training_types = MutableStateFlow(listOf(""))
val training_types = _training_types.asStateFlow()

fun updateTrainingType(index: Int, value: String) {
    _training_types.update { current ->
        current.toMutableList().apply {
            set(index, value)
        }
    }
}

fun addTrainingType() {
    _training_types.update { it + "" }
}

fun removeTrainingType(index: Int) {
    _training_types.update { current ->
        current.toMutableList().apply {
            removeAt(index)
        }
    }
}

Line range hint 366-372: ์œ„์น˜ ์›นํ›… ๊ตฌํ˜„์ด ํ•„์š”ํ•ฉ๋‹ˆ๋‹ค.

Location Web Hook์ด TODO ์ฃผ์„์œผ๋กœ ๋‚จ์•„์žˆ์Šต๋‹ˆ๋‹ค.

์œ„์น˜ ๊ฒ€์ƒ‰ ๊ธฐ๋Šฅ ๊ตฌํ˜„์— ๋„์›€์ด ํ•„์š”ํ•˜์‹œ๋‹ค๋ฉด ๋ง์”€ํ•ด ์ฃผ์„ธ์š”. GitHub ์ด์Šˆ๋ฅผ ์ƒ์„ฑํ•˜์—ฌ ๊ตฌํ˜„์„ ๋„์™€๋“œ๋ฆฌ๊ฒ ์Šต๋‹ˆ๋‹ค.


Line range hint 385-394: ๋ฒ„ํŠผ ํ™œ์„ฑํ™” ์กฐ๊ฑด ๋กœ์ง ๊ฐœ์„ ์ด ํ•„์š”ํ•ฉ๋‹ˆ๋‹ค.

ํ˜„์žฌ ๋ฒ„ํŠผ ์ƒํƒœ ๋กœ์ง์ด ๋„ˆ๋ฌด ๋ณต์žกํ•˜๊ณ  ๊ฐ€๋…์„ฑ์ด ๋–จ์–ด์ง‘๋‹ˆ๋‹ค.

๋‹ค์Œ๊ณผ ๊ฐ™์ด ๊ฐœ์„ ํ•˜๋Š” ๊ฒƒ์„ ์ œ์•ˆ๋“œ๋ฆฝ๋‹ˆ๋‹ค:

- state = if (imageUri.isNullOrEmpty() && modifyTitleState.isEmpty() && startedDateState.isEmpty() && endedDateState.isEmpty() && introduceTitleState.isEmpty() && addressState.isEmpty() && locationState.isEmpty() && trainingTextState.isEmpty()) ButtonState.Enable else ButtonState.Disable,
+ state = determineButtonState(
+     imageUri = imageUri,
+     modifyTitleState = modifyTitleState,
+     startedDateState = startedDateState,
+     endedDateState = endedDateState,
+     introduceTitleState = introduceTitleState,
+     addressState = addressState,
+     locationState = locationState,
+     trainingTextState = trainingTextState
+ ),

private fun determineButtonState(
    imageUri: String?,
    modifyTitleState: String,
    startedDateState: String,
    endedDateState: String,
    introduceTitleState: String,
    addressState: String,
    locationState: String,
    trainingTextState: List<String>
): ButtonState {
    val isAnyFieldEmpty = listOf(
        imageUri.isNullOrEmpty(),
        modifyTitleState.isEmpty(),
        startedDateState.isEmpty(),
        endedDateState.isEmpty(),
        introduceTitleState.isEmpty(),
        addressState.isEmpty(),
        locationState.isEmpty(),
        trainingTextState.isEmpty()
    ).any { it }
    
    return if (isAnyFieldEmpty) ButtonState.Disable else ButtonState.Enable
}

Line range hint 390-392: Expo ์ˆ˜์ • ์ฝœ๋ฐฑ ๊ตฌํ˜„์ด ํ•„์š”ํ•ฉ๋‹ˆ๋‹ค.

Expo Modify Callback์ด TODO ์ฃผ์„์œผ๋กœ ๋‚จ์•„์žˆ์Šต๋‹ˆ๋‹ค.

์ˆ˜์ • ๊ธฐ๋Šฅ ๊ตฌํ˜„์— ๋„์›€์ด ํ•„์š”ํ•˜์‹œ๋‹ค๋ฉด ๋ง์”€ํ•ด ์ฃผ์„ธ์š”. GitHub ์ด์Šˆ๋ฅผ ์ƒ์„ฑํ•˜์—ฌ ๊ตฌํ˜„์„ ๋„์™€๋“œ๋ฆฌ๊ฒ ์Šต๋‹ˆ๋‹ค.

core/design-system/src/main/java/com/school_of_company/design_system/component/textfield/ExpoTextField.kt (1)

382-436: Preview ํ•จ์ˆ˜ ์ถ”๊ฐ€๋ฅผ ์ œ์•ˆ๋“œ๋ฆฝ๋‹ˆ๋‹ค.

์ƒˆ๋กœ ์ถ”๊ฐ€๋œ ExpoLocationIconTextField ์ปดํฌ๋„ŒํŠธ์˜ Preview ํ•จ์ˆ˜๊ฐ€ ๋ˆ„๋ฝ๋˜์—ˆ์Šต๋‹ˆ๋‹ค. ๋””์ž์ธ ์‹œ์Šคํ…œ ์ปดํฌ๋„ŒํŠธ์˜ ์ผ๊ด€์„ฑ์„ ์œ„ํ•ด Preview ํ•จ์ˆ˜ ์ถ”๊ฐ€๋ฅผ ๊ถŒ์žฅ๋“œ๋ฆฝ๋‹ˆ๋‹ค.

@Preview
@Composable
fun ExpoLocationIconTextFieldPreview() {
    Box(
        modifier = Modifier
            .fillMaxSize()
            .background(Color.White)
            .padding(16.dp)
    ) {
        ExpoLocationIconTextField(
            placeholder = "์œ„์น˜๋ฅผ ์ž…๋ ฅํ•˜์„ธ์š”",
            isDisabled = false,
            onValueChange = {},
            onButtonClicked = {},
            value = ""
        )
    }
}
feature/home/src/main/java/com/school_of_company/home/view/ExpoCreateScreen.kt (3)

255-263: ๋ณ€์ˆ˜ ์ด๋ฆ„์˜ ์ผ๊ด€์„ฑ ์œ ์ง€ ํ•„์š”

modifyTitleState์™€ ๊ฐ™์€ ๋ณ€์ˆ˜๋ช…์€ ์ˆ˜์ • ํ™”๋ฉด์— ์ ํ•ฉํ•˜๋ฉฐ, ์ƒ์„ฑ ํ™”๋ฉด์—์„œ๋Š” titleState๋กœ ์‚ฌ์šฉํ•˜๋Š” ๊ฒƒ์ด ๋ณด๋‹ค ๋ช…ํ™•ํ•ฉ๋‹ˆ๋‹ค. ์ด๋Š” ์ฝ”๋“œ์˜ ๊ฐ€๋…์„ฑ์„ ๋†’์ด๊ณ  ์œ ์ง€ ๋ณด์ˆ˜๋ฅผ ์šฉ์ดํ•˜๊ฒŒ ํ•ฉ๋‹ˆ๋‹ค.

๊ด€๋ จ ๋ณ€์ˆ˜์™€ ํ•จ์ˆ˜๋ช…์„ ๋‹ค์Œ๊ณผ ๊ฐ™์ด ๋ณ€๊ฒฝํ•˜๋Š” ๊ฒƒ์„ ์ œ์•ˆํ•ฉ๋‹ˆ๋‹ค:

- val modifyTitleState by viewModel.modify_title.collectAsStateWithLifecycle()
+ val titleState by viewModel.title.collectAsStateWithLifecycle()
- onModifyTitleChange: (String) -> Unit,
+ onTitleChange: (String) -> Unit,

์ฝ”๋“œ ์ „๋ฐ˜์— ๊ฑธ์ณ ํ•ด๋‹น ๋ณ€์ˆ˜๋ช…๊ณผ ํ•จ์ˆ˜๋ช…์„ ์ผ๊ด€๋˜๊ฒŒ ๋ณ€๊ฒฝํ•ด์ฃผ์„ธ์š”.


367-367: ๋ฒ„ํŠผ ํ…์ŠคํŠธ ์ˆ˜์ • ํ•„์š”

ํ˜„์žฌ ๋ฒ„ํŠผ์˜ ํ…์ŠคํŠธ๊ฐ€ "์ˆ˜์ •์™„๋ฃŒ"๋กœ ์„ค์ •๋˜์–ด ์žˆ์Šต๋‹ˆ๋‹ค. ์ƒ์„ฑ ํ™”๋ฉด์—์„œ๋Š” "๋“ฑ๋กํ•˜๊ธฐ"์™€ ๊ฐ™์€ ํ…์ŠคํŠธ๊ฐ€ ๋” ์ ์ ˆํ•ฉ๋‹ˆ๋‹ค. ์‚ฌ์šฉ์ž์—๊ฒŒ ์ •ํ™•ํ•œ ์•ก์…˜์„ ์ „๋‹ฌํ•˜๊ธฐ ์œ„ํ•ด ํ…์ŠคํŠธ๋ฅผ ๋ณ€๊ฒฝํ•˜๋Š” ๊ฒƒ์ด ์ข‹์Šต๋‹ˆ๋‹ค.

๋‹ค์Œ๊ณผ ๊ฐ™์ด ์ˆ˜์ •ํ•˜๋Š” ๊ฒƒ์„ ์ œ์•ˆํ•ฉ๋‹ˆ๋‹ค:

- text = "์ˆ˜์ •์™„๋ฃŒ",
+ text = "๋“ฑ๋กํ•˜๊ธฐ",

371-371: TODO ์ฃผ์„ ๋‚ด์šฉ ์ˆ˜์ • ํ•„์š”

์ฃผ์„์— "Expo Modify CallBack"์ด๋ผ๊ณ  ๋˜์–ด ์žˆ๋Š”๋ฐ, ์ƒ์„ฑ ํ™”๋ฉด์ด๋ฏ€๋กœ "Expo Create CallBack"์œผ๋กœ ์ˆ˜์ •ํ•˜๋Š” ๊ฒƒ์ด ๋งž์Šต๋‹ˆ๋‹ค. ์ด๋Š” ์ฝ”๋“œ์˜ ๋ช…ํ™•์„ฑ์„ ๋†’์ž…๋‹ˆ๋‹ค.

๋‹ค์Œ๊ณผ ๊ฐ™์ด ์ˆ˜์ •ํ•˜๋Š” ๊ฒƒ์„ ์ œ์•ˆํ•ฉ๋‹ˆ๋‹ค:

- /* todo : Expo Modify CallBack */
+ /* todo : Expo Create CallBack */
๐Ÿ“œ Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

๐Ÿ“ฅ Commits

Reviewing files that changed from the base of the PR and between 1824b06 and 6b21b84.

๐Ÿ“’ Files selected for processing (10)
  • app/src/main/java/com/school_of_company/expo_android/navigation/ExpoNavHost.kt (4 hunks)
  • app/src/main/java/com/school_of_company/expo_android/ui/ExpoApp.kt (5 hunks)
  • app/src/main/java/com/school_of_company/expo_android/ui/ExpoAppState.kt (2 hunks)
  • core/design-system/src/main/java/com/school_of_company/design_system/component/textfield/ExpoAddTextField.kt (2 hunks)
  • core/design-system/src/main/java/com/school_of_company/design_system/component/textfield/ExpoTextField.kt (3 hunks)
  • feature/home/src/main/java/com/school_of_company/home/navigation/HomeNavigation.kt (4 hunks)
  • feature/home/src/main/java/com/school_of_company/home/view/ExpoCreateScreen.kt (1 hunks)
  • feature/home/src/main/java/com/school_of_company/home/view/HomeDetailModifyScreen.kt (3 hunks)
  • feature/home/src/main/java/com/school_of_company/home/view/component/HomeDetailModifyIconTextField.kt (0 hunks)
  • settings.gradle.kts (1 hunks)
๐Ÿ’ค Files with no reviewable changes (1)
  • feature/home/src/main/java/com/school_of_company/home/view/component/HomeDetailModifyIconTextField.kt
โœ… Files skipped from review due to trivial changes (1)
  • settings.gradle.kts
๐Ÿ”‡ Additional comments (10)
app/src/main/java/com/school_of_company/expo_android/ui/ExpoAppState.kt (1)

18-18: LGTM! ์ƒˆ๋กœ์šด ๋„ค๋น„๊ฒŒ์ด์…˜ ๊ธฐ๋Šฅ์ด ์ ์ ˆํžˆ ์ถ”๊ฐ€๋˜์—ˆ์Šต๋‹ˆ๋‹ค.

๋„ค๋น„๊ฒŒ์ด์…˜ ๊ด€๋ จ import๊ฐ€ ๊ธฐ์กด ํŒจํ„ด๊ณผ ์ผ๊ด€์„ฑ ์žˆ๊ฒŒ ์ถ”๊ฐ€๋˜์—ˆ์Šต๋‹ˆ๋‹ค.

feature/home/src/main/java/com/school_of_company/home/navigation/HomeNavigation.kt (3)

7-7: ์ƒˆ๋กœ์šด ExpoCreateRoute ์ž„ํฌํŠธ๊ฐ€ ์ ์ ˆํžˆ ์ถ”๊ฐ€๋˜์—ˆ์Šต๋‹ˆ๋‹ค.

๊ธฐ์กด ์ž„ํฌํŠธ ํŒจํ„ด์„ ๋”ฐ๋ฅด๊ณ  ์žˆ์œผ๋ฉฐ, ์ƒˆ๋กœ์šด ํ™”๋ฉด ๊ตฌํ˜„์— ํ•„์š”ํ•œ ์ปดํฌ๋„ŒํŠธ์ž…๋‹ˆ๋‹ค.


23-23: ๋ผ์šฐํŠธ ์ƒ์ˆ˜๊ฐ€ ์ผ๊ด€๋œ ํŒจํ„ด์œผ๋กœ ์ •์˜๋˜์—ˆ์Šต๋‹ˆ๋‹ค.

๊ธฐ์กด ๋ผ์šฐํŠธ ์ƒ์ˆ˜๋“ค๊ณผ ๋™์ผํ•œ ๋„ค์ด๋ฐ ์ปจ๋ฒค์…˜์„ ๋”ฐ๋ฅด๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค.


53-55: ๋„ค๋น„๊ฒŒ์ด์…˜ ํ™•์žฅ ํ•จ์ˆ˜๊ฐ€ ์ ์ ˆํžˆ ๊ตฌํ˜„๋˜์—ˆ์Šต๋‹ˆ๋‹ค.

๊ธฐ์กด ๋„ค๋น„๊ฒŒ์ด์…˜ ํ•จ์ˆ˜๋“ค๊ณผ ๋™์ผํ•œ ํŒจํ„ด์œผ๋กœ ๊ตฌํ˜„๋˜์–ด ์žˆ์œผ๋ฉฐ, ์˜ต์…”๋„ ๋„ค๋น„๊ฒŒ์ด์…˜ ์˜ต์…˜์„ ์˜ฌ๋ฐ”๋ฅด๊ฒŒ ์ฒ˜๋ฆฌํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค.

core/design-system/src/main/java/com/school_of_company/design_system/component/textfield/ExpoAddTextField.kt (1)

1-1: ์ปดํฌ๋„ŒํŠธ ์‚ฌ์šฉ์ฒ˜ ํ™•์ธ ํ•„์š”

feature ๋ชจ๋“ˆ์—์„œ design-system ๋ชจ๋“ˆ๋กœ ์ด๋™๋œ ์ปดํฌ๋„ŒํŠธ์ด๋ฏ€๋กœ, ๋ชจ๋“  ์‚ฌ์šฉ์ฒ˜์—์„œ ์˜ฌ๋ฐ”๋ฅด๊ฒŒ ์ž„ํฌํŠธ๋˜๊ณ  ์žˆ๋Š”์ง€ ํ™•์ธ์ด ํ•„์š”ํ•ฉ๋‹ˆ๋‹ค.

โœ… Verification successful

Let me verify the actual usage of this component in the files where it's imported.


์ปดํฌ๋„ŒํŠธ ์ด๋™์ด ์ •์ƒ์ ์œผ๋กœ ์™„๋ฃŒ๋˜์—ˆ์Šต๋‹ˆ๋‹ค

๋ชจ๋“  ์‚ฌ์šฉ์ฒ˜์—์„œ ์ƒˆ๋กœ์šด ํŒจํ‚ค์ง€ ๊ฒฝ๋กœ(com.school_of_company.design_system.component.textfield.ExpoAddTextField)๋ฅผ ์˜ฌ๋ฐ”๋ฅด๊ฒŒ ์ฐธ์กฐํ•˜๊ณ  ์žˆ์œผ๋ฉฐ, ์ปดํฌ๋„ŒํŠธ๊ฐ€ ์ •์ƒ์ ์œผ๋กœ ์‚ฌ์šฉ๋˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค.

  • HomeDetailModifyScreen.kt์™€ ExpoCreateScreen.kt ๋‘ ํŒŒ์ผ ๋ชจ๋‘ design-system ๋ชจ๋“ˆ์˜ ์ƒˆ๋กœ์šด ๊ฒฝ๋กœ์—์„œ ์ปดํฌ๋„ŒํŠธ๋ฅผ ์˜ฌ๋ฐ”๋ฅด๊ฒŒ ์ž„ํฌํŠธํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค.
  • ๊ฐ ํŒŒ์ผ์—์„œ ExpoAddTextField ์ปดํฌ๋„ŒํŠธ๊ฐ€ ๋™์ผํ•œ ๋ฐฉ์‹์œผ๋กœ ์‚ฌ์šฉ๋˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค.
๐Ÿ Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Verify the component usage across the codebase

# Check old import usage
rg "import.*HomeDetailModifyAddTextField"

# Check new import usage
rg "import.*ExpoAddTextField"

Length of output: 399


Script:

#!/bin/bash
# Check actual usage of ExpoAddTextField in the files
rg "ExpoAddTextField" feature/home/src/main/java/com/school_of_company/home/view/HomeDetailModifyScreen.kt -A 2
rg "ExpoAddTextField" feature/home/src/main/java/com/school_of_company/home/view/ExpoCreateScreen.kt -A 2

Length of output: 1065

app/src/main/java/com/school_of_company/expo_android/ui/ExpoApp.kt (1)

4-4: ์ƒˆ๋กœ์šด import ๊ตฌ๋ฌธ์ด ์ ์ ˆํžˆ ์ถ”๊ฐ€๋˜์—ˆ์Šต๋‹ˆ๋‹ค.

Box์™€ padding ๊ด€๋ จ import๊ฐ€ UI ๊ตฌ์กฐ ๋ณ€๊ฒฝ์— ๋งž๊ฒŒ ์ž˜ ์ถ”๊ฐ€๋˜์—ˆ์œผ๋ฉฐ, expoCreateRoute์˜ ์ถ”๊ฐ€๋„ ์ ์ ˆํ•ฉ๋‹ˆ๋‹ค.

Also applies to: 6-6, 15-15, 26-26

app/src/main/java/com/school_of_company/expo_android/navigation/ExpoNavHost.kt (2)

14-20: LGTM! ์ƒˆ๋กœ์šด ํ™”๋ฉด์— ํ•„์š”ํ•œ import๋ฌธ์ด ์ž˜ ์ถ”๊ฐ€๋˜์—ˆ์Šต๋‹ˆ๋‹ค.

์ƒˆ๋กœ์šด Expo ์ƒ์„ฑ ํ™”๋ฉด๊ณผ ํ™ˆ ๋ผ์šฐํŠธ์— ํ•„์š”ํ•œ import๋ฌธ์ด ์ ์ ˆํ•˜๊ฒŒ ์ถ”๊ฐ€๋˜์—ˆ์Šต๋‹ˆ๋‹ค.


153-156: Expo ์ƒ์„ฑ ํ›„ ๋„ค๋น„๊ฒŒ์ด์…˜ ํ๋ฆ„์„ ๊ฒ€์ฆํ•ด์ฃผ์„ธ์š”.

Expo ์ƒ์„ฑ ํ™”๋ฉด์—์„œ ํ™ˆ์œผ๋กœ ๋Œ์•„๊ฐ€๋Š” ๋„ค๋น„๊ฒŒ์ด์…˜ ํ๋ฆ„์ด ์ ์ ˆํ•œ์ง€ ํ™•์ธ์ด ํ•„์š”ํ•ฉ๋‹ˆ๋‹ค. ์ƒ์„ฑ ์™„๋ฃŒ/์ทจ์†Œ ์‹œ๋‚˜๋ฆฌ์˜ค์— ๋”ฐ๋ผ ๋‹ค๋ฅธ ๋„ค๋น„๊ฒŒ์ด์…˜์ด ํ•„์š”ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

โœ… Verification successful

Expo ์ƒ์„ฑ ํ™”๋ฉด์˜ ๋„ค๋น„๊ฒŒ์ด์…˜ ํ๋ฆ„์ด ์ ์ ˆํ•˜๊ฒŒ ๊ตฌํ˜„๋˜์–ด ์žˆ์Šต๋‹ˆ๋‹ค.

Expo ์ƒ์„ฑ ํ™”๋ฉด์˜ ๋„ค๋น„๊ฒŒ์ด์…˜ ๊ตฌํ˜„์„ ๊ฒ€ํ† ํ•œ ๊ฒฐ๊ณผ:

  • ExpoCreateRoute ์ปดํฌ๋„ŒํŠธ๋Š” ์ƒ์„ฑ ์™„๋ฃŒ ์‹œ onExpoCreateClick ์ฝœ๋ฐฑ์„ ํ†ตํ•ด ํ™ˆ ํ™”๋ฉด์œผ๋กœ ์ด๋™
  • ExpoNavHost์—์„œ navigateToHome์„ ํ†ตํ•ด ํ™ˆ ํ™”๋ฉด์œผ๋กœ์˜ ๋„ค๋น„๊ฒŒ์ด์…˜์ด ์˜ฌ๋ฐ”๋ฅด๊ฒŒ ์—ฐ๊ฒฐ
  • ์ทจ์†Œ ์‹œ๋‚˜๋ฆฌ์˜ค๋Š” Android์˜ ๊ธฐ๋ณธ ๋’ค๋กœ๊ฐ€๊ธฐ๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ ์ฒ˜๋ฆฌ
๐Ÿ Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Verify navigation flow implementation in ExpoCreateScreen

# Check ExpoCreateScreen implementation for navigation handling
ast-grep --pattern 'fun ExpoCreateScreen($_, onExpoCreateClick: () -> Unit) {
  $$$
}'

# Check if there are any other navigation-related functions for ExpoCreateScreen
rg -A 5 "ExpoCreateScreen.*navigation"

Length of output: 129


Script:

#!/bin/bash
# Search for ExpoCreateScreen composable function
ast-grep --pattern 'composable fun ExpoCreateScreen($$$)'

# Find ExpoCreateScreen usage and navigation patterns
rg "ExpoCreateScreen" -A 5

# Look for navigation related to expo creation
rg "navigateToHome|ExpoCreate" -A 5

Length of output: 23660

feature/home/src/main/java/com/school_of_company/home/view/HomeDetailModifyScreen.kt (1)

56-57: Design System ์ปดํฌ๋„ŒํŠธ๋กœ์˜ ๋งˆ์ด๊ทธ๋ ˆ์ด์…˜์ด ์ ์ ˆํžˆ ์ด๋ฃจ์–ด์กŒ์Šต๋‹ˆ๋‹ค.

Feature ๋ชจ๋“ˆ์˜ ์ปดํฌ๋„ŒํŠธ๋“ค์ด Design System์˜ ์žฌ์‚ฌ์šฉ ๊ฐ€๋Šฅํ•œ ์ปดํฌ๋„ŒํŠธ๋กœ ์ž˜ ์ด๋™๋˜์—ˆ์Šต๋‹ˆ๋‹ค.

core/design-system/src/main/java/com/school_of_company/design_system/component/textfield/ExpoTextField.kt (1)

14-14: ์ƒˆ๋กœ์šด import ๊ตฌ๋ฌธ์ด ์ ์ ˆํ•˜๊ฒŒ ์ถ”๊ฐ€๋˜์—ˆ์Šต๋‹ˆ๋‹ค.

ํ•„์š”ํ•œ ์ปดํฌ๋„ŒํŠธ๋“ค์ด ์˜ฌ๋ฐ”๋ฅด๊ฒŒ import ๋˜์—ˆ์Šต๋‹ˆ๋‹ค.

Also applies to: 19-19, 42-42

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 2

๐Ÿงน Outside diff range and nitpick comments (2)
feature/home/src/main/java/com/school_of_company/home/view/ExpoCreateScreen.kt (2)

351-351: TODO ํ•ญ๋ชฉ ๊ตฌํ˜„ ์ง€์›

๋‹ค์Œ TODO ํ•ญ๋ชฉ๋“ค์˜ ๊ตฌํ˜„์ด ํ•„์š”ํ•ฉ๋‹ˆ๋‹ค:

  1. Location Web Hook
  2. Expo Modify CallBack

์ด๋Ÿฌํ•œ ๊ธฐ๋Šฅ์˜ ๊ตฌํ˜„์„ ๋„์™€๋“œ๋ฆด๊นŒ์š”? GitHub ์ด์Šˆ๋ฅผ ์ƒ์„ฑํ•˜์—ฌ ์ถ”์ ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

Also applies to: 371-371


347-353: ์œ„์น˜ ๊ฒ€์ƒ‰ ๊ธฐ๋Šฅ ๊ฐœ์„  ํ•„์š”

ํ˜„์žฌ ์œ„์น˜ ์ž…๋ ฅ ํ•„๋“œ๋Š” ์ˆ˜๋™ ์ž…๋ ฅ๋งŒ ๊ฐ€๋Šฅํ•ฉ๋‹ˆ๋‹ค. ์‚ฌ์šฉ์ž ๊ฒฝํ—˜ ํ–ฅ์ƒ์„ ์œ„ํ•ด ์œ„์น˜ ๊ฒ€์ƒ‰ API ์—ฐ๋™์ด ํ•„์š”ํ•ฉ๋‹ˆ๋‹ค.

  1. Kakao ๋กœ์ปฌ API๋‚˜ Naver Maps API๋ฅผ ํ™œ์šฉํ•˜์—ฌ ์ฃผ์†Œ ๊ฒ€์ƒ‰ ๊ธฐ๋Šฅ ์ถ”๊ฐ€
  2. ๊ฒ€์ƒ‰ ๊ฒฐ๊ณผ๋ฅผ ๋“œ๋กญ๋‹ค์šด ๋ชฉ๋ก์œผ๋กœ ํ‘œ์‹œ
  3. ์„ ํƒ๋œ ์ฃผ์†Œ์˜ ์œ„๋„/๊ฒฝ๋„ ์ •๋ณด๋„ ํ•จ๊ป˜ ์ €์žฅ
๐Ÿ“œ Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

๐Ÿ“ฅ Commits

Reviewing files that changed from the base of the PR and between 6b21b84 and 21babd5.

๐Ÿ“’ Files selected for processing (1)
  • feature/home/src/main/java/com/school_of_company/home/view/ExpoCreateScreen.kt (1 hunks)
๐Ÿ”‡ Additional comments (1)
feature/home/src/main/java/com/school_of_company/home/view/ExpoCreateScreen.kt (1)

135-135: ์ด์ „ ๋ฆฌ๋ทฐ ์ฝ”๋ฉ˜ํŠธ๊ฐ€ ์—ฌ์ „ํžˆ ์œ ํšจํ•ฉ๋‹ˆ๋‹ค

๋นˆ ๋ฆฌ์ŠคํŠธ๋กœ ์ดˆ๊ธฐํ™”ํ•˜๋Š” ๊ฒƒ์ด ๋” ์ ์ ˆํ•ฉ๋‹ˆ๋‹ค.

Comment on lines +295 to +299
Text(
text = "์‹œ์ž‘์ผ๊ณผ ๋งˆ๊ฐ์ผ ์ž…๋ ฅ์‹œ โ€˜ yyyy.mm.dd โ€˜ ํ˜•์‹์œผ๋กœ ์ž…๋ ฅํ•ด์ฃผ์„ธ์š”.",
style = typography.captionRegular2,
color = colors.gray300
)
Copy link

Choose a reason for hiding this comment

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

โš ๏ธ Potential issue

๋‚ ์งœ ํ˜•์‹ ๊ฒ€์ฆ ๋กœ์ง ์ถ”๊ฐ€ ํ•„์š”

ํ˜„์žฌ ๋‚ ์งœ ํ˜•์‹์— ๋Œ€ํ•œ ์•ˆ๋‚ด๋งŒ ์žˆ๊ณ  ์‹ค์ œ ๊ฒ€์ฆ์ด ์—†์Šต๋‹ˆ๋‹ค. ์ž˜๋ชป๋œ ํ˜•์‹ ์ž…๋ ฅ ์‹œ ์‚ฌ์šฉ์ž๊ฐ€ ์ฆ‰๊ฐ์ ์ธ ํ”ผ๋“œ๋ฐฑ์„ ๋ฐ›์„ ์ˆ˜ ์—†์Šต๋‹ˆ๋‹ค.

๋‹ค์Œ๊ณผ ๊ฐ™์€ ๋‚ ์งœ ๊ฒ€์ฆ ํ•จ์ˆ˜ ์ถ”๊ฐ€๋ฅผ ์ œ์•ˆํ•ฉ๋‹ˆ๋‹ค:

private fun isValidDateFormat(date: String): Boolean {
    return try {
        val formatter = SimpleDateFormat("yyyy.MM.dd", Locale.getDefault())
        formatter.isLenient = false
        formatter.parse(date)
        true
    } catch (e: ParseException) {
        false
    }
}

๊ทธ๋ฆฌ๊ณ  TextField์—์„œ ๋‹ค์Œ๊ณผ ๊ฐ™์ด ์‚ฌ์šฉ:

 LimitedLengthTextField(
     label = "๋ชจ์ง‘๊ธฐ๊ฐ„",
     textState = startedDateState,
     placeholder = "์‹œ์ž‘์ผ",
-    isError = false,
+    isError = startedDateState.isNotEmpty() && !isValidDateFormat(startedDateState),
     updateTextValue = onStartedDateChange,
     modifier = Modifier.weight(1f)
 )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0๏ธโƒฃ Priority: Critical ์šฐ์„ ์ˆœ์œ„ - ๊ธด๊ธ‰!!!!!
Projects
None yet
2 participants