-
Notifications
You must be signed in to change notification settings - Fork 2
✨ Feat: 대시보드 상세 페이지 - 터치 기반 드래그 앤 드롭 #55
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
Merged
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
9169a73
♻️ refactor: extractedCard 로직 제거를 위해 드래그 상태에 완전한 Card 객체 저장
80ada6f
✨ feat: 터치 기반 드래그 앤 드롭 구현
9a8afaf
✨ feat: 터치 기반 드래그앤드롭 구현
4a98898
Merge branch 'develop' into feature/dashboard_id-dnd
713fa98
🎨 style: 프로필 동그라미(Avatar 컴포넌트) 추가
a685d5b
🎨 🔧 style chore: 반응형 커스텀(tailwind.config.ts) 및 테스트
ecbdb38
✨ feat: 타겟 컬럼인 경우 배경색 변경
e27ae3b
✨ feat: 카드 터치 시, Long press timer 👇 적용
d9cdcac
🐛 fix: longpress시 나타나는 카드의 우클릭 브라우저 막음
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,17 +1,29 @@ | ||
| import { getColor } from '@/app/shared/lib/getColor' | ||
|
|
||
| export default function Tags({ tags }: { tags: string[] }) { | ||
| //태그 컬러 - 랜덤 배정 | ||
| //카드 생성 시 - 동일 태그 입력 불가하도록 | ||
| const bgColors = ['#F9EEE3', '#E7F7DB', '#F7DBF0', '#DBE6F7'] | ||
| const textColors = ['#D58D49', '#86D549', '#D549B6', '#4981D5'] | ||
|
|
||
| return ( | ||
| <div className="flex gap-6"> | ||
| {tags.map((tag) => ( | ||
| <span | ||
| key={tag} | ||
| className="inline-block whitespace-nowrap rounded-4 px-9 pb-3 pt-5" | ||
| style={{ backgroundColor: '#F7DBF0', color: '#D549B6' }} | ||
| > | ||
| {tag} | ||
| </span> | ||
| ))} | ||
| <div className="flex flex-wrap gap-6"> | ||
| {tags.map((tag) => { | ||
| const colorIndex = getColor(tag, bgColors) | ||
|
|
||
| return ( | ||
| <span | ||
| key={tag} | ||
| className="inline-block whitespace-nowrap rounded-4 px-9 pb-3 pt-5" | ||
| style={{ | ||
| backgroundColor: bgColors[colorIndex], | ||
| color: textColors[colorIndex], | ||
| }} | ||
| > | ||
| {tag} | ||
| </span> | ||
| ) | ||
| })} | ||
| </div> | ||
| ) | ||
| } |
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
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
프로덕션 코드에서 console.log 제거 필요
- console.log('Cardcolumn changed', { movedCard })📝 Committable suggestion
🤖 Prompt for AI Agents