-
Notifications
You must be signed in to change notification settings - Fork 0
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
スコア計算の修正とトーストをダイアログに集約した #80
Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
動作おけです
app/src/app/camera/page.tsx
Outdated
@@ -232,7 +231,9 @@ const CameraApp = () => { | |||
|
|||
const percentSimilarity = Math.floor(data.similarity * 100); | |||
|
|||
const message = `${data.text} 類似度 ${percentSimilarity}% スコア: ${data.score} ランキングから順位を確認しましょう!`; | |||
setMessage( | |||
`キャプション: ${data.text} \n類似度: ${percentSimilarity}% スコア: ${data.score} \nランキングから順位を確認しましょう!`, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
キャプションって表示変えますか?
あと正解の単語(日本語)追加できたら良いかと思います
User description
概要
スコア計算にsimilarityPointとspeedPointを追加した。最低保証みたいな感じでsimilarityとanswerTimeが低かったらぽ員を増やすようにした。
撮影した後ダイアログとトーストを表示していたけどダイアログに集約させました。
変更内容
動作確認
関連するIssue
#123
備考
PR Type
enhancement, bug_fix
Description
PointDialog
now consolidates messages previously shown astoast
notifications, improving user experience by displaying them in a dialog.experiencePointData
to retrieve user experience points, which are now factored into the score calculation.PointDialog
to support line breaks, enhancing readability.Changes walkthrough 📝
page.tsx
Integrate toast notifications into PointDialog
app/src/app/camera/page.tsx
toast
notifications and integrated messages intoPointDialog
.message
to store dialog messages.PointDialog.tsx
Enhance PointDialog to support HTML formatted messages
app/src/components/view/PointDialog.tsx
PointDialog
to accept custom sub-messages with HTMLformatting.
scoreRegister.ts
Enhance score calculation with experience points
app/src/functions/scoreRegister.ts
experiencePointData
function to fetch user experience points.similarity or speed.