mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
feat: settings my account (#5223)
* feat: my account settings page * test: amend tests * chore: remove unused code * test: remove widget tests * fix: text color on select buttons * test: clean and remove unused test helpers * test: fix test after refactor
This commit is contained in:
@ -1,16 +0,0 @@
|
||||
import 'package:appflowy_backend/dispatch/dispatch.dart';
|
||||
import 'package:appflowy_backend/protobuf/flowy-database2/database_entities.pb.dart';
|
||||
import 'package:appflowy_backend/protobuf/flowy-error/errors.pb.dart';
|
||||
import 'package:appflowy_result/appflowy_result.dart';
|
||||
|
||||
class DatabaseBackendService {
|
||||
static Future<FlowyResult<List<DatabaseMetaPB>, FlowyError>>
|
||||
getAllDatabases() {
|
||||
return DatabaseEventGetDatabases().send().then((result) {
|
||||
return result.fold(
|
||||
(l) => FlowyResult.success(l.items),
|
||||
(r) => FlowyResult.failure(r),
|
||||
);
|
||||
});
|
||||
}
|
||||
}
|
@ -8,8 +8,6 @@ import 'package:appflowy_backend/protobuf/flowy-error/errors.pb.dart';
|
||||
import 'package:appflowy_result/appflowy_result.dart';
|
||||
import 'package:flowy_infra/notifier.dart';
|
||||
|
||||
typedef GroupConfigurationUpdateValue
|
||||
= FlowyResult<List<GroupSettingPB>, FlowyError>;
|
||||
typedef GroupUpdateValue = FlowyResult<GroupChangesPB, FlowyError>;
|
||||
typedef GroupByNewFieldValue = FlowyResult<List<GroupPB>, FlowyError>;
|
||||
|
||||
|
Reference in New Issue
Block a user