feat: tkreport/tkqc UX 개선 - 신고 완료 모달, 크로스시스템 배너, AI 도우미 가시성
- 신고 제출 후 alert → 성공 모달로 교체 (신고현황/새신고 버튼) - cross-nav.js: tkreport 페이지 상단 크로스시스템 네비게이션 배너 - report-status.html: AI 신고 도우미 버튼 추가 - common-header.js: tkqc 헤더에 "신고" 외부 링크 추가 - 배포 스크립트/가이드 추가 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -95,9 +95,31 @@ class CommonHeader {
|
||||
color: 'text-purple-600',
|
||||
bgColor: 'text-purple-600 hover:bg-purple-50'
|
||||
},
|
||||
{
|
||||
id: 'report',
|
||||
title: '신고',
|
||||
icon: 'fas fa-exclamation-triangle',
|
||||
url: this.getReportUrl(),
|
||||
pageName: 'report',
|
||||
color: 'text-orange-600',
|
||||
bgColor: 'text-orange-600 hover:bg-orange-50',
|
||||
external: true
|
||||
},
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* tkreport URL 생성
|
||||
*/
|
||||
getReportUrl() {
|
||||
var host = window.location.hostname;
|
||||
var protocol = window.location.protocol;
|
||||
if (host.includes('technicalkorea.net')) {
|
||||
return protocol + '//tkreport.technicalkorea.net/pages/safety/issue-report.html';
|
||||
}
|
||||
return protocol + '//' + host + ':30100/pages/safety/issue-report.html';
|
||||
}
|
||||
|
||||
/**
|
||||
* 헤더 초기화
|
||||
* @param {Object} user - 현재 사용자 정보
|
||||
@@ -372,9 +394,21 @@ class CommonHeader {
|
||||
`;
|
||||
}
|
||||
|
||||
// 외부 링크
|
||||
if (menu.external) {
|
||||
return `
|
||||
<a href="${menu.url}"
|
||||
class="nav-item block px-3 py-2 rounded-md text-base font-medium border-l-4 border-transparent ${activeClass}"
|
||||
data-page="${menu.id}">
|
||||
<i class="${menu.icon} mr-3"></i>
|
||||
${menu.title}
|
||||
</a>
|
||||
`;
|
||||
}
|
||||
|
||||
// 일반 메뉴 아이템
|
||||
return `
|
||||
<a href="${menu.url}"
|
||||
<a href="${menu.url}"
|
||||
class="nav-item block px-3 py-2 rounded-md text-base font-medium border-l-4 border-transparent ${activeClass}"
|
||||
data-page="${menu.id}"
|
||||
onclick="CommonHeader.navigateToPage(event, '${menu.url}', '${menu.id}')">
|
||||
|
||||
Reference in New Issue
Block a user