Skip to content

Commit 4909d5d

Browse files
LynxLynxxminikindamian-molinski
authored
fix(cat-voices): proposal view iteration order (#2148)
* feat: saving published document in local db * feat: stream with proper user proposal * feat: add query for fetching latest document version by ref and type in DocumentsDao * feat: remove unused back navigation from proposal builder action and cleanup imports in the proposal builder status action file * feat: integrate ProposalVersionInfoText for better display of proposal iteration details and streamline imports in the card widget * refactor: replace SignedDocumentRef with DocumentRef across multiple repositories and services for consistency and clarity * refactor: streamline proposal data handling by creating helper methods and improving data fetching logic in ProposalServiceImpl * test: enhance proposal service tests with additional mocks for proposal publish and comments count handling * refactor: improve document processing logic by consolidating async operations and adding a dedicated method for document handling * refactor: enhance document querying logic and streamline proposal data handling with improved filtering and error handling mechanisms * fix: iteration versioning order in document version * refactor: simplify proposal subscription setup and enhance document processing with better error handling and logging * test: adding tests --------- Co-authored-by: Oleksandr Prokhorenko <[email protected]> Co-authored-by: Damian Molinski <[email protected]>
1 parent 4648244 commit 4909d5d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/proposal/proposal_cubit.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ final class ProposalCubit extends Cubit<ProposalState>
240240
final proposalDocumentRef = proposalDocument?.metadata.selfRef;
241241

242242
final proposalVersions = proposal?.versions ?? const [];
243-
final versions = proposalVersions.mapIndexed((index, version) {
243+
final versions = proposalVersions.reversed.mapIndexed((index, version) {
244244
final ver = version.document.metadata.selfRef.version;
245245

246246
return DocumentVersion(

0 commit comments

Comments
 (0)