Skip to content

Commit

Permalink
fix: remove user test (#1546)
Browse files Browse the repository at this point in the history
* fix: remove user test

* Update
  • Loading branch information
ppupha authored Feb 28, 2024
1 parent a9b1bd6 commit 6e2a736
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 172 deletions.
8 changes: 0 additions & 8 deletions lib/screen/app_router.dart
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@ import 'package:autonomy_flutter/screen/onboarding/view_address/name_view_only_p
import 'package:autonomy_flutter/screen/onboarding/view_address/view_existing_address.dart';
import 'package:autonomy_flutter/screen/onboarding/view_address/view_existing_address_bloc.dart';
import 'package:autonomy_flutter/screen/onboarding_page.dart';
import 'package:autonomy_flutter/screen/participate_user_test_page.dart';
import 'package:autonomy_flutter/screen/playlists/add_new_playlist/add_new_playlist.dart';
import 'package:autonomy_flutter/screen/playlists/add_to_playlist/add_to_playlist.dart';
import 'package:autonomy_flutter/screen/playlists/edit_playlist/edit_playlist.dart';
Expand Down Expand Up @@ -177,7 +176,6 @@ class AppRouter {
static const merchOrdersPage = 'merchOrderDetailPage';
static const supportThreadPage = 'supportThreadPage';
static const bugBountyPage = 'bugBountyPage';
static const participateUserTestPage = 'participateUserTestPage';
static const keySyncPage = 'key_sync_page';
static const githubDocPage = 'github_doc_page';
static const sendArtworkPage = 'send_artwork_page';
Expand Down Expand Up @@ -828,12 +826,6 @@ class AppRouter {
return CupertinoPageRoute(
settings: settings, builder: (context) => const BugBountyPage());

case participateUserTestPage:
return CupertinoPageRoute(
settings: settings,
builder: (context) => ParticipateUserTestPage(
payload: settings.arguments! as UserTestPayload));

case hiddenArtworksPage:
return CupertinoPageRoute(
settings: settings,
Expand Down
135 changes: 0 additions & 135 deletions lib/screen/participate_user_test_page.dart

This file was deleted.

28 changes: 0 additions & 28 deletions lib/screen/settings/help_us/help_us_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,7 @@
// that can be found in the LICENSE file.
//

import 'dart:async';
import 'dart:convert';

import 'package:autonomy_flutter/common/injector.dart';
import 'package:autonomy_flutter/gateway/pubdoc_api.dart';
import 'package:autonomy_flutter/screen/app_router.dart';
import 'package:autonomy_flutter/screen/participate_user_test_page.dart';
import 'package:autonomy_flutter/util/style.dart';
import 'package:autonomy_flutter/view/back_appbar.dart';
import 'package:autonomy_flutter/view/responsive.dart';
Expand All @@ -28,20 +22,9 @@ class HelpUsPage extends StatefulWidget {
}

class _HelpUsPageState extends State<HelpUsPage> {
String? _calendarLink;

@override
void initState() {
super.initState();
unawaited(_getCalendarLink());
}

Future<void> _getCalendarLink() async {
final data = await injector<PubdocAPI>().getUserTestConfigs();
final configs = jsonDecode(data) as Map<String, dynamic>;
setState(() {
_calendarLink = configs['calendar_link'];
});
}

@override
Expand All @@ -65,17 +48,6 @@ class _HelpUsPageState extends State<HelpUsPage> {
onTap: () async => Navigator.of(context)
.pushNamed(AppRouter.bugBountyPage)),
),
addOnlyDivider(),
if (_calendarLink != null && _calendarLink!.isNotEmpty)
Padding(
padding: padding,
child: TappableForwardRow(
leftWidget: Text('p_user_test'.tr(),
style: theme.textTheme.ppMori400Black16),
onTap: () async => Navigator.of(context).pushNamed(
AppRouter.participateUserTestPage,
arguments: UserTestPayload(_calendarLink!))),
),
]
// END HELP US IMPROVE
)
Expand Down
2 changes: 1 addition & 1 deletion lib/screen/settings/settings_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ class _SettingsPageState extends State<SettingsPage>
icon: const Icon(AuIcon.help_us),
onTap: () async {
await Navigator.of(context)
.pushNamed(AppRouter.helpUsPage);
.pushNamed(AppRouter.bugBountyPage);
},
),
addOnlyDivider(),
Expand Down

0 comments on commit 6e2a736

Please sign in to comment.