-
Notifications
You must be signed in to change notification settings - Fork 137
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 #12161 from woocommerce/issue/introduce-google-ads…
…-cta [GLA Analytics] Introduce Google Ads CTA into Analytics Hub
- Loading branch information
Showing
17 changed files
with
304 additions
and
50 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
7 changes: 5 additions & 2 deletions
7
WooCommerce/src/main/kotlin/com/woocommerce/android/model/GoogleAdsStat.kt
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
22 changes: 19 additions & 3 deletions
22
...rce/src/main/kotlin/com/woocommerce/android/ui/analytics/hub/AnalyticsHubCardViewState.kt
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 |
---|---|---|
@@ -1,6 +1,22 @@ | ||
package com.woocommerce.android.ui.analytics.hub | ||
|
||
sealed class AnalyticsHubCardViewState { | ||
data object LoadingCardsConfiguration : AnalyticsHubCardViewState() | ||
data class CardsState(val cardsState: List<AnalyticsCardViewState>) : AnalyticsHubCardViewState() | ||
import com.woocommerce.android.model.AnalyticsCards | ||
|
||
sealed class AnalyticsHubCardViewState( | ||
open val cardsState: List<AnalyticsCardViewState> | ||
) { | ||
/** | ||
A default Loading configuration for when the Analytics Hub has started | ||
but the AnalyticCardConfiguration list is still unknown. | ||
*/ | ||
data object LoadingCardsConfiguration : AnalyticsHubCardViewState( | ||
cardsState = listOf( | ||
AnalyticsHubInformationViewState.LoadingViewState(AnalyticsCards.Revenue), | ||
AnalyticsHubInformationViewState.LoadingViewState(AnalyticsCards.Orders), | ||
AnalyticsHubListViewState.LoadingViewState(AnalyticsCards.Products), | ||
) | ||
) | ||
data class CardsState( | ||
override val cardsState: List<AnalyticsCardViewState> | ||
) : AnalyticsHubCardViewState(cardsState) | ||
} |
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
Oops, something went wrong.