Skip to content

Commit 22d4e11

Browse files
authored
Merge pull request #40 from kc3hack/feature/game2-ui
Feature/game2 UI
2 parents 68f5c1b + c2a320d commit 22d4e11

14 files changed

Lines changed: 446 additions & 203 deletions

File tree

backend/docs/ANALYSIS_GUIDE.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ src/analysis/
117117
"speechDurationMs": 8500,
118118
"silenceDurationMs": 500,
119119
"volumeDb": -25.3,
120-
"transcribedText": "ログイン画面でパスワードを入力しても弾かれます"
120+
"transcribedText": "ログインして移動したのに、ダッシュボードが真っ白で何も表示されません"
121121
},
122122
{
123123
"turnIndex": 2,
@@ -126,7 +126,7 @@ src/analysis/
126126
"speechDurationMs": 12000,
127127
"silenceDurationMs": 300,
128128
"volumeDb": -22.1,
129-
"transcribedText": "いや、それは違います。なぜならパスワードリセットのリンクが表示されないんです"
129+
"transcribedText": "いや、キャッシュの問題ではないと思います。なぜなら別のブラウザで試しても画面が出ないんです"
130130
},
131131
{
132132
"turnIndex": 3,
@@ -135,7 +135,7 @@ src/analysis/
135135
"speechDurationMs": null,
136136
"silenceDurationMs": null,
137137
"volumeDb": null,
138-
"transcribedText": "もういいです、別の方法を試します"
138+
"transcribedText": "もう解決しそうにないので、エンジニアの方に確認してもらえますか"
139139
}
140140
]
141141
}

backend/src/services/fallbackData.ts

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -17,24 +17,24 @@ export interface FallbackEntry {
1717
export const FALLBACK_TABLE: FallbackEntry[] = [
1818
// ===== ラリー1系: 状況説明キーワード =====
1919
{
20-
keywords: ['ログイン', 'パスワード', 'サインイン', 'ログアウト', '認証', 'アカウント'],
21-
responses: [
22-
{ response: 'パスワードは半角英数字で入力していただく必要がございます。たぶん。', emotion: 'confident' },
23-
{ response: 'ブラウザのCookieをクリアしてみてください。それで直ると思います。', emotion: 'confused' },
24-
{ response: 'ブラウザを変えてみるのが早いかもしれません。根拠はないですけど。', emotion: 'confused' },
25-
{ response: 'ログイン画面を一度閉じて、もう一度開いてみてください。', emotion: 'confident' },
26-
{ response: 'パスワードの大文字小文字は区別されますので、ご確認いただけますでしょうか。', emotion: 'neutral' },
27-
],
28-
},
29-
{
30-
keywords: ['ダッシュボード', '画面', '表示されない', '見えない', '出ない', '真っ白', '白い'],
20+
keywords: ['ダッシュボード', 'メイン画面', 'ログイン後', '表示されない', '見えない', '出ない', '真っ白', '白い', '画面移行'],
3121
responses: [
3222
{ response: 'ページを更新してみてください。F5キーを押すと更新できます。', emotion: 'confident' },
3323
{ response: 'キャッシュが原因の可能性がございます。コントロールとシフトとデリートで削除できます。', emotion: 'confused' },
3424
{ response: 'こちらの環境では正常に表示されておりますので、お客様の環境の問題かと思われます。', emotion: 'apologetic' },
3525
{ response: '別のタブで開き直してみるとうまくいくかもしれません。', emotion: 'neutral' },
3626
],
3727
},
28+
{
29+
keywords: ['ログイン', 'パスワード', 'サインイン', 'ログアウト', '認証', 'アカウント', '入れない'],
30+
responses: [
31+
{ response: 'パスワードは半角英数字で入力していただく必要がございます。たぶん。', emotion: 'confident' },
32+
{ response: 'ログイン画面を一度閉じて、もう一度開いてみてください。', emotion: 'confident' },
33+
{ response: 'パスワードの大文字小文字は区別されますので、ご確認いただけますでしょうか。', emotion: 'neutral' },
34+
{ response: 'ブラウザのCookieをクリアしてみてください。それで直ると思います。', emotion: 'confused' },
35+
{ response: 'ブラウザを変えてみるのが早いかもしれません。根拠はないですけど。', emotion: 'confused' },
36+
],
37+
},
3838
{
3939
keywords: ['エラー', 'エラーコード', '500', '404', '403', '不具合', 'バグ', 'おかしい'],
4040
responses: [
307 KB
Loading
105 KB
Binary file not shown.
132 KB
Binary file not shown.

frontend/src/app/page.tsx

Lines changed: 12 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
'use client';
22

3+
import Image from 'next/image';
34
import { useRouter } from 'next/navigation';
45
import { useState } from 'react';
56
import type { CSSProperties } from 'react';
@@ -62,7 +63,7 @@ export default function TopPage() {
6263
const handleStartClick = () => {
6364
setShowExplosion(true);
6465

65-
const audio = new Audio('/start-se.mp3');
66+
const audio = new Audio('/sounds/start-se.mp3');
6667
audio.play().catch(() => {});
6768

6869
setTimeout(() => {
@@ -88,31 +89,25 @@ export default function TopPage() {
8889
}}
8990
>
9091
<div className="flex flex-col items-center gap-[2vh] w-full">
91-
<img
92-
src="/RealYouLogo.png"
92+
<Image
93+
src="/images/RealYouLogo.png"
9394
alt="Real You -本当の私じゃだめですか?-"
94-
className="
95-
max-h-[65vh]
96-
w-auto
97-
object-contain
98-
drop-shadow-2xl
99-
"
95+
width={800}
96+
height={500}
97+
className="max-h-[65vh] w-auto object-contain drop-shadow-2xl"
10098
/>
10199

102100
<div className="relative">
103101
<button
104102
onClick={handleStartClick}
105103
className="transition-all duration-100 ease-out hover:scale-110 active:scale-95 active:opacity-50"
106104
>
107-
<img
108-
src="/StartButton.png"
105+
<Image
106+
src="/images/StartButton.png"
109107
alt="診断スタート"
110-
className="
111-
w-[40vw]
112-
max-w-xs
113-
min-w-[180px]
114-
drop-shadow-md
115-
"
108+
width={320}
109+
height={120}
110+
className="w-[40vw] max-w-xs min-w-[180px] drop-shadow-md"
116111
/>
117112
</button>
118113

0 commit comments

Comments
 (0)