Skip to content

Commit 642075d

Browse files
committed
docs(architecture): update BLoC descriptions and add archived content BLoCs
- Update ContentManagementBloc description to mention archiving and pre-fetching - Add descriptions for ArchivedHeadlinesBloc, ArchivedTopicsBloc, and ArchivedSourcesBloc - Improve DashboardBloc description to mention summary statistics and recent headlines
1 parent 841e4ea commit 642075d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/content/docs/web-dashboard/architecture/state-management.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ The `AppBloc` is a high-level BLoC that is provided at the root of the applicati
2020
Each major feature or section of the dashboard has its own dedicated BLoC to manage its specific state. This keeps the logic for each feature encapsulated and independent.
2121

2222
- **`DashboardBloc`:** Responsible for fetching and holding the dashboard summary statistics and the list of recent headlines.
23-
- **`ContentManagementBloc`:** Manages the state for the three content tabs (Headlines, Topics, Sources), including loading, paginating, and deleting content.
23+
- **`ContentManagementBloc`:** Manages the state for the three content tabs (Headlines, Topics, Sources), including loading, paginating, and archiving content. It is also responsible for pre-fetching and caching shared data like the full list of countries and languages, which are then consumed by the create/edit BLoCs.
24+
- **`ArchivedHeadlinesBloc`, `ArchivedTopicsBloc`, `ArchivedSourcesBloc`:** Each of these BLoCs is responsible for managing the state of its respective archived content page, including loading, restoring, and permanently deleting items.
2425
- **`AppConfigurationBloc`:** Manages the state of the remote configuration form, tracking user edits, handling save operations, and managing the "dirty" state of the form.
2526
- **`AuthenticationBloc`:** Manages the state of the sign-in flow, such as handling loading states when a code is requested or verified.
2627
- **`SettingsBloc`:** Manages the state of the settings page, loading the user's current settings and processing update events.

0 commit comments

Comments
 (0)