Skip to content

design: 후기 작성 화면 UI 개선#192

Open
she0108 wants to merge 3 commits into
developfrom
feature/write-review-ui
Open

design: 후기 작성 화면 UI 개선#192
she0108 wants to merge 3 commits into
developfrom
feature/write-review-ui

Conversation

@she0108
Copy link
Copy Markdown
Contributor

@she0108 she0108 commented May 30, 2026

📝 개요

UI상 피그마와 다른 부분들을 수정했습니다.

🔗 관련 이슈

  • Closes #

🛠️ 변경 사항 (Checklist)

  • ✨ Feature: 새로운 기능 추가
  • 🚀 Enhancement: 기존 기능 개선/성능 향상
  • 🐞 Bug: 버그 수정
  • ♻️ Refactor: 코드 구조 개선 (기능 변화 없음)
  • 🏗️ Chore: 빌드/패키지 설정/단순 잡일
  • 🎨 Design: UI/UX 스타일 수정
  • 📚 Documentation: 문서 수정

✅ 아래 내용을 한 번 더 점검해 주세요

1. 의도와 가독성 (Naming & Readability)

  • 의도 중심 네이밍: 변수명에서 '역할'이, 함수명에서 '행위+대상'이 명확히 드러나나요?
  • 선언적 코드: '어떻게'가 아닌 '무엇을' 하는지 코드만 보고도 알 수 있나요? (복잡한 로직은 내부 메서드로 숨겼나요?)
  • 주석: 코드만으로 설명이 어려운 '특정 로직'에만 주석을 달았나요?

2. 타입과 논리 (Type Safety & Logic)

  • 타입 안전성: any 사용을 지양하고, 모든 함수의 반환 타입을 명시했나요?
  • 엣지 케이스: 데이터가 없거나(null/undefined), 에러가 발생할 경우를 처리했나요?
  • 하드코딩 방지: API 주소나 설정값들이 환경 변수나 상수로 분리되었나요?

3. 코드 다이어트 (Clean-up)

  • 찌꺼기 제거: 디버깅용 console.log나 사용하지 않는 import를 모두 지웠나요?
  • 불필요한 코드: "나중에 쓰겠지" 하고 남겨둔 죽은 코드(Dead Code)는 없나요?
  • Linter: 린트 에러나 워닝이 남아있지 않나요?

4. 지속 가능성 (Sustainability)

  • 테스트: 수동으로든 코드로든 정상 작동을 확인했나요? (특히 기존 기능이 망가지지 않았나요?)
  • 문서화: 새로운 환경 변수나 라이브러리가 추가되어 README 업데이트가 필요한가요?

💭 회고 (Optional)

Summary by CodeRabbit

릴리스 노트

  • Style
    • 리뷰 작성 화면의 태그 렌더링 방식이 개선되어 더 나은 레이아웃 표시를 제공합니다.
    • 헤더 영역의 가로 패딩이 조정되어 전체 레이아웃의 시각적 일관성이 향상되었습니다.

Review Change Stack

@vercel
Copy link
Copy Markdown

vercel Bot commented May 30, 2026

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

Project Deployment Actions Updated (UTC)
sossbar Ready Ready Preview, Comment May 30, 2026 1:58pm

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 30, 2026

Walkthrough

ReviewWriteContent 컴포넌트에서 태그 렌더링 방식이 변경되었습니다. 고정 크기 행으로 태그를 분할하여 렌더하는 방식을 제거하고, 플렉스 컨테이너에서 자동 줄 바꿈으로 태그를 나열하도록 단순화했습니다. 관련 유틸과 타입 임포트가 정리되었으며, 헤더 패딩도 조정되었습니다.

Changes

태그 렌더링 레이아웃 단순화

Layer / File(s) Summary
미사용 코드 정리
features/review/components/review-write-content.tsx
Tag 타입 임포트와 행 분할 유틸(TAG_ROW_SIZES, chunkTagsByRowSizes)이 제거되어 불필요한 의존성이 정리되었습니다.
태그 렌더링 및 헤더 레이아웃 리팩토링
features/review/components/review-write-content.tsx
태그 선택 UI가 행 단위 청크 구조에서 단일 플렉스 컨테이너로 변경되어, 자동 줄 바꿈으로 태그를 표시합니다. 선택/비활성화 상태와 토글 핸들러는 유지되며, 헤더 반응형 패딩이 md:px-10에서 md:px-0으로 조정되었습니다.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Suggested labels

✨ Feature

Suggested reviewers

  • MintPansy

Poem

🐰 꼬리를 날리며 레이아웃을 다듬고,
고정된 행을 버리고 유연함을 품네.
태그들이 자유롭게 춤을 추고,
깔끔한 코드 위에 패딩도 고르게 펴졌네! ✨

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 inconclusive)

Check name Status Explanation Resolution
Description check ❓ Inconclusive PR 설명이 템플릿 구조를 따르고 있으나, 관련 이슈가 비어있고 변경사항에 대한 구체적인 설명이 부족합니다. 관련 이슈 번호를 추가하고, 태그 렌더링 방식 변경(고정 행 크기 분할→자유로운 배치)과 패딩 조정 사항을 명확히 설명해주세요.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed PR 제목이 주요 변경사항인 UI 스타일 개선을 명확하게 설명하고 있으나, 태그 렌더링 방식 변경과 레이아웃 조정이라는 구체적인 변경 내용을 반영하지 못하고 있습니다.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
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.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feature/write-review-ui

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.

Copy link
Copy Markdown

@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

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@features/review/components/review-write-content.tsx`:
- Line 180: The Tailwind class uses invalid arbitrary value syntax: replace the
token "focus-visible:ring-(--color-border-primary)" with the correct arbitrary
value form "focus-visible:ring-[var(--color-border-primary)]" in the affected
components (e.g., update the class string in ReviewWriteContent component where
the class contains 'text-body-sm ... focus-visible:ring-(--color-border-primary)
...' and do the same fix in the Stepper component class containing the same
invalid token) so Tailwind applies the focus ring correctly.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 349fbe9e-a4dc-4343-878b-ae2bc3638b61

📥 Commits

Reviewing files that changed from the base of the PR and between ea43b32 and 0a21299.

📒 Files selected for processing (1)
  • features/review/components/review-write-content.tsx

aria-pressed={selected}
disabled={!selected && selectedTagIds.size >= MAX_TAGS}
className={cn(
'text-body-sm inline-flex h-[33px] max-w-full shrink-0 items-center justify-center rounded-full border px-2.5 font-normal transition-colors outline-none focus-visible:ring-2 focus-visible:ring-(--color-border-primary) focus-visible:ring-offset-1',
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟠 Major | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
# Description: Tailwind 빌드 및 CSS 출력 확인

# Check if Tailwind config exists and grep for custom color variables
fd -t f 'tailwind.config' --exec cat {} \; | head -100

# Search for CSS variable definitions in the codebase
rg --type=css -n -C2 '--color-border-primary'

# Check if this exact class pattern exists elsewhere in the codebase
rg -n 'ring-\(--' --glob '*.{ts,tsx,js,jsx}'

Repository: JECT-Study/Sossbar-4th-Client

Length of output: 1070


Tailwind 포커스 링 클래스 문법 오류 수정 필요

focus-visible:ring-(--color-border-primary)는 Tailwind 임의값 문법(ring-[...])이 아니라 포커스 링이 적용되지 않을 수 있습니다. 동일 잘못된 패턴이 features/review/components/review-write-content.tsx(180)와 shared/components/stepper.tsx(90)에 존재합니다.

🔧 제안 수정안
-                      'text-body-sm inline-flex h-[33px] max-w-full shrink-0 items-center justify-center rounded-full border px-2.5 font-normal transition-colors outline-none focus-visible:ring-2 focus-visible:ring-(--color-border-primary) focus-visible:ring-offset-1',
+                      'text-body-sm inline-flex h-[33px] max-w-full shrink-0 items-center justify-center rounded-full border px-2.5 font-normal transition-colors outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-border-primary)] focus-visible:ring-offset-1',
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
'text-body-sm inline-flex h-[33px] max-w-full shrink-0 items-center justify-center rounded-full border px-2.5 font-normal transition-colors outline-none focus-visible:ring-2 focus-visible:ring-(--color-border-primary) focus-visible:ring-offset-1',
'text-body-sm inline-flex h-[33px] max-w-full shrink-0 items-center justify-center rounded-full border px-2.5 font-normal transition-colors outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-border-primary)] focus-visible:ring-offset-1',
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@features/review/components/review-write-content.tsx` at line 180, The
Tailwind class uses invalid arbitrary value syntax: replace the token
"focus-visible:ring-(--color-border-primary)" with the correct arbitrary value
form "focus-visible:ring-[var(--color-border-primary)]" in the affected
components (e.g., update the class string in ReviewWriteContent component where
the class contains 'text-body-sm ... focus-visible:ring-(--color-border-primary)
...' and do the same fix in the Stepper component class containing the same
invalid token) so Tailwind applies the focus ring correctly.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants