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

dev #55

Merged
merged 4 commits into from
Jan 19, 2024
Merged

dev #55

merged 4 commits into from
Jan 19, 2024

Conversation

tktcorporation
Copy link
Owner

@tktcorporation tktcorporation commented Jan 19, 2024

  • ci: nodeversion の指定に package.json を使う
  • feat: ワールド名の表示機能
  • feat: PhotoListでworld名表示
  • style: function-declaration -> arrow-function

Summary by CodeRabbit

  • 新機能

    • VRChat APIからワールド情報を取得する新しい機能が追加されました。
    • 写真リストにワールド情報を表示する新しいコンポーネントが組み込まれました。
  • バグ修正

    • OGP画像生成のロジックが改善され、画像の説明がワールド名に設定されるようになりました。
  • リファクタ

    • Reactコンポーネントの定義にアロー関数を使用するようにルールが変更されました。
    • 写真表示に関するロジックが更新され、異なる種類のアイテムのレンダリングが改善されました。
  • 設定変更

    • Node.jsのバージョン指定に使用するファイルが変更され、依存関係のセットアップに影響を与えます。
    • コンベンショナルコミットとgitmojiに関連する設定が追加されました。
  • ドキュメント

    • ファイル名のパターンマッチングに使用する正規表現が変更されました。

Copy link
Contributor

coderabbitai bot commented Jan 19, 2024

Walkthrough

プロジェクトの構成が更新され、Reactのコンポーネント定義にアロー関数が推奨されるようになりました。Node.jsのバージョン指定はpackage.jsonに統一され、コーディング規約にgitmojiの使用が含まれない設定が追加されました。Electron関連のファイルでは、新しい機能が追加され、既存のロジックが変更されています。また、srcディレクトリのPhotoListコンポーネントも大幅なリファクタリングが行われています。

Changes

ファイルパス 変更概要
.eslintrc.js Reactのコンポーネント定義ルールがアロー関数を使用するように変更されました。
.github/.../wip-screenshot.yml Node.jsのバージョン指定のファイルパスが.node-versionからpackage.jsonに変更されました。
.github/.../lint-test.yml node-version-file値が.node-versionからpackage.jsonに変更されました。
.github/.../tag-on-push.yml node-version-fileパラメータが.node-versionからpackage.jsonに変更されました。
.github/.../upload-build-files.yml node-version-fileパラメータが.node-versionからpackage.jsonに変更されました。
.vscode/settings.json "conventionalCommits.gitmoji"設定がfalseに設定され、gitmoji関連の変更があったことを示します。
electron/api.ts getVrcWorldInfoByWorldIdという新しい関数がrouterオブジェクトに追加されました。
electron/service.ts VRChat APIからワールド情報を取得するgetVrcWorldInfoByWorldIdという新しい非同期関数が追加されました。
electron/service/.../createWorldNameImage.ts createOGPImage関数がexif.descriptionの代わりにworldNameImageDescriptionプロパティに設定するように変更されました。
electron/service/.../service.ts getToCreateMap関数からdescriptionフィールドが削除され、exifオブジェクトの使用方法に影響を与える可能性があります。
electron/service/type.ts parseJoinInfoFileName関数の正規表現が変更され、入力文字列の異なるフォーマットがキャプチャされるようになりました。
src/page/photoList/PhotoList.tsx PhotoListコンポーネントがリファクタリングされ、WorldInfoコンポーネントが追加され、PhotoVrcPhotoに置き換えられ、アイテムのレンダリングロジックが更新されました。

Poem

🐰🌟
コードの海に新風が吹き、
アロー関数が花と咲き。
ノードは緑、新しき道、
バグよさらば、兎も跳ねる。

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>.
    • Generate unit-tests for this file.
  • 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 tests 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 generate interesting stats about this repository from git and render them as a table.
    • @coderabbitai show all the console.log statements in this repository.
    • @coderabbitai read src/utils.ts and generate unit tests.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

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 as PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger a review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai help to get help.

Additionally, you can add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.

CodeRabbit Configration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • The JSON schema for the configuration file is available here.
  • 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/coderabbit-overrides.v2.json

CodeRabbit Discord Community

Join our Discord Community to get help, request features, and share feedback.

@tktcorporation tktcorporation merged commit 4ff7169 into main Jan 19, 2024
1 check passed
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.

Review Status

Actionable comments generated: 0

Configuration used: CodeRabbit UI

Commits Files that changed from the base of the PR and between 23448c2 and dd7d8f2.
Files ignored due to path filters (1)
  • package.json is excluded by: !**/*.json
Files selected for processing (12)
  • .eslintrc.js (1 hunks)
  • .github/wip-screenshot.yml (1 hunks)
  • .github/workflows/lint-test.yml (1 hunks)
  • .github/workflows/tag-on-push.yml (1 hunks)
  • .github/workflows/upload-build-files.yml (1 hunks)
  • .vscode/settings.json (1 hunks)
  • electron/api.ts (1 hunks)
  • electron/service.ts (2 hunks)
  • electron/service/infoFile/createWorldNameImage.ts (2 hunks)
  • electron/service/infoFile/service.ts (1 hunks)
  • electron/service/type.ts (1 hunks)
  • src/page/photoList/PhotoList.tsx (5 hunks)
Files skipped from review due to trivial changes (2)
  • .github/workflows/tag-on-push.yml
  • .vscode/settings.json
Additional comments: 13
.github/workflows/lint-test.yml (1)
  • 17-17: 変更は適切です。.node-versionからpackage.jsonへのnode-version-fileの値の変更は、CI設定の一貫性を高めるために行われました。
.github/workflows/upload-build-files.yml (1)
  • 28-28: この変更も.github/workflows/lint-test.ymlと同様で、Node.jsのバージョン指定をpackage.jsonに統一しています。
.github/wip-screenshot.yml (1)
  • 20-20: .node-versionからpackage.jsonへの変更は、他のワークフローファイルと一致しており、Node.jsのバージョン管理を統一しています。
.eslintrc.js (1)
  • 49-50: react/function-component-definitionルールが変更され、名前付きおよび無名のコンポーネントに対してアロー関数の使用が強制されるようになりました。これはコードスタイルの改善に寄与します。
electron/service/infoFile/createWorldNameImage.ts (1)
  • 99-99: ImageDescriptionプロパティがexif.descriptionからworldNameに変更されました。これはOGP画像生成ロジックの変更を反映しています。
electron/service/type.ts (1)
  • 87-87: parseJoinInfoFileName関数で使用される正規表現が変更されました。これは入力文字列の異なるフォーマットをキャプチャするための変更です。
src/page/photoList/PhotoList.tsx (4)
  • 13-32: WorldInfoコンポーネントが新たに追加され、仮想世界の情報を取得して表示する機能が含まれています。
  • 34-34: PhotoListコンポーネントが関数宣言からアロー関数にリファクタリングされました。これはESLintの設定変更に沿ったものです。
  • 142-149: PhotoListコンポーネント内でWorldInfoコンポーネントが使用されており、仮想世界のIDと日時を渡しています。
  • 170-170: whyDidYouRenderプロパティがPhotoListに追加されました。これはパフォーマンス最適化のための変更と思われます。
electron/service/infoFile/service.ts (1)
  • 103-108: > 📝 NOTE

This review was outside the diff hunks, and no overlapping diff hunk was found. Original lines [99-99]

getToCreateMap関数内のexifオブジェクトからdescriptionフィールドが削除されました。これはcreateWorldNameImage.tsでの変更と一致しています。

electron/api.ts (1)
  • 340-352: routerオブジェクトにgetVrcWorldInfoByWorldIdという新しい関数が追加されました。これはVRChat APIから世界情報を取得する新しいロジックフローを扱います。
electron/service.ts (1)
  • 463-475: getVrcWorldInfoByWorldIdという新しい非同期関数が追加され、VRChat APIから世界情報を取得し、世界名を含むneverthrow.Resultを返します。

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