Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: remove user test #1546

Merged
merged 2 commits into from
Feb 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions lib/screen/app_router.dart
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,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 @@ -178,7 +177,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 @@ -820,12 +818,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
Loading