You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Provide a description in this PR that addresses what the PR is solving, or reference the issue that it solves (e.g. fixes #123).
Ideally, include relevant tests that fail without this PR but pass with it.
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.
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.
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.
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
skkuding/codedang#3865: Adds the TC INPUT tab and a card component used in the same Mandeuldang flow.
skkuding/codedang#3930: Adds the OUTPUT tab and mock output data that this change updates.
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: 4
Check name
Status
Explanation
Description Check
Check skipped - CodeRabbit’s high-level summary is enabled.
Title check
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
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
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.
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)
Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
긴 PR 일단 죄송합니다 ㅎㅎ
단계 구조 변경
Generator TC 개수 입력
입력 검증 -> INPUT 검증 문구 수정
Additional context
솔루션 검증 실행 카드는 우선 주석 처리했습니다
test 할 때 사용하실 파일들입니다
mandeuldang.zip
Before submitting the PR, please make sure you do the following
fixes #123).Summary by CodeRabbit