-
Notifications
You must be signed in to change notification settings - Fork 1
[Deploy] AWS S3·CloudFront main 배포 파이프라인 동작 검증 #218
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
13 commits
Select commit
Hold shift + click to select a range
b0f573f
feat: KPI 카드 순서 변경
YermIm 1673e55
Merge branch 'develop' of https://github.com/WhereYouAd/WhereYouAd-Fr…
YermIm cbd77d7
feat: 상단 KPI 지표 API 연동
YermIm c6d25ac
fix: cookieDomainRewrite 옵션 추가로 개발 환경 로그인 유지
Seojegyeong 0fb067c
fix: 충돌 해결
YermIm 61c68af
feat: 플랫폼별 예산 소진 현황 API 연동
YermIm 6cead26
fix: 플랫폼별 KPI API providerType META로 변경
YermIm ab34f99
refactor: SinglePlatformView KPI trend as any 제거
YermIm 7525ecb
Merge pull request #212 from WhereYouAd/bugfix/#221
Seojegyeong 8a016b9
Merge pull request #215 from WhereYouAd/feature/#205
YermIm ec80495
refactor: kakao -> meta 플랫폼 카드 변경
Seojegyeong 7ebdd67
refactor: 대시보드 관련 훅 meta 변경
Seojegyeong 8117b58
Merge pull request #217 from WhereYouAd/refactor/#208
Seojegyeong 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
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,33 +1,17 @@ | ||
| import type { | ||
| IAdStatusData, | ||
| TPlatformProvider, | ||
| } from "@/types/dashboard/platform"; | ||
| import type { IAdStatusData } from "@/types/dashboard/platform"; | ||
|
|
||
| import { useCoreQuery } from "@/hooks/customQuery"; | ||
|
|
||
| import { getAdCount } from "@/api/dashboard/platform"; | ||
| import useWorkspaceStore from "@/store/useWorkspaceStore"; | ||
|
|
||
| // TODO: 추후 제거 | ||
| const normalizeProvider = (provider: string): TPlatformProvider => | ||
| provider === "KAKAO" ? "META" : (provider as TPlatformProvider); | ||
|
|
||
| // 광고 소재 현황 | ||
| export function usePlatformAdCount() { | ||
| const orgId = useWorkspaceStore((s) => s.selectedOrgId); | ||
|
|
||
| return useCoreQuery<IAdStatusData>( | ||
| ["platform", "adCount", orgId], | ||
| () => getAdCount(orgId!), | ||
| { | ||
| enabled: !!orgId, | ||
| select: (data): IAdStatusData => ({ | ||
| ...data, | ||
| providerCount: data.providerCount.map((item) => ({ | ||
| ...item, | ||
| provider: normalizeProvider(item.provider), | ||
| })), | ||
| }), | ||
| }, | ||
| { enabled: !!orgId }, | ||
| ); | ||
| } |
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,29 @@ | ||
| import type { TProviderType } from "@/types/dashboard/overview"; | ||
| import type { TPlatformProvider } from "@/types/dashboard/platform"; | ||
|
|
||
| import { useCoreQuery } from "@/hooks/customQuery"; | ||
|
|
||
| import { getBudget } from "@/api/dashboard/overview"; | ||
| import useWorkspaceStore from "@/store/useWorkspaceStore"; | ||
|
|
||
| const WARNING_THRESHOLD = 50; | ||
| const DANGER_THRESHOLD = 75; | ||
|
|
||
| // 단일 플랫폼 예산 소진 현황 | ||
| export function usePlatformBudget(provider: TPlatformProvider) { | ||
| const orgId = useWorkspaceStore((s) => s.selectedOrgId); | ||
|
|
||
| return useCoreQuery( | ||
| ["platform", "budget", orgId, provider], | ||
| () => getBudget(orgId!, provider as TProviderType), | ||
| { | ||
| enabled: !!orgId && !!provider, | ||
| select: (data) => ({ | ||
| totalBudget: data.totalBudget, | ||
| spent: data.totalSpend, | ||
| warningThreshold: WARNING_THRESHOLD, | ||
| dangerThreshold: DANGER_THRESHOLD, | ||
| }), | ||
| }, | ||
| ); | ||
| } |
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,23 @@ | ||
| import type { | ||
| IMetricsResponse, | ||
| TProviderType, | ||
| } from "@/types/dashboard/overview"; | ||
| import type { TPlatformProvider } from "@/types/dashboard/platform"; | ||
|
|
||
| import { useCoreQuery } from "@/hooks/customQuery"; | ||
|
|
||
| import { getOverview } from "@/api/dashboard/overview"; | ||
| import useWorkspaceStore from "@/store/useWorkspaceStore"; | ||
|
|
||
| // 단일 플랫폼 지표 조회 | ||
| export function usePlatformMetrics(provider: TPlatformProvider) { | ||
| const orgId = useWorkspaceStore((s) => s.selectedOrgId); | ||
|
|
||
| return useCoreQuery<IMetricsResponse>( | ||
| ["platform", "metrics", orgId, provider], | ||
| () => getOverview(orgId!, provider as TProviderType), | ||
| { | ||
| enabled: !!orgId && !!provider, | ||
| }, | ||
| ); | ||
| } |
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.