diff --git a/src/app/(pages)/(main)/progress/page.tsx b/src/app/(pages)/(main)/progress/page.tsx
index 6236631..21ecdaa 100644
--- a/src/app/(pages)/(main)/progress/page.tsx
+++ b/src/app/(pages)/(main)/progress/page.tsx
@@ -33,6 +33,9 @@ export default function ProgressPage() {
const reportQuery = useProgressReportQuery();
+ // 비관리자(Center)에게는 설문 항목(리포트 헤더) 컬럼을 숨기고 id/학당명/목표 표본/완료 수만 노출한다.
+ const visibleHeaders = admin ? (reportQuery.data?.headers ?? []) : [];
+
const content = useMemo(() => {
const rows = reportQuery.data?.content ?? [];
if (!admin || selectedCenterCds.length === 0) return rows;
@@ -55,7 +58,7 @@ export default function ProgressPage() {
exportReportToExcel({
fileName: `진행현황_${new Date().toISOString().slice(0, 10)}.xlsx`,
sheetName: "진행현황",
- headers: reportQuery.data.headers,
+ headers: visibleHeaders,
content,
scale: "current",
leadingColumns,
@@ -66,20 +69,19 @@ export default function ProgressPage() {
-
- {admin ? (
+ {/* 필터(학당 선택)와 Excel 다운로드는 관리자 전용. 비관리자는 툴바 자체를 노출하지 않는다. */}
+ {admin ? (
+
- ) : (
-
- )}
-
-
+
+
+ ) : null}
{reportQuery.isLoading ? (
불러오는 중...
) : (
setDismissedIds((ids) => [...ids, current.popupId]);
- const hideToday = () => {
- const nextHiddenIds = [...new Set([...readHiddenPopupIds(), current.popupId])];
- cookieStore.set(CookieKeys.PopupHideToday, JSON.stringify(nextHiddenIds), { expires: getEndOfToday() });
- setHideTodayChecked(true);
+ // 닫기 전까지는 체크를 다시 해제할 수 있어야 하므로, 체크/해제 모두 쿠키에 반영한다.
+ const setHideToday = (next: boolean) => {
+ if (next) {
+ const nextHiddenIds = [...new Set([...readHiddenPopupIds(), current.popupId])];
+ cookieStore.set(CookieKeys.PopupHideToday, JSON.stringify(nextHiddenIds), { expires: getEndOfToday() });
+ } else {
+ const nextHiddenIds = readHiddenPopupIds().filter((id) => id !== current.popupId);
+ if (nextHiddenIds.length === 0) {
+ cookieStore.remove(CookieKeys.PopupHideToday);
+ } else {
+ cookieStore.set(CookieKeys.PopupHideToday, JSON.stringify(nextHiddenIds), { expires: getEndOfToday() });
+ }
+ }
+ setHideTodayChecked(next);
};
return (
@@ -65,7 +75,7 @@ export function ActivePopupGate() {
footer={
<>
diff --git a/src/components/report/ReportTable.tsx b/src/components/report/ReportTable.tsx
index f0d436b..5823a78 100644
--- a/src/components/report/ReportTable.tsx
+++ b/src/components/report/ReportTable.tsx
@@ -162,12 +162,16 @@ export function ReportTable({
};
return (
-
+ // leaf 컬럼이 없으면 테이블이 내용 폭만 차지하므로, 외곽 border 박스도 w-fit으로 함께 줄여
+ // 빈 영역이 넓게 남지 않도록 한다(가로가 넘칠 땐 max-w-full로 컨테이너를 넘지 않게 제한).
+
{/* DataTable.tsx와 동일하게 x/y 스크롤을 하나의 컨테이너에서 처리해야 sticky의 기준 컨테이너가 어긋나지 않는다.
overflow-x-auto만 있는 별도 wrapper를 추가로 두면 CSS 스펙상 overflow-y도 auto로 강제되어
중첩 스크롤 컨테이너가 생기고 sticky top이 깨진다. */}
-
+ {/* leaf 컬럼이 없으면(예: 비관리자 진행현황) w-full로 늘리면 leading 컬럼이 과하게 벌어지므로
+ 내용 폭(=지정한 컬럼 폭 합)만큼만 차지하도록 w-auto로 둔다. */}
+ 0 ? "w-full" : "w-auto")}>
{leadingColumns.map((column) => (