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:
Richard Shiue
2023-10-26 11:48:58 +08:00
committed by GitHub
parent 1883dd6d7c
commit 8c3984d21a
31 changed files with 895 additions and 118 deletions

View File

@ -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(

View File

@ -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();

View File

@ -78,6 +78,8 @@ class BoardTestContext {
return _boardDataController.fieldController;
}
DatabaseController get databaseController => _boardDataController;
FieldEditorBloc makeFieldEditor({
required FieldInfo fieldInfo,
}) {