Skip to content

Commit

Permalink
Updates Showkase to beta18 (#6430)
Browse files Browse the repository at this point in the history
* Regenerates all screenshots.

* Revert kaptDebug.

* Ktlint fixes.

* Reorders annotations.
  • Loading branch information
carlosmuvi-stripe authored Mar 27, 2023
1 parent 1befffa commit 6a2da20
Show file tree
Hide file tree
Showing 193 changed files with 98 additions and 51 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ ext {
espressoVersion = '3.5.1'
jsonVersion = '20230227'
uiautomator = '2.2.0'
showkaseVersion = '1.0.0-beta14'
showkaseVersion = '1.0.0-beta18'

group_name = GROUP
version_name = VERSION_NAME
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,12 @@ private fun ErrorContent(
}
}

@Preview(
showBackground = true,
group = "Attach Payment Pane",
name = "Default"
)
@Composable
@Preview
internal fun AttachPaymentScreenPreview() {
FinancialConnectionsPreview {
AttachPaymentContent(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,10 @@ internal data class AccessibleDataCalloutModel(
}
}

@Preview
@Preview(
group = "Data Callout",
name = "Default"
)
@Composable
internal fun AccessibleDataCalloutPreview() {
FinancialConnectionsPreview {
Expand All @@ -262,7 +265,10 @@ internal fun AccessibleDataCalloutPreview() {
}
}

@Preview
@Preview(
group = "Data Callout",
name = "Many Accounts"
)
@Composable
@Suppress("LongMethod")
internal fun AccessibleDataCalloutWithManyAccountsPreview() {
Expand Down Expand Up @@ -296,7 +302,10 @@ internal fun AccessibleDataCalloutWithManyAccountsPreview() {
}
}

@Preview
@Preview(
group = "Data Callout",
name = "Many Accounts and Stripe Direct"
)
@Composable
@Suppress("LongMethod")
internal fun AccessibleDataCalloutStripeDirectPreview() {
Expand Down Expand Up @@ -330,7 +339,10 @@ internal fun AccessibleDataCalloutStripeDirectPreview() {
}
}

@Preview
@Preview(
group = "Data Callout",
name = "Networking"
)
@Composable
@Suppress("LongMethod")
internal fun AccessibleDataCalloutNetworkingPreview() {
Expand Down Expand Up @@ -364,7 +376,10 @@ internal fun AccessibleDataCalloutNetworkingPreview() {
}
}

@Preview
@Preview(
group = "Data Callout",
name = "Multiple accounts"
)
@Composable
internal fun AccessibleDataCalloutWithMultipleAccountsPreview() {
FinancialConnectionsPreview {
Expand Down Expand Up @@ -422,7 +437,10 @@ internal fun AccessibleDataCalloutWithMultipleAccountsPreview() {
}
}

@Preview
@Preview(
group = "Data Callout",
name = "One account"
)
@Composable
internal fun AccessibleDataCalloutWithOneAccountPreview() {
FinancialConnectionsPreview {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ internal fun CloseDialog(
)
}

@Composable
@Preview
@Composable
internal fun CloseDialogPreview() {
FinancialConnectionsTheme {
CloseDialog(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -353,8 +353,8 @@ private fun BadgedInstitutionImage(
}
}

@Composable
@Preview(group = "Errors", name = "unclassified error")
@Composable
internal fun UnclassifiedErrorContentPreview() {
FinancialConnectionsPreview {
FinancialConnectionsScaffold(
Expand All @@ -365,8 +365,8 @@ internal fun UnclassifiedErrorContentPreview() {
}
}

@Composable
@Preview(group = "Errors", name = "institution down planned error")
@Composable
internal fun InstitutionPlannedDowntimeErrorContentPreview() {
FinancialConnectionsPreview {
FinancialConnectionsScaffold(
Expand Down Expand Up @@ -396,8 +396,8 @@ internal fun InstitutionPlannedDowntimeErrorContentPreview() {
}
}

@Composable
@Preview(group = "Errors", name = "no accounts available error")
@Composable
internal fun NoAccountsAvailableErrorContentPreview() {
FinancialConnectionsPreview {
FinancialConnectionsScaffold(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,11 @@ internal fun LoadingSpinner() {

private const val LOADING_SPINNER_ROTATION_MS = 1000

@Preview(
group = "Loading",
name = "Default"
)
@Composable
@Preview
internal fun LoadingSpinnerPreview() {
LoadingSpinner()
}
Original file line number Diff line number Diff line change
Expand Up @@ -425,8 +425,8 @@ private fun ConsentFooter(
}
}

@Composable
@Preview(group = "Consent Pane", name = "canonical")
@Composable
internal fun ContentPreview(
state: ConsentState = ConsentStates.canonical()
) {
Expand All @@ -444,8 +444,8 @@ internal fun ContentPreview(
}
}

@Composable
@Preview(group = "Consent Pane", name = "No Logos")
@Composable
internal fun ContentWithNoLogosPreview(
state: ConsentState = ConsentStates.withNoLogos()
) {
Expand All @@ -463,8 +463,8 @@ internal fun ContentWithNoLogosPreview(
}
}

@Composable
@Preview(group = "Consent Pane", name = "Logos: platform or institution")
@Composable
internal fun ContentWithPlatformLogosPreview(
state: ConsentState = ConsentStates.withPlatformLogos()
) {
Expand All @@ -482,8 +482,8 @@ internal fun ContentWithPlatformLogosPreview(
}
}

@Composable
@Preview(group = "Consent Pane", name = "Logos: Connected Account")
@Composable
internal fun ContentWithConnectedAccountLogosPreview(
state: ConsentState = ConsentStates.withConnectedAccountLogos()
) {
Expand All @@ -501,8 +501,8 @@ internal fun ContentWithConnectedAccountLogosPreview(
}
}

@Composable
@Preview(group = "Consent Pane", name = "requested data")
@Composable
// TODO@carlosmuvi add proper preview with expanded bottom sheet once related Compose bug gets fixed.
// https://issuetracker.google.com/issues/241895902
internal fun ContentRequestedDataPreview() {
Expand All @@ -519,8 +519,8 @@ internal fun ContentRequestedDataPreview() {
}
}

@Composable
@Preview(group = "Consent Pane", name = "requested data")
@Composable
// TODO@carlosmuvi add proper preview with expanded bottom sheet once related Compose bug gets fixed.
// https://issuetracker.google.com/issues/241895902
internal fun ContentLegalDetailsPreview() {
Expand All @@ -537,8 +537,8 @@ internal fun ContentLegalDetailsPreview() {
}
}

@Composable
@Preview(group = "Consent Pane", name = "manual entry + microdeposits")
@Composable
internal fun ContentManualEntryPlusMicrodeposits(
state: ConsentState = ConsentStates.manualEntryPlusMicrodeposits()
) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -511,8 +511,8 @@ private fun FeaturedInstitutionsGrid(
)
}

@Composable
@Preview(group = "Institutions Pane", name = "initialLoading")
@Composable
internal fun InitialLoading(
state: InstitutionPickerState = InstitutionPickerStates.initialLoading()
) {
Expand All @@ -531,8 +531,8 @@ internal fun InitialLoading(
}
}

@Composable
@Preview(group = "Institutions Pane", name = "searchModeSearchingInstitutions")
@Composable
internal fun SearchModeSearchingInstitutions(
state: InstitutionPickerState = InstitutionPickerStates.searchModeSearchingInstitutions()
) {
Expand All @@ -551,8 +551,8 @@ internal fun SearchModeSearchingInstitutions(
}
}

@Composable
@Preview(group = "Institutions Pane", name = "searchModeWithResults")
@Composable
internal fun SearchModeWithResults(
state: InstitutionPickerState = InstitutionPickerStates.searchModeWithResults()
) {
Expand All @@ -571,8 +571,8 @@ internal fun SearchModeWithResults(
}
}

@Composable
@Preview(group = "Institutions Pane", name = "searchModeWithResultsNoManualEntry")
@Composable
internal fun SearchModeWithResultsNoManualEntry(
state: InstitutionPickerState = InstitutionPickerStates.searchModeWithResultsNoManualEntry()
) {
Expand All @@ -591,8 +591,8 @@ internal fun SearchModeWithResultsNoManualEntry(
}
}

@Composable
@Preview(group = "Institutions Pane", name = "searchModeNoResults")
@Composable
internal fun SearchModeNoResults(
state: InstitutionPickerState = InstitutionPickerStates.searchModeNoResults()
) {
Expand All @@ -611,8 +611,8 @@ internal fun SearchModeNoResults(
}
}

@Composable
@Preview(group = "Institutions Pane", name = "searchModeNoResultsNoManualEntry")
@Composable
internal fun SearchModeNoResultsNoManualEntry(
state: InstitutionPickerState = InstitutionPickerStates.searchModeNoResultsNoManualEntry()
) {
Expand All @@ -631,8 +631,8 @@ internal fun SearchModeNoResultsNoManualEntry(
}
}

@Composable
@Preview(group = "Institutions Pane", name = "searchModeFailed")
@Composable
internal fun SearchModeFailed(
state: InstitutionPickerState = InstitutionPickerStates.searchModeFailed()
) {
Expand All @@ -651,8 +651,8 @@ internal fun SearchModeFailed(
}
}

@Composable
@Preview(group = "Institutions Pane", name = "searchModeFailedNoManualEntry")
@Composable
internal fun SearchModeFailedNoManualEntry(
state: InstitutionPickerState = InstitutionPickerStates.searchModeFailedNoManualEntry()
) {
Expand All @@ -671,8 +671,8 @@ internal fun SearchModeFailedNoManualEntry(
}
}

@Composable
@Preview(group = "Institutions Pane", name = "noSearchMode")
@Composable
internal fun NoSearchMode(
state: InstitutionPickerState = InstitutionPickerStates.noSearchMode()
) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,10 @@ private fun InputWithError(
}
}

@Preview
@Preview(
group = "Manual Entry",
name = "Default"
)
@Composable
internal fun ManualEntryScreenPreview() {
FinancialConnectionsPreview {
Expand All @@ -329,7 +332,10 @@ internal fun ManualEntryScreenPreview() {
}
}

@Preview
@Preview(
group = "Manual Entry",
name = "Error"
)
@Composable
internal fun ManualEntryScreenErrorPreview() {
FinancialConnectionsPreview {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,10 @@ private fun RowScope.TableCell(
)
}

@Preview
@Preview(
group = "Manual Entry Success",
name = "Amount"
)
@Composable
internal fun ManualEntrySuccessScreenPreviewAmount() {
FinancialConnectionsPreview {
Expand All @@ -303,9 +306,12 @@ internal fun ManualEntrySuccessScreenPreviewAmount() {
}
}

@Preview
@Preview(
group = "Manual Entry Success",
name = "Descriptor"
)
@Composable
internal fun ManualEntrySuccessScreenPreviewDescriptor() {
internal fun ManualEntrySuccessDescriptor() {
FinancialConnectionsPreview {
ManualEntrySuccessContent(
MicrodepositVerificationMethod.DESCRIPTOR_CODE,
Expand All @@ -316,9 +322,12 @@ internal fun ManualEntrySuccessScreenPreviewDescriptor() {
}
}

@Preview
@Preview(
group = "Manual Entry Success",
name = "Amount no account"
)
@Composable
internal fun ManualEntrySuccessScreenPreviewAmountNoAccount() {
internal fun ManualEntrySuccessAmountNoAccount() {
FinancialConnectionsPreview {
ManualEntrySuccessContent(
MicrodepositVerificationMethod.AMOUNTS,
Expand All @@ -329,9 +338,12 @@ internal fun ManualEntrySuccessScreenPreviewAmountNoAccount() {
}
}

@Preview
@Preview(
group = "Manual Entry Success",
name = "Descriptor no account"
)
@Composable
internal fun ManualEntrySuccessScreenPreviewDescriptorNoAccount() {
internal fun ManualEntrySuccessDescriptorNoAccount() {
FinancialConnectionsPreview {
ManualEntrySuccessContent(
MicrodepositVerificationMethod.DESCRIPTOR_CODE,
Expand Down
Loading

0 comments on commit 6a2da20

Please sign in to comment.