diff --git a/player/src/App.jsx b/player/src/App.jsx
index cf039fa..5059575 100644
--- a/player/src/App.jsx
+++ b/player/src/App.jsx
@@ -63,6 +63,7 @@ export default function App({ bootstrap = null }) {
const [runRequest, setRunRequest] = useState(null);
const [bootstrapAutoLoadPending, setBootstrapAutoLoadPending] = useState(() => resolvedBootstrap.autoLoadPublicReplay);
const [deckTab, setDeckTab] = useState('source');
+ const [isGuideModalOpen, setIsGuideModalOpen] = useState(false);
const localBridgeAvailable = hasLocalRepoBridge(globalThis);
const copy = getPlayerCopy(language);
const modeDefinitions = copy.modeDefinitions;
@@ -475,14 +476,15 @@ export default function App({ bootstrap = null }) {
{modeDefinitions.find((item) => item.id === sourceMode)?.description}
-
- {copy.sourceGuide.toggleLabel}
-
-
+
+
+
+ {isGuideModalOpen && (
+ setIsGuideModalOpen(false)}
+ >
+
event.stopPropagation()}
+ >
+
+
+
+
+
+
+ )}
);
}
diff --git a/player/src/App.ui.test.jsx b/player/src/App.ui.test.jsx
index e7b254a..3c1f29a 100644
--- a/player/src/App.ui.test.jsx
+++ b/player/src/App.ui.test.jsx
@@ -439,15 +439,18 @@ describeIfApp('Player Shell UI', () => {
});
});
- test('source guide stays collapsed by default and expands on demand', async () => {
+ test('source guide is not rendered until opened, then shows in a modal', async () => {
const { user } = renderPlayerApp(App);
- expect(screen.getByRole('heading', { name: 'Choose the right input path' })).not.toBeVisible();
+ expect(screen.queryByRole('heading', { name: 'Choose the right input path' })).not.toBeInTheDocument();
// 히어로 다이어트: 부제·메타 칩이 사라졌다
expect(screen.queryByText('Read-only replay')).not.toBeInTheDocument();
await user.click(screen.getByText('Source guide'));
expect(screen.getByRole('heading', { name: 'Choose the right input path' })).toBeVisible();
+
+ await user.click(screen.getByRole('button', { name: 'Close' }));
+ expect(screen.queryByRole('heading', { name: 'Choose the right input path' })).not.toBeInTheDocument();
});
test('네이티브 셸에서만 전환 버튼이 보인다', () => {
diff --git a/player/src/lib/playerI18n.js b/player/src/lib/playerI18n.js
index ced0f09..ce7a89d 100644
--- a/player/src/lib/playerI18n.js
+++ b/player/src/lib/playerI18n.js
@@ -44,6 +44,7 @@ const PLAYER_COPY = {
notLoaded: 'Not loaded',
activeMode: 'Active mode',
selectRepository: 'Select repository',
+ close: 'Close',
},
app: {
errors: {
@@ -412,6 +413,7 @@ const PLAYER_COPY = {
notLoaded: '불러오지 않음',
activeMode: '현재 모드',
selectRepository: '저장소 선택',
+ close: '닫기',
},
app: {
errors: {
diff --git a/player/src/styles.css b/player/src/styles.css
index 7f01b53..d4307db 100644
--- a/player/src/styles.css
+++ b/player/src/styles.css
@@ -196,6 +196,8 @@ textarea {
.player-column {
display: grid;
gap: 20px;
+ align-items: start;
+ align-content: start;
}
.player-card {
@@ -1411,3 +1413,58 @@ textarea {
.player-collapsible--inline {
background: rgba(8, 12, 24, 0.4);
}
+
+.player-collapsible__summary--button {
+ display: block;
+ width: 100%;
+ border: 0;
+ background: none;
+ text-align: left;
+ font: inherit;
+}
+
+.player-modal-backdrop {
+ position: fixed;
+ inset: 0;
+ z-index: 40;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ padding: 24px;
+ background: rgba(2, 6, 23, 0.72);
+ backdrop-filter: blur(4px);
+}
+
+.player-modal {
+ position: relative;
+ width: 100%;
+ max-width: 920px;
+ max-height: calc(100vh - 48px);
+ overflow-y: auto;
+ border-radius: 22px;
+}
+
+.player-modal__bar {
+ position: sticky;
+ top: 0;
+ z-index: 1;
+ display: flex;
+ justify-content: flex-end;
+ padding-bottom: 12px;
+}
+
+.player-modal__close {
+ width: 36px;
+ height: 36px;
+ border: 1px solid var(--player-panel-border);
+ border-radius: 999px;
+ background: var(--player-bg-elevated);
+ color: var(--player-text);
+ font-size: 16px;
+ line-height: 1;
+ cursor: pointer;
+}
+
+.player-modal__close:hover {
+ border-color: var(--player-panel-border-strong);
+}
diff --git a/src/components/maestro/FooterHelp.jsx b/src/components/maestro/FooterHelp.jsx
index b699c08..9afc437 100644
--- a/src/components/maestro/FooterHelp.jsx
+++ b/src/components/maestro/FooterHelp.jsx
@@ -18,13 +18,13 @@ export default function FooterHelp({ lanes = [] }) {
Tip: 노트를 탭하면 Diff, 하단 레인 버튼으로 승인/반려.
-
-
123 프로젝트 전환
-
{laneKeys || 'Click'} 승인
-
Shift + {laneKeys || 'Click'} 반려(피드백)
-
Ctrl+Z 취소
-
H 히스토리 패널
-
Tap 하단 레인 버튼으로 승인/반려
+
+ 123 프로젝트 전환
+ {laneKeys || 'Click'} 승인
+ Shift + {laneKeys || 'Click'} 반려(피드백)
+ Ctrl+Z 취소
+ H 히스토리 패널
+ Tap 하단 레인 버튼으로 승인/반려
);