みんなの描いた絵#245
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull Request Overview
「みんなの描いた絵」機能の実装により、EXPOで書かれた一筆書きを表示するページが追加されました。この機能では、ユーザーが描いた手書きデータをバックエンドに保存し、フロントエンドで一覧表示できるようになっています。
- バックエンドに手書きデータを保存・取得するエンドポイントを追加
- フロントエンドにEXPOページを新規作成し、手書きデータをキャンバスでプレビュー表示
- 日時フィルタリング機能を実装し、指定日時以降のデータを取得可能に
Reviewed Changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
| frontend/src/app/expo/page.tsx | 手書きデータを一覧表示するEXPOページの新規作成。キャンバスプレビュー機能と日時フィルタリング機能を実装 |
| backend/schemas.py | 手書きデータ用のPydanticスキーマ(HandwritingBase, HandwritingCreate, Handwriting)を追加 |
| backend/models.py | 手書きデータを保存するHandwritingモデルをデータベースに追加 |
| backend/main.py | ルート計算時に手書きデータを保存する処理と、手書きデータを取得するGETエンドポイントを追加 |
|
|
||
|
|
||
| class HandwritingBase(BaseModel): | ||
| drawing_points: list[DisplayPoint] |
There was a problem hiding this comment.
DisplayPointが定義されていません。このスキーマを使用する前に、DisplayPointの定義を追加する必要があります。
|
|
||
| class Handwriting(Base): | ||
| __tablename__ = 'handwritings' | ||
| id = Column(UUID, primary_key=True, default=uuid.uuid4) |
There was a problem hiding this comment.
uuidがインポートされていません。ファイルの先頭にimport uuidを追加する必要があります。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
関連issue
変更概要
みんなの描いた絵を実装
動作確認方法やスクリーンショット