refactor(fe): record와 person-new 퍼널의 공통 조각 추출#122
Merged
Conversation
두 퍼널이 각자 복제하던 Field, 하단 CTA, 헤더를 공용 컴포넌트로 뽑는다. 하단 CTA(NextBar)의 sticky 고정 여부는 호출자가 넘기는 prop으로 두어, record는 전체 스크롤이라 CTA를 바닥에 sticky로 고정하고 person-new는 껍데기가 고정이라 sticky 없이 쓰도록 스크롤 모델 차이를 유지한다. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
seongbin9786
marked this pull request as ready for review
July 19, 2026 07:59
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.
배경
record와 person-new 두 퍼널 화면이 하단 CTA, 입력 라벨(Field), 상단 헤더를 각자 복제하고 있었다. person-new에는 "record 퍼널의 StepFrame과 같은 패턴, 안정화되면 공통화한다"는 주석이 남아 있었다.
변경 사항
Field를components/ui/field.tsx로 뽑아 공유한다.components/ui/next-bar.tsx의NextBar로 뽑고, 라벨과sticky고정 여부를 prop으로 받는다.components/layout/funnel-header.tsx의FunnelHeader로 뽑는다.스크롤 모델은 분리 유지
record는 화면 전체가 스크롤되고 person-new는 껍데기를 고정한 채 콘텐츠만 슬라이드하는 반대 전략이라, 겉껍데기와 단계 애니메이션, 에러 문구 위치는 각 화면에 그대로 두고 스크롤 모델과 무관한 조각만 공유했다. NextBar의
sticky를 호출자가 넘기는 것도 이 차이 때문으로, record만 CTA를 바닥에 붙인다.Docs