[Refactor/#80] ControlBox 커스터마이징, WorkspaceSetting 삭제영역 구조 통일 - #82
Merged
Conversation
📝 WalkthroughWalkthroughControlBox 컴포넌트의 props를 9개 확장하여 유연성을 높였고, WorkspaceSetting의 삭제 섹션을 이 컴포넌트로 리팩토링하여 코드 재사용성과 일관성을 개선했습니다. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Suggested reviewers
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches
🧪 Generate unit tests (beta)
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. Comment |
📚 Storybook 배포 완료
|
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@src/components/common/controlbox/ControlBox.tsx`:
- Around line 32-33: The exposed prop buttonSize on ControlBox is being
overridden by a hardcoded height utility (!h-button-big) in the rendered class
list, so size changes have no effect; update the ControlBox render logic to
remove the fixed "!h-button-big" and instead apply height/size classes
conditionally based on the buttonSize prop (e.g., map "small"|"medium"|"large"
to the appropriate classes) so the prop actually controls the button height;
adjust any related classname generation where "!h-button-big" appears (and
similarly for the other occurrence) to reference the new size-to-class mapping
used by the component.
In `@src/pages/workspace/WorkspaceSetting.tsx`:
- Around line 216-229: The delete flow button (ControlBox with title "워크스페이스
삭제") is currently clickable during a save, which allows concurrent save+delete
requests; wire the same disabling condition used for save into this control by
passing the appropriate disabled/disabledButton prop (or the ControlBox's
equivalent) so the delete button is disabled whenever saving || deleting is
true; update the ControlBox usage that currently has
onButtonClick={openDeleteModal} to include the disable flag tied to the existing
saving and deleting state variables so the button cannot be activated during
saves or while deletion is in progress.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: 381f5a7c-4732-42b4-8d79-f777f4f05711
📒 Files selected for processing (2)
src/components/common/controlbox/ControlBox.tsxsrc/pages/workspace/WorkspaceSetting.tsx
📚 Storybook 배포 완료
|
Collaborator
|
P4: 확인했습니다! |
YermIm
approved these changes
Mar 4, 2026
Seojegyeong
approved these changes
Mar 5, 2026
9 tasks
9 tasks
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
🚨 관련 이슈
Closed #80
✨ 변경사항
✏️ 작업 내용
😅 미완성 작업
N/A
📢 논의 사항 및 참고 사항
기존 WorkspaceSetting의 삭제 섹션 인라인 UI를 ControlBox 구조를 변경하여 공통 컴포넌트 재사용성과 일관성을 높였습니다
Summary by CodeRabbit
릴리스 노트