chore: 更新主题、反馈页面和测试用例
- 更新 App 主题配置 - 优化反馈页面 - 更新认证和通知测试用例
This commit is contained in:
@@ -21,6 +21,8 @@ class _FakeAuthRepository implements AuthRepository {
|
||||
Future<AuthUser> loginWithEmailOtp({
|
||||
required String email,
|
||||
required String otp,
|
||||
String? language,
|
||||
String? timezone,
|
||||
}) async {
|
||||
return AuthUser(id: 'u1', email: email);
|
||||
}
|
||||
|
||||
@@ -17,6 +17,7 @@ class _FakeNotificationRepository implements NotificationRepository {
|
||||
Future<NotificationListResult> listNotifications({
|
||||
int limit = 20,
|
||||
String? cursor,
|
||||
String locale = 'zh',
|
||||
}) async {
|
||||
return NotificationListResult(
|
||||
items: items,
|
||||
@@ -29,7 +30,10 @@ class _FakeNotificationRepository implements NotificationRepository {
|
||||
Future<int> getUnreadCount() async => unreadCount;
|
||||
|
||||
@override
|
||||
Future<NotificationItem> markRead({required String notificationId}) async {
|
||||
Future<NotificationItem> markRead({
|
||||
required String notificationId,
|
||||
String locale = 'zh',
|
||||
}) async {
|
||||
if (failMarkRead) {
|
||||
throw Exception('Mark read failed');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user