Repository navigation
[FIX] MCP 불안정 상태 표시, 사용자 메뉴 role 정합 (#880 #853) - #923
Merged
Merged
Conversation
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.
⛓️ Related Issues
Closes #880
Closes #853
☁️ what to do
MCP 연동(
/workspace/mcp) 화면의 불안정(degraded) 상태 표시와 사용자 메뉴의 접근성 역할 불일치를 함께 보강했습니다. 불안정 결과가 성공 스타일로 표시되어 점검 필요 상태를 성공으로 오인하던 문제와, 사용자 메뉴가 menu 팝업을 선언하면서도 컨테이너/항목 role이 빠져 있던 문제를 해결했습니다.💫 Changes in the project
result.ok불린만으로 클래스/아이콘을 분기해server.status === 'degraded'를 고려하지 않던 점입니다(토스트는 이미 3상태를 구분하는데 카드만 누락).resultTone(server, result)헬퍼로 토스트와 동일한 기준(fail/degraded/ok)을 카드에도 적용하고, 톤별 아이콘/라벨을 통일했습니다(check_circle/warning/error). degraded 전용 클래스와 CSS를 추가하고, 색에 의존하지 않도록role="status"와 보조기술용 상태 라벨을 노출했습니다.aria-haspopup="menu"를 선언하는데 메뉴 컨테이너에role="menu", 항목에role="menuitem"이 없던 점이 원인입니다. 컨테이너에role="menu"와aria-label, 항목 버튼에role="menuitem"을 추가했습니다. P1에서 들어간 Escape 닫기/포커스 복귀 동작은 손대지 않고 유지했습니다.✅ How to Test
cd frontend && npm cinpm run typecheck(타입 에러 0 확인)npm run test(신규tests/mcpDegradedState.test.mjs포함 통과 확인)/workspace/mcp에서 degraded 서버(예: grafana-mcp) 연결 테스트 결과가 warning 톤/아이콘으로 표시되고 성공과 구분되는지👀 References
frontend/src/pages/agents/McpServersPage.vue,frontend/src/components/layout/UserMenu.vuefrontend/tests/mcpDegradedState.test.mjsMcpServerStatus는connected/degraded/disconnected3종이며,McpConnectionResult.ok와 별개라 degraded여도 ok가 true일 수 있습니다.npm run test의 사전 실패 4건은 본 변경 전부터 main에서 실패하던 테스트로, 이번 변경과 무관합니다.