Skip to content

fix(fe): modify mandeuldang flow - #3998

Open
egg-zz wants to merge 1 commit into
mainfrom
t3291-modify-mandeuldang-flow
Open

egg-zz wants to merge 1 commit into
mainfrom
t3291-modify-mandeuldang-flow

Conversation

@egg-zz

@egg-zz egg-zz commented Dec 5, 2026 •

Copy link
Copy Markdown
Contributor

Description

긴 PR 일단 죄송합니다 ㅎㅎ

단계 구조 변경

  • 솔루션 업로드 단계를 없애고, 솔루션 업로드 카드를 OUTPUT 생성 탭 맨 위로 옮김
  • 상단 단계, 발행 체크리스트 수정

Generator TC 개수 입력

  • TC 생성 버튼 왼쪽에 입력칸 추가 (기본 10, 1 ~ 100 정수)

입력 검증 -> INPUT 검증 문구 수정

Additional context

솔루션 검증 실행 카드는 우선 주석 처리했습니다
test 할 때 사용하실 파일들입니다


mandeuldang.zip

Before submitting the PR, please make sure you do the following

Summary by CodeRabbit

  • New Features
    • The problem-creation workflow now has three steps: Statement, Tests, and Collaboration. Tests includes subtabs for generating tests, validation, and outputs.
    • Choose a test-case count from 1 to 100 when generating input cases. Generated output previews now reflect the input cases.
    • Upload a solution in the output workflow before generating output cases.
  • Improvements
    • Generation and validation controls account for required files, generated input, permissions, and other active operations.
    • Deleting test cases, generator files, or the uploaded solution resets related generation results.

@egg-zz
egg-zz requested review from s0ma02 and seoeun9 December 5, 2026 07:33
@egg-zz egg-zz self-assigned this Dec 5, 2026
@egg-zz egg-zz added ⛳️ team-frontend 🍊squad-유자차 스쿼드 유자차 작업물입니다 preview 이 라벨이 붙어있어야 프론트엔드 Preview 환경이 생성됩니다 labels Dec 5, 2026
@coderabbitai

coderabbitai Bot commented Dec 5, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The Mandeuldang problem-creation flow now has three steps, with testcase generation and output generation coordinated through shared state. Input generation accepts a testcase count, and the output page includes solution upload controls.

Changes: Mandeuldang testcase flow

Layer / File(s) Summary
Generation state and mock data
apps/frontend/app/admin/problem/mandeuldang/_libs/useTestcaseGeneration.ts, apps/frontend/app/admin/problem/mandeuldang/_libs/mockGeneratorApi.ts, apps/frontend/app/admin/problem/mandeuldang/_libs/mockOutputApi.ts
The generation hook accepts request variables and stores results locally. Mock input generation uses the requested testcase count. Mock output is calculated from the generated input.
Tests step and generation coordination
apps/frontend/app/admin/problem/mandeuldang/_components/ProblemCreateContainer.tsx, apps/frontend/app/admin/problem/mandeuldang/_components/ProblemCreateSkeletons.tsx, apps/frontend/app/admin/problem/mandeuldang/_components/InputCasePage.tsx, apps/frontend/app/admin/problem/mandeuldang/_components/GeneratorPage.tsx, apps/frontend/app/admin/problem/mandeuldang/_components/GenerationRunCard.tsx, apps/frontend/app/admin/problem/mandeuldang/_components/ValidatorPage.tsx
The creation flow uses three steps and a checklist that can select the Generator or Output subtab. Input, validation, and output pages receive coordinated state. Input generation accepts a count from 1 through 100 and is gated while another operation runs.
Solution upload and output generation
apps/frontend/app/admin/problem/mandeuldang/_components/SolutionPage.tsx, apps/frontend/app/admin/problem/mandeuldang/_components/OutputCasePage.tsx
The separate SolutionPage is removed. OutputCasePage adds solution upload and deletion controls, and requires an uploaded solution and generated input before output generation.

Estimated code review effort: 3 (Moderate) | ~25 minutes

Change: Feature

Sequence Diagram(s)

sequenceDiagram
  participant ProblemCreateContainer
  participant InputCasePage
  participant GeneratorPage
  participant useTestcaseGeneration
  participant mockGenerateInput
  ProblemCreateContainer->>InputCasePage: Render Tests step with selected subtab
  InputCasePage->>GeneratorPage: Pass generation state and callbacks
  GeneratorPage->>useTestcaseGeneration: Request generation with testcase count
  useTestcaseGeneration->>mockGenerateInput: Pass count and running callback
Loading

Possibly related PRs

Suggested reviewers: ojongii, saeyeon-05

Merge Risk: Minimal · up to 19f12

This change moves solution upload into the output generation tab, reduces the flow to three steps, and adds a testcase-count input limited to 1 to 100. No concrete defect was found. The solution-validation card is temporarily disabled and the validation-gating policy is still undecided, so confirm both before merge, but neither blocks merging.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title "fix(fe): modify mandeuldang flow" is partially related to the changeset. It names the correct area (the mandeuldang admin flow in the frontend), and the changes do revise that flow: the Sol…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title "fix(fe): modify mandeuldang flow" is partially related to the changeset. It names the correct area (the mandeuldang admin flow in the frontend), and the changes do revise that flow: the Solution tab is removed, the steps are reduced to three, the generator gets a test-case count input, and the output and validator pages are reworked. However, the title is broad. It does not say what changed in the flow, such as removing the separate solution step or adding a configurable test-case count. The 'fix' type is also questionable for what the objectives describe as a revision.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Warning

Some tools did not complete. Review the errors below.

ESLint

If the error stems from missing dependencies, add them to the package.json file. For unrecoverable errors (e.g., due to private dependencies), disable the tool in the CodeRabbit configuration.

apps/frontend/app/admin/problem/mandeuldang/_components/GenerationRunCard.tsx

Oops! Something went wrong! :(

ESLint: 10.16.0

Error: Cannot read config file: /.eslint-tmp/node_modules/.pnpm/eslint-config-next@15.5.29_eslint@9.39.5_supports-color@7.2.0__supports-color@7.2.0_typescript@5.9.2/node_modules/eslint-config-next/index.js
Error: Failed to patch ESLint because the calling module was not recognized.
If you are using a newer ESLint version that may be unsupported, please create a GitHub issue:
https://github.com/microsoft/rushstack/issues
Referenced from: /.eslint-tmp/node_modules/.pnpm/eslint-config-next@15.5.29_eslint@9.39.5_supports-color@7.2.0__supports-color@7.2.0_typescript@5.9.2/node_modules/eslint-config-next/core-web-vitals.js
at Object. (/.eslint-tmp/node_modules/.pnpm/@rushstack+eslint-patch@1.16.1/node_modules/@rushstack/eslint-patch/lib-commonjs/_patch-base.js:244:19)
at Module._compile (node:internal/modules/cjs/loader:1929:14)
at Object..js (node:internal/modules/cjs/loader:2060:10)
at Module.load (node:internal/modules/cjs/loader:1651:32)
at Module._load (node:internal/modules/cjs/loader:1443:12)
at wrapModuleLoad (node:internal/modules/cjs/loader:261:19)
at Module.require (node:internal/modules/cjs/loader:1674:12)
at require (node:internal/modules/helpers:157:16)
at Object. (/.eslint-tmp/node_modules/.pnpm/@rushstack+eslint-patch@1.16.1/node_modules/@rushstack/eslint-patch/lib-commonjs/modern-module-resolution.js:11:23)
at Module._compile (node:internal/modules/cjs/loader:1929:14)

apps/frontend/app/admin/problem/mandeuldang/_components/GeneratorPage.tsx

ESLint skipped: the matched ESLint configuration already failed (config-incompatibility).

apps/frontend/app/admin/problem/mandeuldang/_components/InputCasePage.tsx

ESLint skipped: the matched ESLint configuration already failed (config-incompatibility).

  • 7 others

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: ec0a205b-2b68-4a31-abc1-bf9a41ea6cba
Commits

Reviewing files that changed from the base of the PR and between 7b7993e and 19f12ca.

Files selected for processing: 11

  • apps/frontend/app/admin/problem/mandeuldang/_components/GenerationRunCard.tsx
  • apps/frontend/app/admin/problem/mandeuldang/_components/GeneratorPage.tsx
  • apps/frontend/app/admin/problem/mandeuldang/_components/InputCasePage.tsx
  • apps/frontend/app/admin/problem/mandeuldang/_components/OutputCasePage.tsx
  • apps/frontend/app/admin/problem/mandeuldang/_components/ProblemCreateContainer.tsx
  • apps/frontend/app/admin/problem/mandeuldang/_components/ProblemCreateSkeletons.tsx
  • apps/frontend/app/admin/problem/mandeuldang/_components/SolutionPage.tsx
  • apps/frontend/app/admin/problem/mandeuldang/_components/ValidatorPage.tsx
  • apps/frontend/app/admin/problem/mandeuldang/_libs/mockGeneratorApi.ts
  • apps/frontend/app/admin/problem/mandeuldang/_libs/mockOutputApi.ts
  • apps/frontend/app/admin/problem/mandeuldang/_libs/useTestcaseGeneration.ts
Files with no reviewable changes: 1

  • apps/frontend/app/admin/problem/mandeuldang/_components/SolutionPage.tsx

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

@skkuding-bot

skkuding-bot Bot commented Dec 5, 2026

Copy link
Copy Markdown

✅ Syncing Preview App Succeeded

Application: frontend
Revision: 19f12cae489e45f7ff76124d83ba1699e90fb11e
Health Status: Healthy

Open Preview | View in Argo CD

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

preview 이 라벨이 붙어있어야 프론트엔드 Preview 환경이 생성됩니다 size/XL 🍊squad-유자차 스쿼드 유자차 작업물입니다 ⛳️ team-frontend

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant