Skip to content

Feat: 개발 QA 1차(다운로드 url 변경) #129

Merged
jjangminii merged 6 commits intodevelopfrom
fix/#122/landing-design
Sep 19, 2025
Merged

Feat: 개발 QA 1차(다운로드 url 변경) #129
jjangminii merged 6 commits intodevelopfrom
fix/#122/landing-design

Conversation

@jjangminii
Copy link
Collaborator

@jjangminii jjangminii commented Sep 19, 2025

📌 Related Issues

관련된 Issue를 태그해주세요. (e.g. - close #25)

  • close #

📄 Tasks

⭐ PR Point (To Reviewer)

📷 Screenshot

Summary by CodeRabbit

  • 신규 기능

    • 해당 없음
  • 버그 수정

    • 랜딩 페이지의 최종 CTA 버튼 클릭 시 이동 경로를 홈(https://pinback.today)에서 온보딩 페이지(https://pinback.today/onboarding)로 수정하여 즉시 시작 흐름으로 연결되도록 개선했습니다.
    • 버튼 외의 레이아웃, 텍스트, 스타일 등은 기존과 동일하게 유지됩니다.
  • 문서

    • 해당 없음
  • 기타 작업

    • 공개 API나 외부 동작에 영향을 주는 변경 사항은 없습니다.

@jjangminii jjangminii self-assigned this Sep 19, 2025
@vercel
Copy link

vercel bot commented Sep 19, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
pinback-client-client Ready Ready Preview Comment Sep 19, 2025 9:38am

@coderabbitai
Copy link

coderabbitai bot commented Sep 19, 2025

Walkthrough

FinalCTASection의 기본 버튼 onClick 대상 URL이 https://pinback.today 에서 https://pinback.today/onboarding 으로 변경되었습니다. 다른 구조나 export는 변경되지 않았습니다.

Changes

Cohort / File(s) Summary
Landing CTA 링크 변경
apps/landing/src/components/FinalCTASection.tsx
기본 버튼 onClick 링크를 https://pinback.todayhttps://pinback.today/onboarding 으로 수정

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Possibly related PRs

Suggested labels

fix

Suggested reviewers

  • jllee000
  • constantly-dev

Poem

토끼는 클릭 한 번에 폴짝 가네
평원 너머 온보딩 길로 발을 재네
홈을 지나 새싹 난 길 위에서
시작을 콕 집어 달빛에 맺네 🌙
폴짝 폴짝, 링크도 기분 좋게 변했네 🥕

Pre-merge checks and finishing touches

❌ Failed checks (3 warnings)
Check name Status Explanation Resolution
Linked Issues Check ⚠️ Warning 링크된 이슈 #25은 Progress 컴포넌트 구현(variant, 접근성, 스토리북, 테스트 등)을 요구하는 반면 이 PR은 FinalCTASection의 CTA URL 변경만 포함하고 있어 이슈 #25의 요구사항을 충족하지 않습니다. 따라서 코드 변경이 연결된 이슈의 목적과 일치하지 않습니다. PR에 Progress 컴포넌트 관련 변경을 포함하거나 이 PR에서 #25 참조를 제거하고 올바른 이슈로 연결하거나, URL 변경을 별도 PR로 분리해 각각의 이슈와 일치시키세요.
Out of Scope Changes Check ⚠️ Warning 변경은 apps/landing/src/components/FinalCTASection.tsx의 버튼 클릭 URL 수정에 국한되어 있으며 linked issue(#25)의 범위인 Progress 컴포넌트 구현과 무관하므로 현재 PR에는 범위 밖의 변경이 포함되어 있다고 판단됩니다. PR을 관련 이슈에 맞게 재구성하거나 변경을 별도 PR로 분리하고 PR 제목·본문·링크를 현재 변경사항에 맞게 업데이트하세요.
Description Check ⚠️ Warning PR 설명이 리포지토리 템플릿의 빈 섹션들로만 구성되어 있어 Related Issues에 '- close #'만 기재되어 있고 Tasks/PR Point/Screenshot이 비어 있어 실제 변경사항과 검토 포인트가 제공되지 않습니다. 이로 인해 리뷰어는 변경의 목적과 범위, 테스트 방법 등을 확인할 수 없어 설명이 불완전합니다. Related Issue 번호를 명시하고 변경된 파일 및 동작(예: apps/landing/src/components/FinalCTASection.tsx에서 CTA onClick을 https://pinback.today/onboarding으로 변경한 내용), 수행한 작업, 테스트 방법과 필요한 스크린샷을 PR 본문에 추가하세요.
✅ Passed checks (2 passed)
Check name Status Explanation
Title Check ✅ Passed PR 제목 'Feat: 개발 QA 1차(정민
Docstring Coverage ✅ Passed No functions found in the changes. Docstring coverage check skipped.
✨ Finishing touches
  • 📝 Generate Docstrings
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch fix/#122/landing-design

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

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions github-actions bot added the fix 버그 수정하라 러브버그 label Sep 19, 2025
@github-actions
Copy link

✅ Storybook chromatic 배포 확인:
🐿️ storybook

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🧹 Nitpick comments (2)
apps/landing/src/components/FinalCTASection.tsx (2)

22-29: 내비게이션은 링크로 처리하는 게 더 적합 (a11y/성능)

SPA 환경이라면 window.location으로 전체 리로드하지 말고 링크 사용을 권장합니다. 디자인시스템 Button이 asChild를 지원한다면 아래처럼 교체해 주세요.

-          <Button
-            variant="primary"
-            onClick={() => {
-              window.location.href = 'https://pinback.today/onboarding';
-            }}
-          >
-            지금 시작하기
-          </Button>
+          <Button variant="primary" asChild>
+            <a href="/onboarding">지금 시작하기</a>
+          </Button>

Next.js 환경이라면 Link를 써도 됩니다:

-          <Button variant="primary" asChild>
-            <a href="/onboarding">지금 시작하기</a>
-          </Button>
+          <Button variant="primary" asChild>
+            <Link href="/onboarding">지금 시작하기</Link>
+          </Button>

25-25: 절대 URL 하드코딩 지양

배포/스테이징 도메인 분리 시 유지보수 비용이 커집니다. 동일 도메인 이동이면 상대경로로 충분합니다.

-              window.location.href = 'https://pinback.today/onboarding';
+              window.location.href = '/onboarding';

별도 도메인이 필요하다면 런타임 ENV(예: NEXT_PUBLIC_APP_ORIGIN/VITE_PUBLIC_APP_ORIGIN)로 관리하는 것을 권장합니다.

📜 Review details

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 72ed6bc and 239d358.

📒 Files selected for processing (1)
  • apps/landing/src/components/FinalCTASection.tsx (1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
  • GitHub Check: storybook
🔇 Additional comments (1)
apps/landing/src/components/FinalCTASection.tsx (1)

25-25: 변경 자체는 OK

요구사항대로 온보딩 URL로의 이동 동작은 문제 없어 보입니다.

variant="primary"
onClick={() => {
window.location.href = 'https://pinback.today';
window.location.href = 'https://pinback.today/onboarding';
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛠️ Refactor suggestion

🧩 Analysis chain

URL 변경 영향도 점검 요청

온보딩 경로 접근 조건(로그인/리다이렉션), 분석 이벤트 트래킹, 다른 하드코딩 URL 유무를 확인 부탁드립니다.


🏁 Script executed:

#!/bin/bash
set -euo pipefail

# 1) 레포 내 하드코딩된 prod 도메인 사용처
rg -nP --no-ignore-vcs 'https?://pinback\.today' -C2

# 2) 온보딩 관련 경로 전반 사용처
rg -nP --no-ignore-vcs '\bonboarding\b' -C2

# 3) window.location 직접 사용 패턴 점검 (리로드 유발)
rg -nP --type=ts --type=tsx -C2 '\bwindow\.location\.(href|assign|replace)\b'

# 4) Button의 asChild 사용 사례 유무(디자인시스템 지원 여부 가늠)
rg -nP --type=ts --type=tsx -C2 '\<Button\b[^>]*\basChild\b'

Length of output: 5455


하드코딩된 프로덕션 도메인·온보딩 경로 영향 검토 — 수정 필요

레포에서 절대 도메인(https://pinback.today / https://www.pinback.today)과 온보딩 경로 사용처가 확인되었습니다. 도메인 변경 시 동작 불일치 및 확장(extension) 동작 중단 가능.

  • apps/landing/src/components/FinalCTASection.tsx:25 — window.location.href = 'https://pinback.today/onboarding';
  • apps/extension/src/pages/MainPop.tsx:238 — Icon onClick -> 'https://pinback.today'
  • apps/extension/src/App.tsx:27 — window.location.href = "https://pinback.today/";
  • apps/extension/src/background.ts:10 — chrome.tabs.create url https://www.pinback.today/onboarding?email=${info.email} (www 포함)
  • apps/client/src/shared/apis/setting/axiosInstance.ts:83,89 — window.location.href = '/onboarding' (토큰 관련 리다이렉트)
  • apps/client/src/layout/Layout.tsx:6 — location.pathname.startsWith('/onboarding')
  • onboarding 관련 컴포넌트 다수(예: apps/client/src/pages/onBoarding/.../StoryStep.tsx)

조치 체크리스트:

  • 도메인(www 포함 여부) 하드코딩을 환경변수/상수로 추출.
  • extension 코드의 절대 URL 우선 수정(배포 전 반영 필수).
  • window.location 직접 사용으로 인한 전체 리로드/상태 손실 여부 확인 → 가능하면 내부 라우터로 대체.
  • 토큰 만료 시 리다이렉트(axiosInstance)와 온보딩 접근권한(비로그인 허용 여부) 재검증.
  • 온보딩 관련 분석/이벤트 트래킹 위치(analytics 호출) 확인.
🤖 Prompt for AI Agents
In apps/landing/src/components/FinalCTASection.tsx around line 25, the code
hardcodes the production onboarding URL (window.location.href =
'https://pinback.today/onboarding'); replace this by reading a single shared
base URL constant or environment variable (e.g.,
process.env.NEXT_PUBLIC_BASE_URL or a central config) and compose the onboarding
path from it; prefer using the app's router/navigation method instead of
window.location to avoid full reload and state loss; also audit and update the
extension code to use the same base URL constant (ensuring consistent www vs
non-www handling), and re-check axiosInstance token-expiry redirect logic and
onboarding route guards to ensure internal routing and analytics/tracking
behavior remain correct after the change.

@jjangminii jjangminii merged commit f1d18d4 into develop Sep 19, 2025
10 checks passed
@jjangminii jjangminii changed the title Feat: 개발 QA 1차(정민 | 다운로드 url 변경) Feat: 개발 QA 1차(다운로드 url 변경) Sep 20, 2025
@coderabbitai coderabbitai bot mentioned this pull request Oct 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fix 버그 수정하라 러브버그

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant