chore: exclude local resource artifacts from main sync
This commit is contained in:
41
src/features/serverCommand/ServerCommandPage.tsx
Executable file → Normal file
41
src/features/serverCommand/ServerCommandPage.tsx
Executable file → Normal file
@@ -17,6 +17,7 @@ import type {
|
||||
ServerCommandKey,
|
||||
ServerRestartReservation,
|
||||
ServerRestartReservationAutoFix,
|
||||
ServerRestartReservationExecutionPhase,
|
||||
ServerRestartReservationWorkItem,
|
||||
} from './types';
|
||||
import './serverCommand.css';
|
||||
@@ -201,6 +202,30 @@ function formatAutoFixStatusLabel(status: ServerRestartReservationAutoFix['statu
|
||||
}
|
||||
}
|
||||
|
||||
function buildReservationExecutionSteps(phase: ServerRestartReservationExecutionPhase) {
|
||||
const activeIndex =
|
||||
phase === 'commit-main-worktree'
|
||||
? 0
|
||||
: phase === 'restart-test'
|
||||
? 1
|
||||
: phase === 'restart-work-server'
|
||||
? 2
|
||||
: phase === 'verify-runtime'
|
||||
? 3
|
||||
: -1;
|
||||
|
||||
return [
|
||||
'main 작업트리 커밋',
|
||||
'TEST 재기동',
|
||||
'WORK 재기동',
|
||||
'정상 기동 확인',
|
||||
].map((label, index) => ({
|
||||
label,
|
||||
done: activeIndex > index,
|
||||
active: activeIndex === index,
|
||||
}));
|
||||
}
|
||||
|
||||
export function ServerCommandPage() {
|
||||
const { hasAccess } = useTokenAccess();
|
||||
const [messageApi, contextHolder] = message.useMessage();
|
||||
@@ -505,6 +530,22 @@ export function ServerCommandPage() {
|
||||
]}
|
||||
/>
|
||||
|
||||
{reservation.status === 'executing' ? (
|
||||
<Space direction="vertical" size={8} className="server-command-page__work-list">
|
||||
<Text strong>예약 실행 단계</Text>
|
||||
{buildReservationExecutionSteps(reservation.executionPhase).map((step) => (
|
||||
<div key={step.label} className="server-command-page__work-item">
|
||||
<Space size={8} wrap>
|
||||
<Tag color={step.active ? 'processing' : step.done ? 'success' : 'default'}>
|
||||
{step.active ? '진행 중' : step.done ? '완료' : '대기'}
|
||||
</Tag>
|
||||
<Text strong={step.active || step.done}>{step.label}</Text>
|
||||
</Space>
|
||||
</div>
|
||||
))}
|
||||
</Space>
|
||||
) : null}
|
||||
|
||||
{reservation.workItems.length > 0 ? (
|
||||
<Space direction="vertical" size={8} className="server-command-page__work-list">
|
||||
<Text strong>현재 진행 작업</Text>
|
||||
|
||||
Reference in New Issue
Block a user