-
Notifications
You must be signed in to change notification settings - Fork 1
[Feature/#257] 타임라인 성과 요약 패널 UI 구현 #261
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
8 commits
Select commit
Hold shift + click to select a range
5a9fa80
feat: 성과요약패널 기본 틀 UI 구현
jjjsun 1440bfe
feat: 타임라인 성과 요약 패널 UI 구현 완료
jjjsun b20e752
feat: 성과요약 패널 디자인 수정
jjjsun 7711a21
fix: 전체 화면일때 최대 너비 더 길게 수정
jjjsun 11a6aa6
fix: 코드래빗 수정사항 반영
jjjsun bdbceea
style: shadow-Soft-xs 삭제후 section 외곽 border 처리로 변경
jjjsun 7803b95
style: KPI지표만 border대신 shadow-Soft로 변경, 내부 텍스트 왼쪽 마진 1추가
jjjsun 5a982f4
Merge branch 'develop' into feature/#257
jjjsun 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
Some comments aren't visible on the classic Files Changed page.
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
84 changes: 84 additions & 0 deletions
84
src/components/timeline/TimelinePerformancePanel.stories.tsx
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 |
|---|---|---|
| @@ -0,0 +1,84 @@ | ||
| import { useState } from "react"; | ||
| import type { Meta, StoryObj } from "@storybook/react"; | ||
| import { fn } from "@storybook/test"; | ||
|
|
||
| import { | ||
| TIMELINE_SUMMARY_PANEL_MOCK, | ||
| TIMELINE_SUMMARY_PANEL_NO_AI_MOCK, | ||
| } from "@/types/timeline/timeline.mock"; | ||
|
|
||
| import TimelinePerformancePanel from "./TimelinePerformancePanel"; | ||
|
|
||
| const meta: Meta<typeof TimelinePerformancePanel> = { | ||
| title: "Timeline/PerformancePanel", | ||
| component: TimelinePerformancePanel, | ||
| parameters: { layout: "fullscreen" }, | ||
| args: { | ||
| onClose: fn(), | ||
| onEdit: fn(), | ||
| onDelete: fn(), | ||
| }, | ||
| }; | ||
|
|
||
| export default meta; | ||
| type TStory = StoryObj<typeof TimelinePerformancePanel>; | ||
|
|
||
| function ClosedPreivew() { | ||
| const [open, setOpen] = useState(false); | ||
|
|
||
| return ( | ||
| <> | ||
| <div> | ||
| <button | ||
| type="button" | ||
| onClick={() => setOpen(true)} | ||
| className="rounded-lg bg-primary-400 px-4 py-2 font-body2 text-surface-100" | ||
| > | ||
| 패널 열기 | ||
| </button> | ||
| </div> | ||
| <TimelinePerformancePanel | ||
| isOpen={open} | ||
| onClose={() => setOpen(false)} | ||
| data={TIMELINE_SUMMARY_PANEL_NO_AI_MOCK} | ||
| onEdit={fn()} | ||
| onDelete={fn()} | ||
| /> | ||
| </> | ||
| ); | ||
| } | ||
|
|
||
| export const Closed: TStory = { | ||
| render: () => <ClosedPreivew />, | ||
| }; | ||
|
|
||
| export const Open: TStory = { | ||
| args: { | ||
| isOpen: true, | ||
| data: TIMELINE_SUMMARY_PANEL_NO_AI_MOCK, | ||
| }, | ||
| }; | ||
|
|
||
| export const OpenWithSummary: TStory = { | ||
| args: { | ||
| isOpen: true, | ||
| data: TIMELINE_SUMMARY_PANEL_MOCK, | ||
| }, | ||
| }; | ||
|
|
||
| function InteractivePreview() { | ||
| const [open, setOpen] = useState(true); | ||
| return ( | ||
| <TimelinePerformancePanel | ||
| isOpen={open} | ||
| onClose={() => setOpen(false)} | ||
| data={TIMELINE_SUMMARY_PANEL_MOCK} | ||
| onEdit={fn()} | ||
| onDelete={fn()} | ||
| /> | ||
| ); | ||
| } | ||
|
|
||
| export const Interactive: TStory = { | ||
| render: () => <InteractivePreview />, | ||
| }; |
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.
Uh oh!
There was an error while loading. Please reload this page.