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

feat: create promotion button #558

Merged

Conversation

2paperstar
Copy link
Member

@2paperstar 2paperstar commented Feb 11, 2025

CleanShot 2025-02-11 at 21 44 21

  • chore: add i18n
  • chore: update Podfile.lock
  • chore: add infoteam logo asset
  • feat: add promotion button
  • feat: add recruiting promotion button
  • fix: open promotion link in external application
  • feat: promotion button gradient

Summary by CodeRabbit

  • New Features
    • 앱 다국어 지원이 강화되어, 영문, 일본어, 한국어, 러시아어 버전으로 채용 관련 프로모션 메시지가 제공됩니다.
    • 새로운 프로모션 버튼이 추가되어, 클릭 시 외부 채용 페이지로 연결됩니다.
    • 인포팀 로고 이미지가 앱에 포함되어, 디자인 요소로 활용됩니다.

Copy link
Contributor

coderabbitai bot commented Feb 11, 2025

Warning

Rate limit exceeded

@2paperstar has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 23 minutes and 49 seconds before requesting another review.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

📥 Commits

Reviewing files that changed from the base of the PR and between f483f04 and 2f3308a.

📒 Files selected for processing (5)
  • assets/i18n/strings.i18n.json (1 hunks)
  • assets/i18n/strings_jp.i18n.json (1 hunks)
  • assets/i18n/strings_ko.i18n.json (1 hunks)
  • assets/i18n/strings_ru.i18n.json (1 hunks)
  • pubspec.yaml (3 hunks)
📝 Walkthrough

Walkthrough

이 PR은 다국어 지원 파일(i18n JSON)에 새로운 "promotion" 섹션과 그 하위의 "recruiting" 객체(각 언어별 title 및 description)를 추가합니다. 또한, 프로모션 기능을 위한 새로운 PromotionButton 위젯이 도입되어 ListLayout에 포함되고, 버튼 클릭 시 Strings 클래스의 recruitmentUrl을 활용하여 외부 URL을 호출합니다. 그 외에 pubspec.yaml에 새로운 asset(assets/logo/infoteam.svg)도 추가되었습니다.

Changes

파일 변경 요약
assets/i18n/strings*.i18n.json 모든 i18n 파일에 "promotion" 섹션 추가, 내부에 "recruiting" 객체 및 title, description 프로퍼티 추가 (언어별 문자열 적용)
lib/app/modules/common/presentation/widgets/promotion_button.dart 새로운 PromotionButton 위젯 추가. 사용자 상호작용에 따라 onPressed 콜백과 그라데이션 배경을 활용하여 버튼 UI 구현
lib/app/modules/notices/presentation/widgets/list_layout.dart ListLayout에 PromotionButton 추가 및 관련 import 삽입. 버튼 클릭 시 url_launcher를 사용해 recruitmentUrl 호출
lib/app/values/strings.dart Strings 클래스에 recruitmentUrl 상수 추가
pubspec.yaml Flutter asset 목록에 assets/logo/infoteam.svg 추가

Sequence Diagram(s)

sequenceDiagram
    participant U as 사용자
    participant L as ListLayout
    participant P as PromotionButton
    participant UL as url_launcher
    participant B as 브라우저

    U->>L: 페이지 스크롤
    L->>P: PromotionButton 표시
    U->>P: 버튼 클릭
    P->>UL: recruitmentUrl 요청
    UL->>B: URL 오픈
    B-->>U: 외부 페이지 표시
Loading

Suggested reviewers

  • dawnfire05

Poem

토끼가 뛰노는 코딩 숲 속,
작은 버튼 속 새 소식 반짝여,
promotion의 빛이 네비게이터 되어,
URL의 문을 활짝 열어주네,
귀염둥이 토끼와 함께 춤을 춰요!
🐰🌟


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 generate docstrings to generate docstrings for this PR. (Beta)
  • @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.

@2paperstar 2paperstar requested a review from a team February 11, 2025 12:44
Copy link
Contributor

@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: 1

🔭 Outside diff range comments (1)
assets/i18n/strings_ru.i18n.json (1)

105-114: ⚠️ Potential issue

그룹 상세 섹션에 일본어가 혼용되어 있습니다.

그룹 상세 섹션의 번역이 러시아어가 아닌 일본어로 되어 있습니다. 아래와 같이 수정해주세요:

-        "backLabel": "リスト",
-        "title": "グループ情報"
+        "backLabel": "Список",
+        "title": "Информация о группе"
       },
       "tab": {
-        "introduction": "紹介",
-        "notice": "お知らせ",
-        "member": "メンバー"
+        "introduction": "Введение",
+        "notice": "Уведомления",
+        "member": "Участники"
       },
-      "favorite": "お気に入り"
+      "favorite": "Избранное"
🧹 Nitpick comments (2)
lib/app/values/strings.dart (1)

22-23: 환경 변수로 URL 이동 권장

다른 URL들처럼 recruitmentUrl도 환경 변수로 관리하는 것이 좋습니다. 이는 유지보수성을 향상시키고 URL 변경 시 코드 수정 없이 업데이트할 수 있게 해줍니다.

-  static const recruitmentUrl =
-      'https://infoteam-rulrudino.notion.site/185365ea27df802683e0c7374f964784?pvs=105';
+  static final recruitmentUrl = dotenv.get('RECRUITMENT_URL');
lib/app/modules/common/presentation/widgets/promotion_button.dart (1)

6-82: 접근성 개선 필요

위젯의 접근성을 개선하기 위해 다음 사항들을 고려해주세요:

  1. 스크린 리더 지원을 위한 semanticsLabel 추가
  2. 텍스트 대비율 검증
 return ZigglePressable(
   onPressed: onPressed,
+  semanticsLabel: '$subtitle $title',
   decoration: BoxDecoration(
     // ... existing decoration
   ),
   child: Container(
📜 Review details

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

📥 Commits

Reviewing files that changed from the base of the PR and between fa9b22e and f483f04.

⛔ Files ignored due to path filters (2)
  • assets/logo/infoteam.svg is excluded by !**/*.svg
  • ios/Podfile.lock is excluded by !**/*.lock
📒 Files selected for processing (8)
  • assets/i18n/strings.i18n.json (1 hunks)
  • assets/i18n/strings_jp.i18n.json (1 hunks)
  • assets/i18n/strings_ko.i18n.json (1 hunks)
  • assets/i18n/strings_ru.i18n.json (1 hunks)
  • lib/app/modules/common/presentation/widgets/promotion_button.dart (1 hunks)
  • lib/app/modules/notices/presentation/widgets/list_layout.dart (3 hunks)
  • lib/app/values/strings.dart (1 hunks)
  • pubspec.yaml (1 hunks)
✅ Files skipped from review due to trivial changes (1)
  • pubspec.yaml
⏰ Context from checks skipped due to timeout of 90000ms (2)
  • GitHub Check: Build iOS App and Test
  • GitHub Check: Build Android App and Test
🔇 Additional comments (4)
assets/i18n/strings_ko.i18n.json (1)

323-327: 번역이 명확하고 적절합니다!

프로모션 섹션의 한국어 번역이 자연스럽고 의도를 잘 전달합니다.

assets/i18n/strings_jp.i18n.json (1)

323-327: 번역이 정확하고 일관성이 있습니다!

일본어 번역이 다른 언어 버전과 일치하며, 문법적으로도 정확합니다.

assets/i18n/strings.i18n.json (1)

323-327: 영어 번역이 명확하고 자연스럽습니다!

영어 번역이 다른 언어 버전과 일치하며, 문법적으로도 정확합니다.

assets/i18n/strings_ru.i18n.json (1)

323-327: 러시아어 번역이 정확하고 일관성이 있습니다!

러시아어 번역이 다른 언어 버전과 일치하며, 문법적으로도 정확합니다.

@2paperstar 2paperstar merged commit 86cac58 into gsainfoteam:development Feb 11, 2025
5 checks passed
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.

1 participant