-
Notifications
You must be signed in to change notification settings - Fork 6
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-fe: 메세지 제출 폼 및 사이드 모달 컴포넌트 구현 #701
Merged
Merged
Changes from 20 commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
069cf05
Create draft PR for #700
github-actions[bot] 4ebb011
feat: MessageForm 컴포넌트 구현
lurgi f02313b
chore: 파일 경로 수정
lurgi a2e3137
feat: Floating Form 구현
lurgi d7f611b
chore: Tanstack-Query devtools 설치
lurgi 29e27d9
squash devtools
lurgi 0a6cb91
feat: DropdownItem Separate 추가
lurgi 57251cb
feat: SideFloatingMessageForm ApplicantName 추가
lurgi f8f932c
feat: PopOverMenu Separate 추가
lurgi 4a2654d
feat: ApplicantCard PopOverMenu 아이템 추가
lurgi 32a7a4e
feat: PopOverMenu Item 이벤트 추가
lurgi 8f24cbf
feat: APIClient에 formData 형식 추가
lurgi c676654
feat: APIClient formData prop 추가
lurgi ca3f5fe
feat: 이메일 전송 기능 구현
lurgi 5de5ef8
feat: 이메일 전송 POST 모킹
lurgi 0c6186b
feat: 이메일 전송 이후 컨트롤 설정
lurgi 64cb0f9
refactor-fe: 코드 스플리팅으로 로딩 성능 개선 (#678)
github-actions[bot] 744ae5c
chore: 개행 삭제
lurgi a7130e8
Merge branch 'fe/develop' into fe-700-COM_MESSAGE
lurgi 821e3aa
chore: 의존성 재설치
lurgi db47998
chore-fe: SEO 개선 작업 (#674)
github-actions[bot] 34990fa
chore: package-lock 수정
lurgi 5aeaefe
chore-fe: SEO 개선 작업 (#674)
github-actions[bot] b976205
Merge branch 'fe/develop' into fe-700-COM_MESSAGE
lurgi 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
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains 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 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 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 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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import { EMAILS } from '../endPoint'; | ||
import APIClient from '../APIClient'; | ||
|
||
const apiClient = new APIClient(EMAILS); | ||
|
||
const emailApis = { | ||
send: async ({ | ||
clubId, | ||
applicantId, | ||
subject, | ||
content, | ||
}: { | ||
clubId: string; | ||
applicantId: number; | ||
subject: string; | ||
content: string; | ||
}) => | ||
apiClient.post({ | ||
path: '/send', | ||
body: { clubId, applicantIds: applicantId, subject, content }, | ||
isFormData: true, | ||
}), | ||
}; | ||
|
||
export default emailApis; |
This file contains 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 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 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 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 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 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 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 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 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 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
28 changes: 28 additions & 0 deletions
28
...tend/src/components/dashboard/SideFloatingMessageForm/MessageForm/MessageFrom.stories.tsx
This file contains 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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import type { Meta, StoryObj } from '@storybook/react'; | ||
import { FloatingEmailFormProvider } from '@contexts/FloatingEmailFormContext'; | ||
import MessageForm from '.'; | ||
|
||
const meta: Meta<typeof MessageForm> = { | ||
title: 'Organisms/Dashboard/SideFloatingMessageForm/MessageForm', | ||
component: MessageForm, | ||
tags: ['autodocs'], | ||
args: { | ||
recipient: '러기', | ||
onSubmit: (data) => { | ||
alert(`Subject: ${data.subject}, Content: ${data.content}`); | ||
}, | ||
onClose: () => alert('close button clied'), | ||
}, | ||
decorators: [ | ||
(Story) => ( | ||
<FloatingEmailFormProvider> | ||
<Story /> | ||
</FloatingEmailFormProvider> | ||
), | ||
], | ||
}; | ||
|
||
export default meta; | ||
type Story = StoryObj<typeof MessageForm>; | ||
|
||
export const Default: Story = {}; |
Oops, something went wrong.
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.
앞으로 확장성 있는 APIClient를 만들 땐 formData 타입도 유의해야겠네요..💭