Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feat] Text 컴포넌트 추가 #57

Merged
merged 7 commits into from
Jan 12, 2025
Merged

[Feat] Text 컴포넌트 추가 #57

merged 7 commits into from
Jan 12, 2025

Conversation

kongnayeon
Copy link
Member

@kongnayeon kongnayeon commented Jan 11, 2025

관련 이슈

#39

변경 사항

Text 컴포넌트 만들었습니다!
Compound 패턴으로 만들어 보는 것은 익숙하지 않은데 피드백 많이 많이 부탁드립니다 ㅎ...ㅎ
h1 ~ div까지 다양한 태그를 사용할 수 있도록 했습니다!

레퍼런스

Summary by CodeRabbit

  • 새로운 기능

    • 다양한 HTML 태그와 스타일링 옵션을 지원하는 새로운 Text 컴포넌트 추가
    • 텍스트 요소에 대한 동적 색상, 크기, 글꼴 두께 설정 지원
    • Home 컴포넌트에 새로운 <Text.H1> 요소 추가
  • 개선 사항

    • UI 컴포넌트 라이브러리에 유연한 텍스트 렌더링 기능 도입
    • 타입스크립트를 활용한 안전한 컴포넌트 구현
    • CSS 모듈을 통한 텍스트 스타일링 개선

@kongnayeon kongnayeon self-assigned this Jan 11, 2025
Copy link

coderabbitai bot commented Jan 11, 2025

Warning

There were issues while running some tools. Please review the errors and either fix the tool’s configuration or disable the tool if it’s a critical failure.

🔧 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.

apps/web/src/app/page.tsx

Oops! Something went wrong! :(

ESLint: 9.17.0

Error [ERR_MODULE_NOT_FOUND]: Cannot find package '@repo/eslint-config' imported from /eslint.config.mjs
at packageResolve (node:internal/modules/esm/resolve:839:9)
at moduleResolve (node:internal/modules/esm/resolve:908:18)
at defaultResolve (node:internal/modules/esm/resolve:1038:11)
at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:557:12)
at ModuleLoader.resolve (node:internal/modules/esm/loader:525:25)
at ModuleLoader.getModuleJob (node:internal/modules/esm/loader:246:38)
at ModuleJob._link (node:internal/modules/esm/module_job:126:49)

워크스루

이 풀 리퀘스트는 새로운 Text 컴포넌트를 도입하고 있습니다. UI 패키지에 텍스트 렌더링을 위한 유연하고 스타일링 가능한 컴포넌트를 추가하며, 웹 애플리케이션의 홈 페이지에서 이 새로운 컴포넌트를 사용하고 있습니다. Vanilla Extract를 사용하여 동적 스타일링을 지원하고, 다양한 HTML 태그에 대한 일관된 텍스트 렌더링을 제공합니다.

변경 사항

파일 변경 요약
apps/web/src/app/page.tsx Text 컴포넌트 가져오기 및 <Text.H1> 요소 추가
packages/ui/src/components/Text/Text.css.ts 텍스트 스타일링을 위한 CSS 변수 및 스타일 생성
packages/ui/src/components/Text/Text.subComponents.tsx 다양한 HTML 태그에 대한 텍스트 컴포넌트 생성
packages/ui/src/components/Text/Text.tsx 유연한 텍스트 렌더링을 위한 기본 Text 컴포넌트 구현
packages/ui/src/components/index.ts Text 컴포넌트 및 관련 타입 내보내기

가능한 관련 PR

제안된 레이블

enhancement

제안된 리뷰어

  • minseong0324

시퀀스 다이어그램

sequenceDiagram
    participant Web App
    participant Text Component
    participant CSS Variables
    Web App->>Text Component: 렌더링 요청 (태그, 스타일)
    Text Component->>CSS Variables: 스타일 변수 할당
    CSS Variables-->>Text Component: 스타일 적용
    Text Component-->>Web App: 스타일이 지정된 텍스트 요소 반환
Loading

토끼의 시 🐰

코드의 세계에 새로운 글꼴,
텍스트는 춤추고 스타일은 노래해
동적인 글자, 유연한 디자인
우리의 UI는 이제 더욱 빛나네!
🌈✨ 텍스트의 마법, 여기 있네!


📜 Recent review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 8171580 and 2cef1c7.

📒 Files selected for processing (2)
  • apps/web/src/app/page.tsx (1 hunks)
  • packages/ui/src/components/Text/Text.subComponents.tsx (1 hunks)
🚧 Files skipped from review as they are similar to previous changes (2)
  • packages/ui/src/components/Text/Text.subComponents.tsx
  • apps/web/src/app/page.tsx

🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR. (Beta)
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

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: 4

🧹 Nitpick comments (6)
packages/ui/src/components/Text/Text.css.ts (1)

3-5: CSS 변수에 기본값 추가를 고려해보세요.

CSS 변수들이 잘 정의되어 있지만, 기본값이 없는 경우 스타일이 제대로 적용되지 않을 수 있습니다.

다음과 같이 기본값을 추가하는 것을 제안드립니다:

-export const sizeVar = createVar();
-export const weightVar = createVar();
-export const colorVar = createVar();
+export const sizeVar = createVar('16px');
+export const weightVar = createVar('400');
+export const colorVar = createVar('inherit');
packages/theme/src/tokens/index.ts (1)

18-22: 타입 정의가 잘 구성되어 있습니다!

각 토큰 카테고리별로 타입을 분리한 것이 좋은 접근 방식입니다. 다만, 각 타입에 대한 JSDoc 문서화를 추가하면 더 좋을 것 같습니다.

예시:

/** 타이포그래피 관련 토큰 타입 */
export type TypographyType = typeof typography;
packages/theme/src/tokens/colors.ts (1)

7-27: 색상 팔레트가 체계적으로 구성되어 있습니다.

primary, pink, orange, blue 색상들이 200/400/800 단위로 일관성 있게 구성되어 있어 좋습니다. 다만 다음 사항들을 고려해보시면 좋을 것 같습니다:

  • 각 색상 그룹별로 주석으로 용도 설명 추가
  • 디자인 시스템 문서에 색상 사용 가이드라인 추가

예시:

// Primary colors - 주요 브랜드 색상
primary500: '#7081F4',
packages/ui/src/components/Text/Text.tsx (1)

17-22: TextProps 타입 정의가 잘 되어있습니다.

타입 안전성이 잘 보장되어 있습니다. 다만 몇 가지 개선사항을 제안드립니다:

  • 필수 props에 대해 재고려 (color, fontSize, fontWeight를 모두 필수로 할 필요가 있는지)
  • 자주 사용되는 조합을 위한 variant 속성 추가 고려

예시:

export type TextProps<T extends AllowedTags> = {
  as?: T;
  variant?: 'heading' | 'body' | 'caption';
  color?: keyof typeof tokens.colors;
  fontSize?: keyof TypographyType['fontSize'];
  fontWeight?: keyof TypographyType['fontWeight'];
} & ComponentPropsWithoutRef<T>;
packages/theme/src/themes/contract.ts (1)

34-53: 테마 계약이 잘 정의되어 있습니다.

새로 추가된 색상들이 체계적으로 정리되어 있습니다. 다만 다음과 같은 개선사항을 제안드립니다:

  • 관련 색상들을 그룹화하는 주석 추가
  • 각 색상의 사용 목적에 대한 문서화

예시:

colors: {
  // Base colors
  primary: string;
  // ...

  // Primary palette
  primary500: string;
  primary600: string;
  primary700: string;
  primary800: string;

  // Utility colors
  shadow: string;
  blue: string;

  // Extended palettes
  pink200: string;
  // ...
}
packages/theme/src/themes/dark.ts (1)

47-57: 색상 그룹을 더 체계적으로 구성해주세요.

현재 pink, orange, blue 색상들이 개별적으로 나열되어 있습니다. 이를 더 체계적으로 구성하면 유지보수가 용이해질 것 같습니다.

다음과 같이 색상을 그룹화하는 것을 고려해보세요:

-    pink200: tokens.colors.pink200,
-    pink400: tokens.colors.pink400,
-    pink800: tokens.colors.pink800,
-
-    orange200: tokens.colors.orange200,
-    orange400: tokens.colors.orange400,
-    orange800: tokens.colors.orange800,
-
-    blue200: tokens.colors.blue200,
-    blue400: tokens.colors.blue400,
-    blue800: tokens.colors.blue800,
+    pink: {
+      200: tokens.colors.pink200,
+      400: tokens.colors.pink400,
+      800: tokens.colors.pink800,
+    },
+    orange: {
+      200: tokens.colors.orange200,
+      400: tokens.colors.orange400,
+      800: tokens.colors.orange800,
+    },
+    blue: {
+      200: tokens.colors.blue200,
+      400: tokens.colors.blue400,
+      800: tokens.colors.blue800,
+    },
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between bac9147 and c30e1b0.

📒 Files selected for processing (11)
  • apps/web/src/app/page.tsx (1 hunks)
  • packages/theme/src/themes/contract.ts (1 hunks)
  • packages/theme/src/themes/dark.ts (1 hunks)
  • packages/theme/src/themes/index.ts (1 hunks)
  • packages/theme/src/themes/light.ts (2 hunks)
  • packages/theme/src/tokens/colors.ts (1 hunks)
  • packages/theme/src/tokens/index.ts (1 hunks)
  • packages/ui/src/components/Text/Text.css.ts (1 hunks)
  • packages/ui/src/components/Text/Text.subComponents.tsx (1 hunks)
  • packages/ui/src/components/Text/Text.tsx (1 hunks)
  • packages/ui/src/components/index.ts (1 hunks)
🔇 Additional comments (8)
packages/theme/src/themes/index.ts (1)

5-5: 타입 이름 변경이 적절합니다!

Vars에서 VarsType으로의 이름 변경은 이것이 타입임을 더 명확하게 나타내며, TypeScript 네이밍 컨벤션을 잘 따르고 있습니다.

packages/ui/src/components/Text/Text.css.ts (1)

7-11: 스타일 정의가 깔끔합니다!

CSS-in-JS 패턴을 잘 활용하여 타입 안정성이 보장된 스타일을 구현하셨네요.

packages/ui/src/components/index.ts (1)

5-6: 컴포넌트 export 구조가 일관성 있습니다!

기존 컴포넌트들의 export 패턴을 잘 따르고 있으며, 타입 정의도 함께 export하여 타입 안정성을 보장하고 있습니다.

apps/web/src/app/page.tsx (2)

1-1: import 구문이 깔끔합니다!

IconText 컴포넌트를 함께 import하여 코드가 간결해졌네요.


9-11: 테스트용 텍스트를 실제 콘텐츠로 교체해주세요.

"hihi"는 테스트용 텍스트로 보입니다. 실제 서비스에 맞는 의미 있는 텍스트로 교체가 필요합니다.

또한, 하드코딩된 스타일 값들을 테마 시스템의 토큰으로 교체하는 것을 고려해보세요:

-<Text.h1 color="grey950" fontSize={28} fontWeight="semibold">
+<Text.h1 color="grey950" fontSize="heading1" fontWeight="semibold">
✅ Verification successful

테스트용 텍스트 "hihi" 교체 필요 확인

코드베이스 전체 검색 결과, "hihi"는 해당 파일에서만 사용되는 테스트용 텍스트임이 확인되었습니다. 또한 테마 시스템이 올바르게 구현되어 있어 fontSize를 테마 토큰으로 교체하는 것이 디자인 시스템의 일관성을 위해 권장됩니다.

🏁 Scripts executed

The following scripts were executed for the analysis:

Error: No shell scripts found


Script:

#!/bin/bash
# Search for "hihi" occurrences
echo "=== Searching for 'hihi' occurrences ==="
rg "hihi" --type tsx --type ts

# Look for Text.h1 usage patterns
echo -e "\n=== Searching for Text.h1 usage patterns ==="
rg "Text\.h1" --type tsx --type ts -A 2

# Search for theme-related files
echo -e "\n=== Looking for theme configuration ==="
fd "theme" -e ts -e tsx

Length of output: 537


Script:

#!/bin/bash
# Search for "hihi" occurrences with correct extensions
echo "=== Searching for 'hihi' occurrences ==="
rg "hihi" -t typescript -t typescriptreact

# Look for Text.h1 usage patterns
echo -e "\n=== Searching for Text.h1 usage patterns ==="
rg "Text\.h1" -t typescript -t typescriptreact -A 2

# Examine theme configuration
echo -e "\n=== Examining theme configuration ==="
cat packages/theme/src/themes/themes.css.ts

Length of output: 820


Script:

#!/bin/bash
# Search using basic grep
echo "=== Searching for patterns ==="
find . -type f -name "*.tsx" -o -name "*.ts" | xargs grep -l "hihi"
find . -type f -name "*.tsx" -o -name "*.ts" | xargs grep -l "Text.h1"

# Check theme definitions
echo -e "\n=== Theme contract ==="
cat packages/theme/src/themes/contract.ts

echo -e "\n=== Light theme implementation ==="
cat packages/theme/src/themes/light.ts

Length of output: 3878

packages/theme/src/themes/dark.ts (1)

39-42: 색상 토큰의 용도를 명확히 문서화해주세요.

새로 추가된 primary 색상 토큰들의 구체적인 사용 사례와 가이드라인이 필요합니다.

각 색상의 사용 목적을 확인하기 위해 다음 스크립트를 실행해보세요:

packages/theme/src/themes/light.ts (1)

6-8: 삭제 예정인 속성들의 마이그레이션 계획이 필요합니다.

TODO 주석으로 표시된 삭제 예정인 속성들에 대해:

  1. 구체적인 삭제 일정
  2. 대체할 속성들로의 마이그레이션 가이드
  3. 하위 호환성 보장 방안
    이 명확히 문서화되어야 합니다.

현재 사용 중인 곳을 파악하기 위해 다음 스크립트를 실행해보세요:

✅ Verification successful

삭제 예정인 속성들을 즉시 제거해도 좋습니다.

검색 결과 primary, primary400to200, primaryHover 속성들이 현재 코드베이스에서 사용되지 않고 있음이 확인되었습니다. 따라서 마이그레이션 계획 없이 해당 속성들과 TODO 주석을 바로 제거하셔도 됩니다.

🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# 삭제 예정인 속성들의 사용처 확인
rg "primary(?!500|600|700|800)" --type ts --type tsx

Length of output: 291


Script:

#!/bin/bash
# Search for deprecated primary color token usages
echo "=== Searching for 'primary' usage ==="
rg "\.primary\b" --type ts --type tsx -g '!**/light.ts' -g '!**/dark.ts'

echo -e "\n=== Searching for 'primary400to200' usage ==="
rg "\.primary400to200\b" --type ts --type tsx

echo -e "\n=== Searching for 'primaryHover' usage ==="
rg "\.primaryHover\b" --type ts --type tsx -g '!**/light.ts' -g '!**/dark.ts'

Length of output: 597


Script:

#!/bin/bash
# Search for deprecated primary color token usages without type restrictions
echo "=== Searching for theme.primary usage ==="
rg "theme\.primary\b" -C 2 -g '!**/light.ts' -g '!**/dark.ts'

echo -e "\n=== Searching for primary400to200 usage ==="
rg "\.primary400to200\b" -C 2

echo -e "\n=== Searching for primaryHover usage ==="
rg "theme\.primaryHover\b" -C 2 -g '!**/light.ts' -g '!**/dark.ts'

Length of output: 457

packages/ui/src/components/Text/Text.subComponents.tsx (1)

3-8: CreateSubText 함수의 타입 안전성이 잘 구현되었습니다.

제네릭과 Omit을 활용한 타입 설계가 견고합니다. 컴파운드 컴포넌트 패턴도 적절히 적용되었습니다.

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: 0

🧹 Nitpick comments (3)
packages/ui/src/components/Text/Text.subComponents.tsx (3)

3-8: JSDoc 문서화가 필요합니다.

CreateSubText 함수는 컴파운드 패턴의 핵심 구현체입니다. 함수의 목적과 사용법을 명확히 하기 위해 JSDoc 문서화를 추가하는 것이 좋겠습니다.

+/**
+ * Text 컴포넌트의 서브 컴포넌트를 생성하는 헬퍼 함수
+ * @param props - Text 컴포넌트의 props (as prop은 필수)
+ * @returns Text 컴포넌트의 인스턴스
+ */
function CreateSubText<T extends AllowedTags>({

16-16: 타입 단언에 대한 설명이 필요합니다.

as TextCompoundType 타입 단언의 목적과 필요성을 설명하는 주석을 추가하면 코드의 의도를 더 명확히 전달할 수 있습니다.

+// Text 컴포넌트에 compound 패턴을 적용하기 위한 타입 확장
const BaseText = Text as TextCompoundType;

18-91: 접근성 개선이 필요합니다.

텍스트 컴포넌트의 접근성을 높이기 위해 다음 기능들의 추가를 고려해주세요:

  1. aria-label prop 지원
  2. heading 레벨에 따른 적절한 시맨틱 구조 가이드라인 추가
  3. 색상 대비 검사 유틸리티 추가
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between c30e1b0 and c97f87c.

📒 Files selected for processing (1)
  • packages/ui/src/components/Text/Text.subComponents.tsx (1 hunks)
🔇 Additional comments (2)
packages/ui/src/components/Text/Text.subComponents.tsx (2)

18-91: 이전 리뷰 피드백이 아직 반영되지 않았습니다.

heading 태그들의 스타일이 여전히 중복되어 있으며, 시맨틱한 크기 차이가 없습니다. 이전 리뷰에서 제안된 다음 개선사항들을 반영해주세요:

  1. 공통 스타일을 상수로 분리
  2. heading 태그별 적절한 폰트 크기 차등 적용

1-2: 테스트 코드 작성이 여전히 필요합니다.

컴파운드 패턴의 안정적인 동작을 보장하기 위해 테스트 코드 작성이 필요합니다. 이전 리뷰에서 제안된 테스트 케이스들을 참고해주세요.

Comment on lines 28 to 34
CreateSubText({
as: 'h1',
fontSize: 14,
fontWeight: 'bold',
color: 'grey50',
...props,
}),
Copy link
Member Author

Choose a reason for hiding this comment

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

태그마다 임의로 동일한 값 넣어 뒀는데 추후에 디자이너 분들과 이야기해서 디폴트값 넣어 둬도 좋을 것 같아요!

Comment on lines +26 to +28
color = 'grey950',
fontSize = 14,
fontWeight = 'medium',
Copy link
Member Author

Choose a reason for hiding this comment

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

요건 디자이너 분께 여쭤 보고 가장 많이 사용되는 값으로 기본값 넣어 줘도 좋을 것 같아요(?)

| 'h1'
| 'h2'
| 'h3'
| 'h4'
Copy link
Contributor

Choose a reason for hiding this comment

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

h4까지만 있어도 좋지 않을까요?

Copy link
Contributor

Choose a reason for hiding this comment

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

h1 : 가장 큰 제목
h2: 큰 제목
h3: 일반적인 제목
h4: 작은 제목

Copy link
Member Author

Choose a reason for hiding this comment

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

대부분의 경우 h1만 사용하거나 h2까지만 사용되지 않을까 싶긴 해요! h5, h6도 존재하는 태그라 저는 두는 게 좋을 것 같긴 합니다,,

Copy link
Contributor

Choose a reason for hiding this comment

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

넵 알겠습니다~!

export default function Home() {
return (
<div>
웹 1팀 파이팅!
<Icon size={24} name="stack" type="stroke" />
<Icon size={24} name="stack" type="fill" />
<Icon size={24} name="stack" type="stroke" color="warning300" />
<Text.h1 color="grey950" fontSize={28} fontWeight="semibold">
Copy link
Contributor

Choose a reason for hiding this comment

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

Text.H1, Text.Span 이런 식으로 대문자면 통일감이 있을 것 같아요!

Copy link
Member Author

Choose a reason for hiding this comment

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

다른 컴파운드 컴포넌트들 사용할 때 생각하면 대문자가 좋겠네요!! 수정할게요!

@kongnayeon kongnayeon merged commit 49fe65f into develop Jan 12, 2025
3 checks passed
@kongnayeon kongnayeon deleted the feat/#d38b5774b branch January 12, 2025 17:22
kongnayeon added a commit that referenced this pull request Feb 5, 2025
* [Feat] 프로젝트 스캐폴딩 (#2)

* docs: 이슈, PR 템플릿 추가

* docs: codeoners 추가

* feat: web 앱 Next.js, React 버전 다운그레이드

* feat: eslint, tsconfig 종속성, prettier 추가

* feat: husky, lint-staged 설치

* feat: husky, lint-staged 테스트

* chore: husky, lint-staged 테스트

* chore: husky, lint-staged 테스트 2

* fix: eslint config 수정

* chore: husky, lint-staged 테스트 3

* chore: husky, lint-staged 테스트 4

* chore: husky, lint-staged 테스트 5

* feat: .nvmrc 추가

* feat: vanilla extract 설치, config 수정

* chore: web 앱 type: module 설정 제거

* chore: vanilla extract 설치, next.config.js 수정

* [Chore]: 리뷰어 선정 시 슬랙 알림 workflow 적용 (#33)

* [Chore]: ui 패키지 초기 셋팅 (#34)

* feat(packages/theme): theme 패키지를 생성해요. (#36)

* [Chore]: build ci 추가 (#38)

* feat: pnpm workspace 추가 (#42)

* [Fix]: theme, ui 패키지의 vanilla-extract 빌드 설정 수정 (#45)

* fix(apps/web, packages/theme, packages/ui): theme, ui 패키지의 vanilla-extract 빌드 설정, css 관련 수정

* chore(packages/theme, packages/ui): build 스크립트 수정

* chore(packages/theme, packages/ui): exports 수정

* chore(packages/theme, packages/ui): exports 수정

* wip

* chore(packages/theme, packages/ui): 불필요 dependency 제거

* chore(packages/theme, packages/ui): 불필요 필드 제거

* fix: 공통 패키지 루트로 끌어올리기, 패키지 버전 의존성 적용

* fix: 테스트 컴포넌트 제거

* fix: 테스트 컴포넌트 제거

* chore(apps/web): 주석처리

* chore: 빌드 테스트

* chore: 테스트용 컴포넌트 제거

---------

Co-authored-by: kangnayeon <[email protected]>

* [Feat]: theme 적용을 위한 Provider 추가 (#47)

* [Feat] Spacing 컴포넌트 추가 (#49)

* [Feat] Icon 컴포넌트 추가 (#48)

* feat(packages/ui): Icon 컴포넌트 추가

* fix(packages/ui): 아이콘 속성 camelCase로 수정

* feat(packages/ui): svg 파일 import 스크립트, svgr 플러그인 설정 추가

* feat(packages/ui): Icon 컴포넌트

* fix(packages/theme): color 뎁스 낮추기

* [Feat] Spacing 컴포넌트 추가 (#49)

* fix: resolve conflicts

* fix(packages/theme): 컬러 토큰 변경에 따른 dark, theme 토큰 변경

* fix: resolve conflicts

* chore: 주석 제거

---------

Co-authored-by: minseong <[email protected]>

* [Fix] Icon 컴포넌트 수정 (#51)

* fix(packages/ui): Icon 컴포넌트 수정

* chore(packages/ui): 색상 스타일 로직 개선

* fix(packages/ui): IconProps의 color 타입을 string으로 수정해요

* [Fix] 컬러 시스템 내의 색상만 사용할 수 있도록 Icon 컴포넌트 수정 (#53)

* fix(packages/ui): Icon 컴포넌트 수정

* chore(packages/ui): 색상 스타일 로직 개선

* fix(packages/ui): IconProps의 color 타입을 string으로 수정해요

* fix(packages/ui, apps/web): 컬러 시스템 내의 색상만 사용할 수 있도록 Icon 컴포넌트 수정

* [Fix] Spacing 컴포넌트 수정 (#54)

* fix(packages/ui): Spacing 컴포넌트 수정

* chore: name import 하도록 수정

* chore: 배럴 파일 수정

* chore: empty file 삭제

* chore(packages/theme): 색상 추가 (#56)

* [Feat] Text 컴포넌트 추가 (#57)

* feat(packages/ui): Text 컴포넌트

* feat(packages/ui): 컴파운드 객체 추가

* chore(packages/ui): TypographyType theme에서 가져오도록 수정

* fix(packages/ui): TextCompoundType 선언 시 중복되는 구문 수정

* fix(packages/ui): Compound Text 컴포넌트 선언 시 중복되는 로직 수정

* feat(packages/ui): Text 컴포넌트 사용 시 대문자 사용하도록 수정

* [Feat] Toast 컴포넌트 추가 (#52)

* chore(packages/ui): ovarlay-kit 의존성 추가

* feat(packages/ui): Toast 컴포넌트 구현

* test(apps/web): Toast 컴포넌트 사용 예시 추가

* fix(packages/ui): 접근성 개선

* chore(packages/ui): lock 파일 업데이트

* chore(packages/themes): violet 색상 추가

* chore(packages/ui): success일 경우의 색상 변경

* fix(apps/web): Providers 컴포넌트 분리, OverlayProvider 이동

* [Feat] Badge 컴포넌트 구현 (#58)

* feat(packages/ui, apps/web): Badge 컴포넌트 구현

* fix(packages/ui, apps/web): Badge 컴포넌트 수정

* chore(packages/ui): named import 변경

* [Feat] Checkbox 컴포넌트 추가 (#60)

* feat(packages/ui): 누름 상태 관리를 위한 usePress 추가

* chore(packages/ui): 체크박스 아이콘 추가

* feat(packages/ui): 체크박스 컴포넌트 추가

* chore(apps/web): 사용 예시 추가

* fix(packages/ui): 키보드 접근성 수정

* [Feat] Label 컴포넌트 구현 (#61)

* feat(packages/ui): Label 컴포넌트 구현

* chore(packages/ui): Label 컴포넌트 예시

* [Feat] Button 컴포넌트 추가 (#59)

* feat(packages/ui): Button 컴포넌트

* fix(packages/ui): Icon color 속성 없을 시 currentColor 적용되도록 수정

* chore(packages/ui): Button 컴포넌트 export

* fix(packages/ui): Button 컴포넌트 스타일

* fix(packages/ui): Icon default size 100%로 변경

* fix(packages/ui): Button 컴포넌트의 leftIcon, rightIcon prop을 leftAddon, rightAddon으로 수정

* feat(packages/ui): twincle icon 추가

* fix(packages/ui): 기존 태그의 prop을 상속 받는 경우 ComponentPropsWithoutRef 사용하도록 수정

* [Feat] Breadcrumb 컴포넌트 추가 (#62)

* chore(packages/ui): @radix-ui/react-slot 설치

* feat(packages/ui): Breadcrumb 컴포넌트 구현

* test(apps/web): 사용 예시 추가

* [Feat] px -> rem 변환 (#64)

* fix: px 단위 rem으로 변환

* fix: body font-size 1.6rem으로 지정

* [Chore] Checkbox 컴포넌트의 label fontSize 변환 (#66)

* chore(packages/ui):  Checkbox 컴포넌트의 label fontSize 변환

* chore(packages/ui): className 빈 값 string 기본값 지정

* [Feat] LottieAnimation 컴포넌트 추가 (#63)

* feat(packages/ui): 로티 파일, 생성 스크립트 추가

* feat(packages/ui): LottieAnimation 컴포넌트 추가

* fix(packages/ui): LottieAnimation 따로 export 하도록 수정, 에셋 상대경로로 수정

* fix(packages/ui): 스크립트 오타 수정

* feat(packages/ui): 코드리뷰 반영

* fix: 빌드 에러 수정

* [Feat] TextField 컴포넌트 구현 (#65)

* chore(apps/web): react-hook-form 설치

* feat(packages/ui): isNill 함수 추가

* chore(packages/ui): isNill export

* feat(packages/ui): TextField 컴포넌트 구현

* test(apps/web): 예시 추가

* fix(packages/ui): 디자인 요구사항 수정

* [Feat] 아이콘, 색상 변경 사항 반영 (#72)

* feat(packages/theme): 아이콘 변경 사항 반영

* fix(packages/ui): 누락된 아이콘 추가

* [Feat] IconButton 컴포넌트 (#68)

* [Feat] Spinner 컴포넌트 추가 (#69)

* feat(packages/ui): Spinner 컴포넌트

* feat(packages/ui): Spinner span 태그로 감싸기

* fix(packages/ui): SpinnerColorType 추가

* [�Fix]: ThemeProvider 패키지 이동, 불필요 배럴 파일 정리 (#74)

* wip

* chore(apps/web): 파일 구조 변경

* chore(packages/theme, apps/web): 배럴파일 정리 및 provider 별도 export

* chore(packages/theme): provider 별도 export

* fix(packages/theme, packages/ui): ThemeProvider 이동

* remove(apps/web): 퍼블리싱 삭제 (별도 PR 예정)

* [Feat] RadioCards 컴포넌트 추가 (#73)

* feat(packages/ui): RadioCards 관리를 위한 context 추가

* feat(packages/ui): RadioCards 컴포넌트 구현 및 JSDoc 추가

* feat(packages/ui): RadioCards 사용 예시 추가

* fix(packages/ui): RadioCards 구조 변경

* test(packages/ui): RadioCards 예시 변경

* docs(packages/ui): JSDoc 업데이트

* fix(packages/ui): 키보드 접근성 개선

* [Feat] Modal 컴포넌트 추가 (#83)

* feat(packages/ui): PortalConsumer 컴포넌트

* feat(packages/ui): PortalConsumer 컴포넌트

* feat(packages/ui): Modal로의 포커스를 위한 FocusTrap 구현

* feat(packages/ui): Modal 컴포넌트 구현 및 JSDoc 작성

* test(apps/web): Modal 컴포넌트 사용 예시 추가

* fix(packages/ui): overlay-kit에서 이미 제공하고 있으므로 PortalConsumer 제거

* [Feat] 스켈레톤 컴포넌트 (#84)

* feat(packages/ui): 스켈레톤 컴포넌트

* feat: displayName 속성 추가

* feat: 리뷰 반영

* [Fix] ui 패키지 컴포넌트 사용 시 모든 컴포넌트가 암묵적으로 import 되는 현상 (#79)

* fix(packages/ui): 아이콘 생성 스크립트 확장자 변경

* feat(packages/ui) 컴포넌트 별 배럴 파일 생성

* fix: 공통 로직 임포트 경로 수정

* fix(packages/ui): esm 방식만 지원하도록 수정

* chore: 사용되지 않는 컴포넌트 제거

* chore: 사용되지 않는 아이콘 제거

* fix(packages/ui): 사용되지 않는 플러그인 제거

* fix: 빌드 에러

* fix: 빌드 에러

* fix: 빌드 에러 수정

* feat: svgr 라이브러리 제거, 아이콘 컴포넌트 생성 스크립트 추가

* fix: build error

* fix: icon 매핑 스크립트 수정

* feat(packages/ui): 컴포넌트 전체 export 추가

* [Feat] Chip 컴포넌트 추가 (#70)

* feat(packages/ui): chip 컴포넌트

* [Feat] TextField 컴포넌트 구현 (#65)

* chore(apps/web): react-hook-form 설치

* feat(packages/ui): isNill 함수 추가

* chore(packages/ui): isNill export

* feat(packages/ui): TextField 컴포넌트 구현

* test(apps/web): 예시 추가

* fix(packages/ui): 디자인 요구사항 수정

* [Feat] 아이콘, 색상 변경 사항 반영 (#72)

* feat(packages/theme): 아이콘 변경 사항 반영

* fix(packages/ui): 누락된 아이콘 추가

* feat(packages/ui): chip 컴포넌트

* feat(packages/ui): Chip에 사용되는 아이콘 추가

* fix(packages/ui): Text 컴포넌트 color prop 없을 때 inherit으로 지정, 기본 line height 값 지정

* fix(packages/ui): Icon 컴포넌트 color 상속 시 path 태그 외의 다른 태그들도 상속 받을 수 있도록 수정

* fix(packages/ui): Chip 컴포넌트 스타일 수정

* feat: x 아이콘 color 수정

* feat: onClose 추가

* fix: x 아이콘 호버링 시 cursor pointer로 지정

* feat: 리뷰 반영

* fix(packages/ui):  closable 버튼 보이지 않는 문제

* fix: 리뷰 반영

---------

Co-authored-by: MINSEONG KIM <[email protected]>

* [Refactor] Spinner 컴포넌트 css 방식으로 변경 (#92)

* fix:(packages/ui): Spinner 컴포넌트 css 방식으로 구현

* fix(packages/ui): Button 컴포넌트 스타일 수정, isLoading 상태 스피너 추가

* [Feat] useToast 추가, DynamicLottie 컴포넌트 추가 (#89)

* [Feat]: useModal 추가 (#91)

* chore(packages/ui): overlay-kit 설치

* feat(packages/ui): useModal 추가

* test(apps/web): useModal 사용 예시 추가

* fix(packages/ui): 옵셔널로 치환

* fix(packages/ui): 자잘한 수정

* fix(packages/ui): 자잘한 수정

* docs(packages/ui): JSDoc 추가

* test(apps/web): 사용 예시 추가

* chore(packages/ui): 코드 간소화

* fix(packages/ui): 프로미스를 반환할 수 있도록 수정

* fix(packages/ui): isNil수정, isNotNill 추가, export 수정

* fix(package/ui): nullish 체크

* fix(packages/ui): 모달 doubleCTA의 각각 버튼 공간이 절반 차지하도록 수정

* test(packages/ui): 예시 수정

* chore: lock 파일 업데이트

* [Feat] ImageManager TypeA 컴포넌트 추가 (#94)

* chore(apps/web): Provider -> provider로 변경 (네이밍 컨벤션 통일)

* feat(apps/web): ImageManager TypeA 컴포넌트 구현

* chore(apps/web): 대소문자 git 이슈 해결

* chore(apps/web): baseUrl 설정

* fix(apps/web): 자잘한 수정, 접근성 개선

* chore(apps/web): 키 상수화

* fix(apps/web): 유효성 검사 수정

* chore(apps/web): 경로 수정

* [Feat] 주제 설정 페이지 퍼블리싱 및 폼 연동 (#95)

* chore(apps/web): motion 추가

* chore(packages/ui): styles export 변경

* feat(packages/theme): 색상 추가

* feat(packages/theme): spacing 추가

* feat(apps/web): KeywordChip 컴포넌트 추가

* feat(apps/web): ImageManager 컴포넌트 추가

* feat(apps/web): 주제 설정 페이지 퍼블리싱

* refactor(apps/web): 컴포넌트 분리 및 자잘한 수정

* fix(apps/web): react-hook-form watch를 통한 조건부 렌더링

* feat(apps/web): react-hook-form을 통한 폼 관리

* fix(apps/web): ImageManager 컴포넌트 packages/ui로 이동 예정

* fix(apps/web): ImageManager TypeA css 수정

* fix(apps/web): GradientAnimatedTitle로 수정

* fix(apps/web): GradientAnimatedTitle로 수정

* feat(apps/web): isEmptyStringOrNil 유틸 추가

* fix(apps/web): ImageManager TypeA 제어형으로 사용 가능하도록 변경

* refactor(apps/web): 컴포넌트 분리

* chore(apps/web): px->rem 변경

* fix(app/web): defaultValues 수정

* fix(apps/web): css 수정

* fix(apps/web): placeholder 수정

* [Feat] ky, tanstack-query 설정, presigned-url 모듈, 뉴스 카테고리 api 연동 (#97)

* fix(packages/ui): onClick 누락 수정

* fix(packages/ui): onClick 누락 수정

* feat(apps/web): 필수 항목 입력 후 홈 BreadCrumb 클릭 시 모달

* feat(apps/web): tanstack-query 셋팅

* fix(apps/web): tanstack-query 셋팅 수정

* feat(apps/web): ky 셋팅

* fix(apps/web): KeywordChipGroup 컴포넌트 수정

* feat(apps/web): 뉴스 카테고리 api 연듕

* feat(apps/web): put, patch, delete 추가

* feat(apps/web): put, patch, delete 추가

* fix(apps/web): nullish 검증

* chore(.github/workflows): env 추가

* fix(apps/web): staleTime, gcTime 수정

* fix(apps/web): 자잘한 수정

* fix(apps/web): 토큰 string으로 관리

* chore(apps/web): shared로 폴더명 변경

* feat(apps/web): presigned-url 모듈 구현 및 연동

* [Feat] 주제 설정 페이지 api 연동, 디자인 추가 반영 (#100)

* fix(apps/web): MainBreadcrumbItem 이미지 수정

* fix(apps/web): suspense 래핑

* remove(apps/web): 불필요 코드 제거

* feat(apps/web): 스크롤 감지 훅 추가

* feat(apps/web): 반투명 NavBar 추가

* fix(apps/web): 스타일링 수정

* fix(apps/web): 스타일링 수정

* fix(apps/web): ImageManager TypeA가 File이 아닌 이미지의 url로 받도록 수정

* feat(apps/web): 공통 타입 분리

* feat(apps/web): 게시물 그룹 및 게시물 생성 API 연동

* feat(apps/web): ImageManager TypeA 최적화 및 UI만 그리도록 관심사 분리

* fix: Images 폴더명을 images로 수정

* fix(apps/web): 자잘한 수정

* fix(apps/web): 자잘한 수정

* fix(apps/web): 타입 개선

* fix(apps/web): ImageManager 단일로 관리

* [Feat] Accordion 컴포넌트 (#99)

* fix(packages/ui): Chip 컴포넌트 개별 export

* feat(packages/ui): Accordion 컴포넌트

* chore: Accordion 컴포넌트 예시 추가

* chore(packages/ui): displayName 추가

* fix: 코드리뷰 반영

* fix: resolve conflicts

* [Fix] 컴포넌트 스타일 수정 (#102)

* fix: 폴더명 Images를 images로 변경

* fix(apps/web): 간단한 레이아웃 수정

* fix(apps/web): NavBar 레이아웃 수정

* fix(packages/ui, apps/web): TextField 레이아웃 깨짐 수정

* fix(packages/ui): Checkbox width 수정

* docs(packages/ui): TextField JSDoc 수정

* [Feat]  결과 수정 - 상세 페이지 퍼블리싱 (#86)

* feat(apps/web): ContentItem 컴포넌트

* feat(apps/web): getMinutesAgo 유틸 함수 추가

* feat(apps/web): ContentItem 컴포넌트

* fix(packages/ui): Chip 컴포넌트 개별 export

* feat(packages/ui): Accordion 컴포넌트

* chore: Accordion 컴포넌트 예시 추가

* feat(apps/web): EditSidebar 추가

* feat(packages/ui): 아이콘 에셋  추가

* fix(apps/web): getMinutesAgo 함수 getTimesAgo 함수로 수정

* fix(packages/ui): IconButton 컴포넌트 props에서 type도 받도록 수정

* fix(apps/web): ContentItem 컴포넌트 디자인 수정 반영

* feat(apps/web): PostEditor 추가

* feat(apps/web): EditPromptField 추가

* feat(apps/web) EditPost 영역 추가

* feat(apps/web): ContentItem 컴포넌트

* chore: Accordion 컴포넌트 예시 추가

* fix: resolve conflicts

* fix: resolve conflicts

* fix: 빌드 에러

* fix: 빌드 에러

* fix(apps/web): TextField 수정 반영

* fix(packages/ui): Accordion 컴포넌트 스타일 수정

* [Feat] vercel 자동 배포 빌드 스크립트 (#105)

---------

Co-authored-by: MINSEONG KIM <[email protected]>
Co-authored-by: minseong <[email protected]>
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