-
Notifications
You must be signed in to change notification settings - Fork 9
feat(cat-voices): workspace filtering and tabs #3765
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 14 commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
c8cbda2
feat: adding translations
LynxLynxx 0c25a09
chore: update workspace page
LynxLynxx 32ff252
chore: update user proposals
LynxLynxx ed57dd1
feat: workspace proposal filter
LynxLynxx edccfe4
chore: adding new implemention of proposal brief
LynxLynxx 9d9032b
feat: workspace proposal tab
LynxLynxx 747407a
feat: adding new proposal invites
LynxLynxx baab7bb
chore: move widgets in widget dir
LynxLynxx 559e84a
feat: adding empty state for proposal invites
LynxLynxx 091332a
feat: updating filters
LynxLynxx 0a51806
feat: updating filters options
LynxLynxx d13a917
Merge branch 'feat/co-proposers-3677' into feat/workspace-tabs-3692
LynxLynxx d872aa6
feat: proposal invites count
LynxLynxx ff077da
fix: spelling
LynxLynxx 2708a3a
chore: review update
LynxLynxx edd8c60
merge
LynxLynxx 4552070
feat: adding new options to filters and brief data
LynxLynxx f169d34
feat(cat-voices): Using new stream source for WorkspaceBloc (#3785)
LynxLynxx 6c0d623
merge with co-proposers
LynxLynxx d67e018
fix: format
LynxLynxx File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 0 additions & 20 deletions
20
catalyst_voices/apps/voices/lib/pages/workspace/page/workspace_user_proposals.dart
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
.../workspace/header/workspace_timeline.dart → ...ce/widgets/header/workspace_timeline.dart
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
61 changes: 61 additions & 0 deletions
61
...ices/lib/pages/workspace/widgets/user_proposal_invites/user_proposal_invites_section.dart
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,61 @@ | ||
| import 'package:catalyst_voices/common/ext/build_context_ext.dart'; | ||
| import 'package:catalyst_voices/widgets/empty_state/empty_state.dart'; | ||
| import 'package:catalyst_voices/widgets/images/voices_image_scheme.dart'; | ||
| import 'package:catalyst_voices_assets/catalyst_voices_assets.dart'; | ||
| import 'package:catalyst_voices_blocs/catalyst_voices_blocs.dart'; | ||
| import 'package:catalyst_voices_localization/catalyst_voices_localization.dart'; | ||
| import 'package:catalyst_voices_view_models/catalyst_voices_view_models.dart'; | ||
| import 'package:flutter/material.dart'; | ||
|
|
||
| class UserProposalInvitesSection extends StatelessWidget { | ||
| const UserProposalInvitesSection({super.key}); | ||
|
|
||
| @override | ||
| Widget build(BuildContext context) { | ||
| return BlocSelector<WorkspaceBloc, WorkspaceState, UserProposalInvites>( | ||
| selector: (state) { | ||
| return state.userProposalInvites.pendingInvites; | ||
| }, | ||
| builder: (context, invites) { | ||
| return _PendingProposalInvites(invites: invites); | ||
| }, | ||
| ); | ||
| } | ||
| } | ||
|
|
||
| class _PendingProposalInvites extends StatelessWidget { | ||
| final UserProposalInvites invites; | ||
|
|
||
| const _PendingProposalInvites({required this.invites}); | ||
|
|
||
| @override | ||
| Widget build(BuildContext context) { | ||
| if (invites.items.isEmpty) { | ||
| return SliverToBoxAdapter( | ||
| child: EmptyState( | ||
| title: Text(context.l10n.noPendingInvitesMessage), | ||
| image: VoicesImagesScheme( | ||
| image: VoicesAssets.images.svg.noProposalForeground.buildPicture(), | ||
| background: Container( | ||
| height: 180, | ||
| decoration: BoxDecoration( | ||
| color: context.colors.onSurfaceNeutral08, | ||
| shape: BoxShape.circle, | ||
| ), | ||
| ), | ||
| ), | ||
| ), | ||
| ); | ||
| } | ||
dt-iohk marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| return SliverList.builder( | ||
| itemCount: invites.items.length, | ||
| itemBuilder: (context, index) { | ||
| // final item = invites.items[index]; | ||
|
|
||
| // TODO(LynxLynxx): Return invite widget | ||
| return const Text(''); | ||
| }, | ||
| ); | ||
| } | ||
| } | ||
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...user_proposals/user_proposal_section.dart → ...user_proposals/user_proposal_section.dart
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.