Commit 5bf67f6
feat(cat-voices): voting space (#3648)
* docs: capture initial times
* chore: remove cacheDocument
* turn off logging
* chore: use debugPrint instead of logger
* feat: bulk documents save
* batching sync
* chore: move exact ref resoling to getDocumentData instead of index
* fix: DocumentRepository
* chore: simplify getting documents data
* remove getAllDocumentsRefs and getCachedDocumentsRefs from DocumentRepository. Index is only available in DocumentDataRemoteSource
* chore: update docs
* simplified document index endpoint
* remove randomness from LocalCatGateway
* indexing by batch size
* wip: filtering by types
* Rework filtering refs + checking all refs if already cached in parallel
* docs
* update indexing.csv
* update indexing csv
* chore: cleanup
* trailing new line
* chore
* move performance tab to docs
* bulk saving typed docs in parallel
* chore: revert hardcoded timestamp
* chore: typos
* split _sync into smaller functions + add documentation
* little refactor
* fix: analyzer
* initial v2 tables
* wip
* wip
* feat: database migration
* chore: cleanup
* bump batch size
* cleanup
* chore: remove defensive content decoding
* chore: daos
* spelling
* saveAll
* test on platform
* chore: update build scripts
* feat: DocumentsV2Dao methods
* simple proposals pagination query
* chore: create a JoinedProposalBriefEntity
* rename method
* feat: exclude hidden proposals
* more tests
* renaming and splitting logic into smaller parts
* feat: per language strategy
* remove CatalystDatabaseLanguage in favor of raw queries as they are easier to mange
* remove Index Strategy Documentation
* handle case where ref is empty
* migration now includes indexes
* use v2 documents table for saveAll and isCachedBulk
* adds ActionType to JoinedProposalBriefEntity
* adds versionIds to JoinedProposalBriefEntity
* comments count
* adds isFavorite to JoinedProposalBriefEntity
* add template to JoinedProposalBriefEntity
* adds documentsLocalMetadata table for auto updates
* Update docs
* use v2 proposals query for discovery most recent section
* feat: simplify most recent proposals section
* add proposal fav status for v2 tables
* local proposal fav status update
* update fav state locally for faster feedback
* self review
* fix tests
* update times
* fix: analyzer
* more migration test data
* clean up constructors
* cleanup
* fix: template tests
* spelling
* fix: spelling
* chore: PR review adjustments
* add order parameter
* ProposalsOrder docs
* GetProposalsBriefPage supports order
* add filters object
* proposalsBriefPage filtering
* fix: status filtering
* more draft proposals filtering tests
* Campaign proposals filter
* update docs
* expose getVisibleProposalsCount and tests
* expose filters parameter
* integrate proposals page with v2 queries
* chore: increase time diff between proposals
* chore: reduce count query tables watched when not needed
* local proposals cubit
* local proposal fav staus update
* docs
* fix: add discovery specific colors (#3637)
* fix code-generator earthly target
* use logger in migration + wrap in transaction
* spelling
* wip
* rename category to categoryId for better consistency
* adding vote data to ProposalBriefData
* fix: dependencies
* voting page + cubit integration - wip
* proposals per tab selector
* release completed in close
* extract early return logic into function
* Voting tabs selector + releasing completer on close
* move spaces blocs to shell page level
* fix: voting in grid view
* dummy voting integration
* chore: remove showComments
* docs: ProposalOrDocument
---------
Co-authored-by: Ryszard Schossler <[email protected]>1 parent 0ce951e commit 5bf67f6
File tree
36 files changed
+716
-609
lines changed- catalyst_voices
- apps/voices/lib
- app/view
- dependency
- pages
- discovery/sections/most_recent_proposals/widgets
- spaces
- voting
- widgets
- content
- grid
- header
- routes/routing
- widgets/cards/proposal
- packages/internal
- catalyst_voices_blocs/lib/src
- discovery
- voting
- catalyst_voices_models/lib/src
- campaign/constant
- proposals
- proposal
- data
- voting
- catalyst_voices_repositories/lib/src
- database/dao
- document/source
- proposal
- catalyst_voices_services
- lib/src/proposal
- test/src/proposal
- catalyst_voices_view_models/lib/src
- proposal
- voting
36 files changed
+716
-609
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | 50 | | |
54 | 51 | | |
55 | 52 | | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | 53 | | |
63 | 54 | | |
64 | 55 | | |
| |||
Lines changed: 6 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
123 | | - | |
| 123 | + | |
124 | 124 | | |
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
128 | | - | |
129 | | - | |
130 | 128 | | |
131 | 129 | | |
132 | 130 | | |
| |||
400 | 398 | | |
401 | 399 | | |
402 | 400 | | |
| 401 | + | |
403 | 402 | | |
404 | 403 | | |
405 | 404 | | |
| |||
536 | 535 | | |
537 | 536 | | |
538 | 537 | | |
539 | | - | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
540 | 542 | | |
541 | 543 | | |
542 | 544 | | |
| |||
Lines changed: 0 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
27 | 26 | | |
28 | 27 | | |
29 | 28 | | |
| |||
32 | 31 | | |
33 | 32 | | |
34 | 33 | | |
35 | | - | |
36 | 34 | | |
37 | 35 | | |
38 | 36 | | |
39 | 37 | | |
40 | | - | |
41 | 38 | | |
42 | 39 | | |
43 | 40 | | |
| |||
58 | 55 | | |
59 | 56 | | |
60 | 57 | | |
61 | | - | |
62 | 58 | | |
63 | 59 | | |
64 | 60 | | |
| |||
Lines changed: 30 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
Lines changed: 36 additions & 39 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
65 | 66 | | |
66 | 67 | | |
67 | 68 | | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
83 | 104 | | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | 105 | | |
103 | 106 | | |
104 | 107 | | |
| |||
120 | 123 | | |
121 | 124 | | |
122 | 125 | | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | 126 | | |
130 | 127 | | |
131 | 128 | | |
| |||
Lines changed: 9 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
| 41 | + | |
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
81 | | - | |
82 | | - | |
83 | | - | |
| 81 | + | |
| 82 | + | |
84 | 83 | | |
85 | 84 | | |
86 | 85 | | |
| |||
103 | 102 | | |
104 | 103 | | |
105 | 104 | | |
106 | | - | |
| 105 | + | |
107 | 106 | | |
108 | 107 | | |
109 | 108 | | |
| |||
146 | 145 | | |
147 | 146 | | |
148 | 147 | | |
149 | | - | |
150 | | - | |
151 | | - | |
| 148 | + | |
| 149 | + | |
152 | 150 | | |
153 | 151 | | |
154 | 152 | | |
| |||
181 | 179 | | |
182 | 180 | | |
183 | 181 | | |
184 | | - | |
| 182 | + | |
185 | 183 | | |
186 | 184 | | |
187 | 185 | | |
| |||
192 | 190 | | |
193 | 191 | | |
194 | 192 | | |
195 | | - | |
| 193 | + | |
196 | 194 | | |
197 | 195 | | |
198 | 196 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
Lines changed: 6 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
28 | | - | |
29 | | - | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
30 | 32 | | |
31 | 33 | | |
32 | 34 | | |
| |||
38 | 40 | | |
39 | 41 | | |
40 | 42 | | |
41 | | - | |
42 | 43 | | |
43 | 44 | | |
44 | 45 | | |
0 commit comments