File tree 2 files changed +8
-3
lines changed
2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 2
2
"name" : " toggle-experiment" ,
3
3
"displayName" : " Toggle Experiment" ,
4
4
"description" : " A browser extension to inject the LocalStorage of a website for Optimizely experiments." ,
5
- "version" : " 0.9 .0" ,
5
+ "version" : " 0.10 .0" ,
6
6
"author" : " Aaron van den Berg" ,
7
7
"homepage" : " https://aaronvandenberg.nl/" ,
8
8
"scripts" : {
Original file line number Diff line number Diff line change @@ -65,6 +65,8 @@ const SearchItem = ({ experiment }: SearchItemProps) => {
65
65
fetchExperiment ( ) ;
66
66
} , [ opened ] ) ;
67
67
68
+ console . log ( experimentData ) ;
69
+
68
70
const addHistoryItem = async ( newItem : HistoryItems ) => {
69
71
const maxHistoryItems = 3 ;
70
72
const historyItemsLocalStorage = await storage . get ( "history" ) ;
@@ -137,15 +139,18 @@ const SearchItem = ({ experiment }: SearchItemProps) => {
137
139
{ loading ? ( < Group position = "center" my = "md" > < Loader /> </ Group > ) : (
138
140
< Box mb = "md" >
139
141
< Group position = "apart" my = "xs" >
140
- < Group >
142
+ < Group position = "left" >
141
143
< Text size = "xs" fw = { 500 } >
142
144
Status:
143
145
</ Text >
144
146
< Text size = "xs" weight = { 500 } color = { status . color } >
145
147
{ status . name }
146
148
</ Text >
149
+ < Text size = "xs" >
150
+ { experimentData ?. traffic_allocation / 100 } % traffic
151
+ </ Text >
147
152
</ Group >
148
- < Text >
153
+ < Text size = "xs" >
149
154
< Anchor
150
155
href = { `https://app.optimizely.com/v2/projects/${ experiment . project_id } /experiments/${ experiment . id } ` }
151
156
target = "_blank" >
You can’t perform that action at this time.
0 commit comments