From fac636a7b54f869ac8a1923943d73a6d335e9bdf Mon Sep 17 00:00:00 2001 From: hawkbee1 Date: Thu, 30 May 2024 09:22:37 +0000 Subject: [PATCH] REmove what's new #2697 --- lib/dashboard/src/view/dashboard_page.dart | 6 - .../src/widgets/what_is_new_dialog.dart | 340 ------------------ lib/dashboard/src/widgets/widgets.dart | 1 - .../cubit/import_wallet_cubit.dart | 3 - .../helper_function/helper_function.dart | 3 - lib/splash/cubit/splash_cubit.dart | 9 - 6 files changed, 362 deletions(-) delete mode 100644 lib/dashboard/src/widgets/what_is_new_dialog.dart diff --git a/lib/dashboard/src/view/dashboard_page.dart b/lib/dashboard/src/view/dashboard_page.dart index e5a8957f7..6963197aa 100644 --- a/lib/dashboard/src/view/dashboard_page.dart +++ b/lib/dashboard/src/view/dashboard_page.dart @@ -45,12 +45,6 @@ class _DashboardViewState extends State { context.read().deepLink(); context.read().startBeacon(); - final splashCubit = context.read(); - if (splashCubit.state.isNewVersion) { - WhatIsNewDialog.show(context); - splashCubit.disableWhatsNewPopUp(); - } - // check if enterprise account is suspended or not if (context.read().state.model.profileType == ProfileType.enterprise) { diff --git a/lib/dashboard/src/widgets/what_is_new_dialog.dart b/lib/dashboard/src/widgets/what_is_new_dialog.dart deleted file mode 100644 index 0cebf88c4..000000000 --- a/lib/dashboard/src/widgets/what_is_new_dialog.dart +++ /dev/null @@ -1,340 +0,0 @@ -// ignore_for_file: lines_longer_than_80_chars - -import 'package:altme/app/app.dart'; -import 'package:altme/dashboard/dashboard.dart'; -import 'package:altme/l10n/l10n.dart'; -import 'package:altme/splash/splash.dart'; -import 'package:altme/theme/theme.dart'; -import 'package:flutter/material.dart'; -import 'package:flutter_bloc/flutter_bloc.dart'; - -class WhatIsNewDialog extends StatelessWidget { - const WhatIsNewDialog({ - super.key, - }); - - static void show(BuildContext context) { - showDialog( - context: context, - useSafeArea: true, - builder: (_) => const WhatIsNewDialog(), - ); - } - - @override - Widget build(BuildContext context) { - final splashCubit = context.read(); - final versionNumber = splashCubit.state.versionNumber; - - final l10n = context.l10n; - - return SafeArea( - child: AlertDialog( - backgroundColor: Theme.of(context).colorScheme.popupBackground, - surfaceTintColor: Colors.transparent, - contentPadding: const EdgeInsets.all(Sizes.spaceXSmall), - insetPadding: const EdgeInsets.symmetric( - horizontal: Sizes.spaceSmall, - vertical: Sizes.spaceSmall, - ), - shape: const RoundedRectangleBorder( - borderRadius: BorderRadius.all( - Radius.circular(Sizes.normalRadius), - ), - ), - content: SizedBox( - width: double.maxFinite, - child: Stack( - children: [ - Column( - mainAxisSize: MainAxisSize.min, - children: [ - const SizedBox(height: Sizes.spaceSmall), - Expanded( - child: SingleChildScrollView( - child: Padding( - padding: const EdgeInsets.only( - left: Sizes.spaceNormal, - right: Sizes.spaceXLarge, - ), - child: Column( - children: [ - WalletLogo( - profileModel: - context.read().state.model, - height: Sizes.logoLarge * 1.05, - width: MediaQuery.of(context).size.shortestSide * - 0.5, - showPoweredBy: true, - ), - Text( - l10n.whatsNew, - style: Theme.of(context) - .textTheme - .defaultDialogTitle - .copyWith( - color: Colors.white, - ), - textAlign: TextAlign.center, - ), - NewContent( - version: versionNumber, - features: const [ - 'Improve Enterprise Wallet', - 'User experience improvement', - 'Bug fixes', - ], - ), - const NewContent( - version: '2.0.8', - features: [ - 'New Enterprise Wallet mode', - 'Upload Enterprise Wallet profiles', - 'Suspension/Revocation of wallet instances', - 'Support of Decentralized Identity Interop Profile (DIIP OIDC4VC profile)', - 'Attestation based client authentication (RFC7521)', - '2FA (biometric + PIN code)', - 'Bug fixes', - ], - ), - const NewContent( - version: '1.25.2', - features: [ - 'Developer mode improvement', - 'OIDC4VCI improvement', - 'Update code licenses', - 'Bug correction', - ], - ), - const NewContent( - version: '1.23.0', - features: [ - 'Developer mode improvement', - 'Bug correction', - ], - ), - const NewContent( - version: '1.21.8', - features: [ - 'Developper mode', - 'New splash screen', - 'extended OIDC4VC options', - ], - ), - const NewContent( - version: '1.20.18', - features: [ - 'Wallet connect V2 integration', - 'Bug fixes', - ], - ), - const NewContent( - version: '1.16.2', - features: [ - 'PolygonID mainnet integration', - 'PolygonID Twitter Attestations through Clique.Social', - 'DeFi compliance SBT for BNB Chain', - 'Bug fixes', - ], - ), - const NewContent( - version: '1.15.0', - features: [ - 'New cards designs', - 'Robust KYC solution (ID360) by Docaposte', - 'PolygonID integration for ZKP credentials', - 'New DeFi compliance credential', - 'New feature to add an identity layer to any crypto wallet', - 'New discover coins section in Altme', - 'Bug fixes', - ], - ), - const NewContent( - version: '1.13.24', - features: [ - 'Improved user experience', - 'New questions in FAQ', - 'New age card Over15', - 'End to end encryption of chat', - 'Check verifiable data registry for EBSI protocol', - ], - ), - const NewContent( - version: '1.12.4', - features: [ - 'Resolved wallet certificate generation issue.', - ], - ), - const NewContent( - version: '1.12.3', - features: [ - 'Resolved KYC stability issues.', - 'Integrated live chat support for partners with loyalty cards', - 'Expanded "Discover" section with the addition of Bloometa card', - 'Enhanced credential backup reliability on some devices', - 'Optimized help center layout and user experience', - ], - ), - const NewContent( - version: '1.11.4', - features: [ - 'Improve onboarding experience', - 'Add confirmation of recovery phrase', - 'Improve popup design', - 'Update SIOPV2 flow', - 'Add deeplink for EBSI credentials', - ], - ), - const NewContent( - version: '1.10.5', - features: [ - 'End to end encryption of decentralized chat in Altme', - 'Specific design for EBSI diploma card', - ], - ), - const NewContent( - version: '1.9.9', - features: [ - 'Integration of Matrix.org to give users access to a decentralized chat in Altme', - 'Compliance with EBSI and support of new official ID documents (diplomas...)', - ], - ), - const NewContent( - version: '1.8.13', - features: [ - 'Integration of an on-ramp solution to buy crypto', - 'New features : Help center', - 'New wallet certificate credential', - ], - ), - const NewContent( - version: '1.7.6', - features: [ - 'Bug correction', - ], - ), - const NewContent( - version: '1.7.5', - features: [ - 'New Chainborn gaming membership card', - 'Credential manifest input descriptors update', - 'Beacon pairing improvement', - ], - ), - const NewContent( - version: '1.7.1', - features: [ - 'Improve compatibility with more wallets', - 'Update Altme’s privacy, terms and conditions', - 'Update NFT detail screen information', - 'New category for Professional credentials', - ], - ), - const NewContent( - version: '1.6.5', - features: [ - 'Bug correction', - ], - ), - const NewContent( - version: '1.6.3', - features: [ - 'Support SBT (Soulbound Tokens)', - 'New Drawer', - 'New Device Info credential', - 'Bug fix', - ], - ), - const NewContent( - version: '1.5.7', - features: ['Upgrade Beacon behavior'], - ), - const NewContent( - version: '1.5.6', - features: [ - 'Age range with Al as 551 issuer', - 'Al issuer optimization', - ], - ), - const NewContent( - version: '1.5.1', - features: [ - 'Al verification to get Over13 and Over18 pass', - 'Ethereum support', - 'Privacy and terms update', - 'Enforced security', - 'User experience improvements', - ], - ), - const NewContent( - version: '1.4.8', - features: [ - 'Add Tezotopia membership card in Discover', - 'Update design of credentials', - ], - ), - const NewContent( - version: '1.4.4', - features: [ - 'Add the possibility to SEND an NFT to tezos blockchain address', - 'Improvements of user experience', - ], - ), - const NewContent( - version: '1.4.1', - features: ['New feature : NFT display in wallet'], - ), - const NewContent( - version: '1.3.7', - features: [ - 'FA1.2 and FA2 token support', - 'Beacon integration to connect to Tezos dApps', - 'Get multiple identity credentials after identity verification (OpenID for VC Issuance)', - 'Choose card categories to display', - 'New cards design', - 'Nationality card', - 'Age range card', - 'Liveness test', - 'Display card and token history', - ], - ), - const NewContent( - version: '1.1.0', - features: [ - 'USD value of tokens', - 'Multiple credentials presentation', - 'Wording', - 'Bug correction', - ], - ), - const SizedBox(height: Sizes.spaceSmall), - ], - ), - ), - ), - ), - Padding( - padding: const EdgeInsets.all(Sizes.spaceNormal), - child: MyGradientButton( - text: l10n.okGotIt, - verticalSpacing: 16, - fontSize: 18, - borderRadius: Sizes.normalRadius, - onPressed: () { - Navigator.of(context).pop(); - }, - ), - ), - ], - ), - const Align( - alignment: Alignment.topRight, - child: WhiteCloseButton(), - ), - ], - ), - ), - ), - ); - } -} diff --git a/lib/dashboard/src/widgets/widgets.dart b/lib/dashboard/src/widgets/widgets.dart index f4e1e3918..562aabaf7 100644 --- a/lib/dashboard/src/widgets/widgets.dart +++ b/lib/dashboard/src/widgets/widgets.dart @@ -2,4 +2,3 @@ export 'bottom_bar_decoration.dart'; export 'bottom_bar_item.dart'; export 'home_title_leading.dart'; export 'new_content.dart'; -export 'what_is_new_dialog.dart'; diff --git a/lib/import_wallet/cubit/import_wallet_cubit.dart b/lib/import_wallet/cubit/import_wallet_cubit.dart index 978faa6bd..215603bb6 100644 --- a/lib/import_wallet/cubit/import_wallet_cubit.dart +++ b/lib/import_wallet/cubit/import_wallet_cubit.dart @@ -89,9 +89,6 @@ class ImportWalletCubit extends Cubit { await secureStorageProvider.set(SecureStorageKeys.ssiKey, ssiKey); } - /// what's new popup disabled - splashCubit.disableWhatsNewPopUp(); - /// crypto wallet with unknown blockchain type await walletCubit.createCryptoWallet( accountName: accountName, diff --git a/lib/onboarding/helper_function/helper_function.dart b/lib/onboarding/helper_function/helper_function.dart index e73712bde..f2c6585a7 100644 --- a/lib/onboarding/helper_function/helper_function.dart +++ b/lib/onboarding/helper_function/helper_function.dart @@ -36,9 +36,6 @@ Future generateAccount({ /// create profile await profileCubit.load(); - /// what's new popup disabled - splashCubit.disableWhatsNewPopUp(); - /// crypto wallet await walletCubit.createCryptoWallet( mnemonicOrKey: mnemonicFormatted, diff --git a/lib/splash/cubit/splash_cubit.dart b/lib/splash/cubit/splash_cubit.dart index 66330314c..b3e5835a0 100644 --- a/lib/splash/cubit/splash_cubit.dart +++ b/lib/splash/cubit/splash_cubit.dart @@ -109,13 +109,4 @@ class SplashCubit extends Cubit { ), ); } - - void disableWhatsNewPopUp() { - emit( - state.copyWith( - isNewVersion: false, - status: SplashStatus.idle, - ), - ); - } }