Repository navigation
[Feature/#416] 플랫폼 대시보드 누락 기능·상태 UX 보완 #426
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
11 commits
Select commit
Hold shift + click to select a range
f6f128a
feat: 플랫폼 트래픽 차트 저장용 id·다운로드 items 추가
YermIm 7923cec
feat: 플랫폼 트래픽 차트 저장용 id·다운로드 items 추가
YermIm 4a55ce7
feat: 플랫폼 트래픽 차트 다운로드 메뉴 추가
YermIm c8a67d9
feat: 플랫폼 개별 트래픽 차트에 저장용 id 연결
YermIm bbc3f74
feat: 플랫폼 전체보기 트래픽 차트에 저장용 id 연결
YermIm 564eb84
feat: 플랫폼 대시보드 트래픽 카드에 저장 메뉴 연결
YermIm 742666b
feat: 플랫폼 대시보드 드롭다운을 연동된 플랫폼만 노출
YermIm f7ee2a0
fix: 워크스페이스 1개일 때 스위치 구분선 숨김
YermIm 55a765f
fix: 플랫폼 전체보기 성과 부분 실패 시 성공분만 표시
YermIm 3ddce98
feat: 플랫폼 대시보드 선택을 URL provider와 동기화
YermIm d2eb514
fix: 연결 목록 성공 후에만 URL provider 검증
YermIm 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
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
52 changes: 52 additions & 0 deletions
52
src/components/dashboard/platform/PlatformTrafficChartDownload.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,52 @@ | ||
| import { DropdownMenu } from "@/components/common/dropdownmenu/DropdownMenu"; | ||
| import { | ||
| getPlatformAllTrafficFilename, | ||
| getPlatformTrafficFilename, | ||
| getTrafficChartDownloadItems, | ||
| PLATFORM_ALL_TRAFFIC_CHART_ID, | ||
| PLATFORM_ALL_TRAFFIC_CONTAINER_ID, | ||
| PLATFORM_TRAFFIC_CHART_ID, | ||
| PLATFORM_TRAFFIC_CONTAINER_ID, | ||
| } from "@/components/dashboard/platform/platformTrafficChartDownload.config"; | ||
|
|
||
| import MoreIcon from "@/assets/icon/common/more.svg?react"; | ||
|
|
||
| type TPlatformTrafficChartDownloadProps = { | ||
| /** 개별 보기: 플랫폼 코드 (GOOGLE 등). 없으면 전체보기 */ | ||
| platform?: string; | ||
| }; | ||
|
|
||
| export default function PlatformTrafficChartDownload({ | ||
| platform, | ||
| }: TPlatformTrafficChartDownloadProps) { | ||
| const chartId = platform | ||
| ? PLATFORM_TRAFFIC_CHART_ID | ||
| : PLATFORM_ALL_TRAFFIC_CHART_ID; | ||
| const containerId = platform | ||
| ? PLATFORM_TRAFFIC_CONTAINER_ID | ||
| : PLATFORM_ALL_TRAFFIC_CONTAINER_ID; | ||
| const filename = platform | ||
| ? getPlatformTrafficFilename(platform) | ||
| : getPlatformAllTrafficFilename(); | ||
|
|
||
| return ( | ||
| <DropdownMenu | ||
| aria-label="차트 다운로드" | ||
| trigger={ | ||
| <button | ||
| type="button" | ||
| className="flex h-8 w-8 items-center justify-center rounded hover:bg-surface-200 transition-ui-fast" | ||
| aria-label="다운로드 메뉴 열기" | ||
| > | ||
| <MoreIcon | ||
| width={16} | ||
| height={16} | ||
| aria-hidden="true" | ||
| className="text-text-auth-sub" | ||
| /> | ||
| </button> | ||
| } | ||
| items={getTrafficChartDownloadItems(chartId, containerId, filename)} | ||
| /> | ||
| ); | ||
| } | ||
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.
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.