fix: [worker-screen] 하위 공정 필터 뱃지 제거 (전체 항상 선택)

This commit is contained in:
김보곤
2026-03-22 10:46:39 +09:00
parent 7b0adead79
commit 57470c1025

View File

@@ -1424,34 +1424,7 @@ export default function WorkerScreen() {
</TabsList>
</div>
{/* 그룹 내 하위 공정 필터 (2개 이상일 때만 표시) */}
{activeGroup && activeGroup.processes.length > 1 && (
<div className="flex items-center gap-2 mt-2 px-1 overflow-x-auto">
<button
type="button"
onClick={() => setSubProcessId('all')}
className={cn(
'px-3 py-1 rounded-full text-xs font-medium whitespace-nowrap transition-colors',
subProcessId === 'all' ? 'bg-blue-600 text-white' : 'bg-gray-100 text-gray-600 hover:bg-gray-200'
)}
>
</button>
{activeGroup.processes.map((p) => (
<button
key={p.id}
type="button"
onClick={() => setSubProcessId(p.id)}
className={cn(
'px-3 py-1 rounded-full text-xs font-medium whitespace-nowrap transition-colors',
subProcessId === p.id ? 'bg-blue-600 text-white' : 'bg-gray-100 text-gray-600 hover:bg-gray-200'
)}
>
{p.processName.replace(activeGroup.group, '').replace(/[()]/g, '').trim() || p.processName}
</button>
))}
</div>
)}
{/* 하위 공정 필터 제거 — 항상 '전체' 선택 상태로 동작 */}
{(groupedTabs.length > 0
? groupedTabs.map((g) => g.defaultProcessId)