feat: remove bottom slide-up panel

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
EENE Dashboard
2026-06-01 13:12:31 +09:00
parent b4ca8f3245
commit e858bf995f
2 changed files with 46 additions and 56 deletions

View File

@@ -4,7 +4,6 @@ import { apiClient } from '../lib/apiClient';
import { useTasks } from '../hooks/useTasks';
import { DashboardHeader } from '../components/dashboard/DashboardHeader';
import { DepartmentColumn } from '../components/dashboard/DepartmentColumn';
import { RoutinePanel } from '../components/dashboard/RoutinePanel';
import { useSocket } from '../contexts/SocketContext';
import { sendTaskSelected, openDetailWindow } from '../lib/dualMonitor';
@@ -13,7 +12,6 @@ const QUARTER = '2026-Q2';
export default function DashboardPage() {
const [activeType, setActiveType] = useState('전체');
const [activeStatus, setActiveStatus] = useState('전체');
const [isBottomPanelOpen, setIsBottomPanelOpen] = useState(false);
const queryClient = useQueryClient();
const socket = useSocket();
@@ -51,8 +49,6 @@ export default function DashboardPage() {
const sec2Tasks = filtered.filter((t) => t.section === '학습성장');
const sec3Tasks = filtered.filter((t) => t.section === '운영지원');
const sec4Tasks = filtered.filter((t) => t.section === '전산관리');
const routineTasks = tasks.filter((t) => t.taskType === '상시업무');
const { data: colConfigs } = useQuery({
queryKey: ['columns', 'all'],
queryFn: async () => {
@@ -141,27 +137,6 @@ export default function DashboardPage() {
/>
</div>
{/* 하단 슬라이드 패널 */}
<button
type="button"
onClick={() => setIsBottomPanelOpen((v) => !v)}
className={`absolute left-1/2 z-40 -translate-x-1/2 rounded-t-2xl border border-orange-200 bg-orange-50 px-10 py-1.5 text-orange-600 shadow-md transition-all hover:bg-orange-100 ${
isBottomPanelOpen ? 'top-0' : 'bottom-0'
}`}
aria-label={isBottomPanelOpen ? '하단 정보 닫기' : '하단 정보 열기'}
>
<span className={`block text-2xl font-black leading-none transition-transform ${isBottomPanelOpen ? 'rotate-180' : ''}`}>
^
</span>
</button>
<section
className={`absolute inset-x-0 bottom-0 z-30 h-full rounded-t-3xl border-t border-gray-200 bg-white shadow-2xl transition-transform duration-300 ease-out overflow-hidden ${
isBottomPanelOpen ? 'translate-y-0' : 'translate-y-full'
}`}
>
<RoutinePanel tasks={routineTasks} />
</section>
</main>
</div>
);