Skip to content

[UI] top app bar 컴포넌트 구현완료#28

Merged
Nico1eKim merged 9 commits intoTHIP-TextHip:developfrom
Nico1eKim:ui/#27-top_app_bar
Jun 26, 2025
Merged

[UI] top app bar 컴포넌트 구현완료#28
Nico1eKim merged 9 commits intoTHIP-TextHip:developfrom
Nico1eKim:ui/#27-top_app_bar

Conversation

@Nico1eKim
Copy link
Member

@Nico1eKim Nico1eKim commented Jun 26, 2025

➕ 이슈 링크


🔎 작업 내용

  • type = book -> BookTopAppBar
  • type = default -> DefaultTopAppBar
  • type = inputpage -> InputTopAppBar
  • type = feed_list -> FeedListTopAppBar
  • type = logo -> LogoTopAppBar
  • type = left_name -> LeftNameTopAppBar

📸 스크린샷

type = book -> BookTopAppBar

image

type = default -> DefaultTopAppBar

image

type = inputpage -> InputTopAppBar

image

type = feed_list -> FeedListTopAppBar

image

type = logo -> LogoTopAppBar

image

type = left_name -> LeftNameTopAppBar

image

😢 해결하지 못한 과제

  • [] TASK


📢 리뷰어들에게

  • GUI에 있는 top app bar들과 컴포넌트 부분에 있는 top app bar끼리 살짝 차이가 있는 것 같아서 GUI(실제 쓰이는 페이지들)을 보고 최대한 다 구현하려고 했는데 혹시 없는 컴포넌트가 있으면 새로 만들어주세요 !
  • 급하게 작업한거라서 일단 바이패스 하겠습니다 꼭 !!!!! 코드리뷰 해주세요 ~

Summary by CodeRabbit

  • 신규 기능

    • 다양한 스타일과 기능을 제공하는 여러 상단 앱바(Top App Bar) 컴포넌트가 추가되었습니다.
    • 새로운 로고 벡터 이미지가 리소스에 추가되었습니다.
  • 개선 사항

    • HeaderButton 컴포넌트에 외부에서 활성화 상태를 제어할 수 있는 기능이 추가되었습니다.
  • 문서 및 리소스

    • 상단 앱바 관련 새로운 문자열 리소스가 추가되었습니다.
    • 기존 문자열에 이모지와 숫자 사이에 공백이 추가되어 가독성이 향상되었습니다.

@Nico1eKim Nico1eKim requested review from JJUYAAA and rbqks529 and removed request for JJUYAAA June 26, 2025 18:22
@Nico1eKim Nico1eKim self-assigned this Jun 26, 2025
@coderabbitai
Copy link

coderabbitai bot commented Jun 26, 2025

Caution

Review failed

The pull request is closed.

"""

Walkthrough

여러 종류의 Top App Bar UI 컴포넌트(Book, Default, Input, FeedList, Logo, LeftName)가 Jetpack Compose로 신규 구현되었습니다. 각 컴포넌트는 커스터마이즈 가능한 파라미터와 프리뷰를 포함합니다. 버튼 컴포저블의 인터페이스가 개선되었고, 문자열 및 벡터 리소스가 추가/수정되었습니다. 일부 IDE 설정 파일이 정리되었습니다.

Changes

파일/경로 그룹 변경 요약
.idea/deploymentTargetSelector.xml 불필요한 SelectionState 항목 제거 및 간소화
app/src/main/java/com/texthip/thip/ui/common/buttons/HeaderButton.kt HeaderButton: 내부 상태 제거, enabled 파라미터 도입, 프리뷰 수정
app/src/main/java/com/texthip/thip/ui/common/topappbar/BookTopAppBar.kt
DefaultTopAppBar.kt
FeedListTopAppBar.kt
InputTopAppBar.kt
LeftNameTopAppBar.kt
LogoTopAppBar.kt
Book, Default, Input, FeedList, Logo, LeftName 타입의 Top App Bar 컴포넌트 신규 구현, 각종 프리뷰 포함
app/src/main/res/drawable/ic_logo.xml 벡터 로고 리소스 추가
app/src/main/res/values/strings.xml "reading_user_num" 문자열 수정, "subscriber", "next", "page_name" 문자열 추가

Sequence Diagram(s)

sequenceDiagram
    participant User
    participant TopAppBar (Composable)
    participant Callback

    User->>TopAppBar: 파라미터 전달 (타입별, 클릭 핸들러 등)
    TopAppBar->>User: UI 렌더링 (타입별 커스텀)
    User->>TopAppBar: 아이콘/버튼 클릭
    TopAppBar->>Callback: onLeftClick(), onRightClick() 등 호출
Loading

Assessment against linked issues

Objective Addressed Explanation
Book 타입 Top App Bar 구현 (#27)
Default 타입 Top App Bar 구현 (#27)
InputPage 타입 Top App Bar 구현 (#27)
Feed_list 타입 Top App Bar 구현 (#27)
Logo 타입 Top App Bar 구현 (#27)
Left_name 타입 Top App Bar 구현 (#27)

Poem

토끼가 말했죠, "앗! 앱바가 여섯이나!"
책, 기본, 입력, 피드, 로고, 이름까지 다~
클릭하면 반짝, 커스텀도 척척,
새 리소스와 문자열도 반가워요, 덕분에 앱이 더 멋져졌죠!
🐰✨
"""


📜 Recent review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between eedc71a and df2b167.

📒 Files selected for processing (10)
  • .idea/deploymentTargetSelector.xml (1 hunks)
  • app/src/main/java/com/texthip/thip/ui/common/buttons/HeaderButton.kt (2 hunks)
  • app/src/main/java/com/texthip/thip/ui/common/topappbar/BookTopAppBar.kt (1 hunks)
  • app/src/main/java/com/texthip/thip/ui/common/topappbar/DefaultTopAppBar.kt (1 hunks)
  • app/src/main/java/com/texthip/thip/ui/common/topappbar/FeedListTopAppBar.kt (1 hunks)
  • app/src/main/java/com/texthip/thip/ui/common/topappbar/InputTopAppBar.kt (1 hunks)
  • app/src/main/java/com/texthip/thip/ui/common/topappbar/LeftNameTopAppBar.kt (1 hunks)
  • app/src/main/java/com/texthip/thip/ui/common/topappbar/LogoTopAppBar.kt (1 hunks)
  • app/src/main/res/drawable/ic_logo.xml (1 hunks)
  • app/src/main/res/values/strings.xml (2 hunks)
✨ Finishing Touches
  • 📝 Generate Docstrings

🪧 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.
    • Explain this complex logic.
    • 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 explain this code block.
    • @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 explain its main purpose.
    • @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.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

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 generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this 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.

@Nico1eKim Nico1eKim merged commit afdfdae into THIP-TextHip:develop Jun 26, 2025
1 check was pending
Copy link
Collaborator

@rbqks529 rbqks529 left a comment

Choose a reason for hiding this comment

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

TopAppBar 전부 확인했는데 최대한 범용성있게 다 파라미터로 넣어서 처리한거 보니까 고수의 냄새가 나네요 현재 개발한거에 pull해서 처리한 후에 개발하신 TopAppBar로 바꿔서 처리하겠습니다 고생하셨어

Copy link
Member

@JJUYAAA JJUYAAA left a comment

Choose a reason for hiding this comment

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

수고하셨숩니다앙 〰️〰️

isLeftIconVisible: Boolean = false,
isRightIconVisible: Boolean = false,
leftIcon: Painter,
rightIcon: Painter,
Copy link
Member

Choose a reason for hiding this comment

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

leftIcon이랑 rightIcon을 nullable로 처리하지 않고 isLeftIconVisible 같은 Boolean 값을 별도로 두셔서 아이콘 없이 사용하는 경우에도 아이콘을 입력해야하는게 좀 비효율적이지 않나 싶은데, 이렇게 구현하신 이유가 따로 있는지 궁금합니다!

Copy link
Member Author

Choose a reason for hiding this comment

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

아 이거 처음에 저 두개 아이콘이 변경 가능한지 모르고 구현했다가 나중에 수정해서 아마 저렇게 남아있는건데 지금 수정한 코드에서는 아이콘도 기본으로 적용되게 해놔서 아마 괜찮을 것 같습니다 ..!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[UI] Top App Bar 컴포넌트 [(THIP2025-66)]

3 participants