Skip to content

Commit 1d22916

Browse files
feat(cat-voices): Integrate proposals list - Part 1 (#2162)
* proposals tabs + category selector widget * feat: update url when category changes * feat: proposals type as query param * fix: full category name * refactor: split widgets into separate files * wip: proposals pagination part 1 * wip: Proposals filters model * feat: integrate fav * chore: add filters param to get proposals page request * chore: proposals types count * chore: moving classes and models around * wip: counting proposals * feat: counting final proposals * feat: favorites count * feat: my proposals count * chore: final proposals action helper * chore: mapping ref ver * chore: cleanup code * feat: count author search * feat: finish proposals count query * fix: melos flutter_rust_bridge version * fix: empty category name * chore: spelling * chore: remove dummy page request delay * chore: spelling * chore: make analyser happy * chore: make ProposalsSignal extend Equatable * refactor: little refactor of methods in ProposalDao * feat: emitting errors when fav change fails
1 parent 1a562df commit 1d22916

File tree

57 files changed

+2183
-1980
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+2183
-1980
lines changed

catalyst_voices/apps/voices/lib/dependency/dependencies.dart

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ final class Dependencies extends DependencyProvider {
7777
})
7878
..registerLazySingleton<ProposalsCubit>(
7979
() => ProposalsCubit(
80+
get<UserService>(),
8081
get<CampaignService>(),
8182
get<ProposalService>(),
8283
),
@@ -175,7 +176,7 @@ final class Dependencies extends DependencyProvider {
175176
get<CatalystDatabase>(),
176177
);
177178
})
178-
..registerLazySingleton<SignedDocumentDataSource>(() {
179+
..registerLazySingleton<DatabaseDocumentsDataSource>(() {
179180
return DatabaseDocumentsDataSource(
180181
get<CatalystDatabase>(),
181182
);
@@ -196,7 +197,7 @@ final class Dependencies extends DependencyProvider {
196197
..registerLazySingleton<DocumentRepository>(() {
197198
return DocumentRepository(
198199
get<DatabaseDraftsDataSource>(),
199-
get<SignedDocumentDataSource>(),
200+
get<DatabaseDocumentsDataSource>(),
200201
get<CatGatewayDocumentDataSource>(),
201202
get<DocumentFavoriteSource>(),
202203
);
@@ -206,6 +207,7 @@ final class Dependencies extends DependencyProvider {
206207
() => ProposalRepository(
207208
get<SignedDocumentManager>(),
208209
get<DocumentRepository>(),
210+
get<DatabaseDocumentsDataSource>(),
209211
),
210212
)
211213
..registerLazySingleton<CommentRepository>(

catalyst_voices/apps/voices/lib/pages/proposals/proposal_pagination_tabview.dart

Lines changed: 0 additions & 35 deletions
This file was deleted.

0 commit comments

Comments
 (0)