mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
feat: allow hiding ungrouped stack (#3752)
* feat: allow hiding ungrouped stack * chore: add notifications and listeners * chore: implement UI * fix: field info update * chore: more responsive notification * chore: read the right configurations * feat: add ungrouped button * fix: new board not getting isGroupField * feat: refresh the counter * fix: item count update * chore: apply code suggestions from Mathias * chore: yolo through tests * chore: UI fix * chore: code cleanup * chore: ungrouped item count fix * chore: same as above
This commit is contained in:
@ -35,7 +35,7 @@ void main() {
|
||||
final checkboxField = context.fieldContexts.last.field;
|
||||
final gridGroupBloc = DatabaseGroupBloc(
|
||||
viewId: context.gridView.id,
|
||||
fieldController: context.fieldController,
|
||||
databaseController: context.databaseController,
|
||||
)..add(const DatabaseGroupEvent.initial());
|
||||
gridGroupBloc.add(
|
||||
DatabaseGroupEvent.setGroupByField(
|
||||
|
@ -27,7 +27,7 @@ void main() {
|
||||
// set grouped by the new multi-select field"
|
||||
final gridGroupBloc = DatabaseGroupBloc(
|
||||
viewId: context.gridView.id,
|
||||
fieldController: context.fieldController,
|
||||
databaseController: context.databaseController,
|
||||
)..add(const DatabaseGroupEvent.initial());
|
||||
await boardResponseFuture();
|
||||
|
||||
@ -82,7 +82,7 @@ void main() {
|
||||
// set grouped by the new multi-select field"
|
||||
final gridGroupBloc = DatabaseGroupBloc(
|
||||
viewId: context.gridView.id,
|
||||
fieldController: context.fieldController,
|
||||
databaseController: context.databaseController,
|
||||
)..add(const DatabaseGroupEvent.initial());
|
||||
await boardResponseFuture();
|
||||
|
||||
|
@ -78,6 +78,8 @@ class BoardTestContext {
|
||||
return _boardDataController.fieldController;
|
||||
}
|
||||
|
||||
DatabaseController get databaseController => _boardDataController;
|
||||
|
||||
FieldEditorBloc makeFieldEditor({
|
||||
required FieldInfo fieldInfo,
|
||||
}) {
|
||||
|
Reference in New Issue
Block a user