-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #48 from BCSDLab/feature/ab_test
AB테스트 기능 구현
- Loading branch information
Showing
18 changed files
with
1,347 additions
and
28 deletions.
There are no files selected for viewing
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,98 @@ | ||
export interface Test { | ||
id: number; | ||
status: 'IN_PROGRESS' | 'COMPLETED' | string; | ||
winner_name: string; | ||
creator: string; | ||
team: string; | ||
display_title: string; | ||
title: string; | ||
created_at: string; | ||
updated_at: string; | ||
} | ||
|
||
export interface ABTestResponse { | ||
tests: Test[]; | ||
total_count: number; | ||
current_count: number; | ||
total_page: number; | ||
current_page: number; | ||
} | ||
|
||
export interface ABTest { | ||
display_title: string; | ||
creator: string; | ||
team: string; | ||
title: string; | ||
description: string; | ||
variables: { | ||
rate: number; | ||
display_name: string; | ||
name: string; | ||
}[] | ||
} | ||
|
||
export interface NewABTestResponse { | ||
id: number; | ||
display_title: string; | ||
creator: string; | ||
team: string; | ||
status: 'IN_PROGRESS' | 'COMPLETED' | string; | ||
winner_name: string | null; | ||
title: string; | ||
description: string; | ||
variables: { | ||
rate: number; | ||
display_name: string; | ||
name: string; | ||
}[] | ||
created_at: string; | ||
updated_at: string; | ||
} | ||
|
||
export interface ModifyABTest { | ||
id: string | number; | ||
data: Partial<ABTest>; | ||
} | ||
|
||
export interface ABTestUser { | ||
id: string; | ||
name: string; | ||
detail: string; | ||
} | ||
|
||
export interface ABTestUsersResponse { | ||
users: ABTestUser[] | ||
} | ||
export interface ABTestUserUserID { | ||
id: string | number; | ||
type: string; | ||
model: string; | ||
last_accessed_at: string; | ||
} | ||
|
||
export interface ABTestUserUserIDResponse { | ||
devices: ABTestUserUserID[] | ||
} | ||
|
||
export interface ABTestUserMoveRequest { | ||
id: string | number; | ||
data: { | ||
device_id: string | number; | ||
variable_name: string | number; | ||
} | ||
} | ||
|
||
export interface ABTestWinnerRequest { | ||
id: string | number | undefined; | ||
winner_name: string; | ||
} | ||
// 테스트 | ||
export interface ABTestAssignRequest { | ||
title: string; | ||
access_history_id: number | string | null ; | ||
} | ||
|
||
export interface ABTestAssignResponse { | ||
variable_name: string, | ||
access_history_id: number | ||
} |
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,10 @@ | ||
import styled from 'styled-components'; | ||
|
||
export const Container = styled.div``; | ||
|
||
export const Heading = styled.h1` | ||
font-size: 30px; | ||
font-weight: 700; | ||
color: #404040; | ||
padding: 12px 0 0 12px; | ||
`; |
Oops, something went wrong.