Closed kazuya-bros closed 2 weeks ago
[!IMPORTANT]
Review skipped
Auto reviews are disabled on base/target branches other than the default branch.
Please check the settings in the CodeRabbit UI or the
.coderabbit.yaml
file in this repository. To trigger a single review, invoke the@coderabbitai review
command.You can disable this status message by setting the
reviews.review_status
tofalse
in the CodeRabbit configuration file.
全体的な変更内容としては、新しいプロパティ characterName
と showCharacterName
が追加され、それらのプロパティを使用してキャラクター名の表示や非表示を管理する機能が複数のコンポーネントに実装されました。また、複数のロケールファイルにそれぞれの翻訳が追加されました。
ファイル | 変更内容 |
---|---|
locales/en/translation.json , locales/ja/translation.json , locales/ko/translation.json , locales/zh/translation.json |
"CharacterName" と "ShowCharacterName" の翻訳を追加 |
src/components/assistantText.tsx |
characterName と showCharacterName のプロパティを追加。条件に応じてキャラクター名を表示する機能を追加 |
src/components/chatLog.tsx |
characterName プロパティを追加、Chat コンポーネントに渡す |
src/components/menu.tsx |
characterName と showCharacterName を管理するプロパティとハンドラーを追加 |
src/components/settings.tsx |
characterName と showCharacterName の入力フィールドとトグルを追加、そのハンドリング機能を追加 |
src/pages/index.tsx |
characterName と showCharacterName の状態変数と初期化、変更処理を追加し、各コンポーネントに渡す処理を追加 |
キャラクター名、新たに光、
メニューに輝き、いっそうの魅力。
トグルで隠すか、見せるか選び、
設定変えて、新しい旅。
皆の役目、さらに楽しく、
コードのうさぎ、これからも尽力。 🌟🐇
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?
@kazuya-bros ありがとうございます!確認します!!
@kazuya-bros
確認しました!問題ありません!!
・UIとしてここが適当かどうか
大丈夫です🙆♀
・(完全に自分用に追加しましたが)名前非表示機能が必要かどうか
onoffで切り替えられるのであっても良いかなと思います!
設定画面にキャラクター名の変更UIと表示ON/OFFの切り替えUIを追加しました。
表示OFFにするとメイン画面のみ名前を非表示にします。
ご相談事項
・UIとしてここが適当かどうか ・(完全に自分用に追加しましたが)名前非表示機能が必要かどうか
また、取りあえずでメインブランチにプルリク投げていますが運用ルールあれば従います。
Summary by CodeRabbit
新機能
改善
翻訳の更新
CharacterName
とShowCharacterName
の翻訳を日本語、英語、韓国語、中国語に追加しました。