Skip to content

Commit

Permalink
Additional moderator actions and post action bottom sheet redesign (t…
Browse files Browse the repository at this point in the history
…hunder-app#1567)

* refactor: refactor post bottom sheet actions

* refactor: add post actions, fix some actions not triggering

* feat: fix post submenu showing for guest accounts, add localizations for user actions, general code cleanup

* lint: add comments, remove unnecessary code

* lint: add additional localization strings, comment unused code

* feat: add language metadata to post actions bottom sheet

* feat: bring back post action callbacks

* fix: banning user from community, subscribed state for community

* fix: unable to edit posts from bottom sheet action
  • Loading branch information
hjiangsu authored Oct 18, 2024
1 parent 335604b commit 037d624
Show file tree
Hide file tree
Showing 23 changed files with 2,093 additions and 1,000 deletions.
2 changes: 1 addition & 1 deletion lib/comment/view/create_comment_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import 'package:thunder/account/models/draft.dart';

// Project imports
import 'package:thunder/comment/cubit/create_comment_cubit.dart';
import 'package:thunder/community/utils/post_card_action_helpers.dart';
import 'package:thunder/post/widgets/post_action_bottom_sheet.dart';
import 'package:thunder/core/auth/bloc/auth_bloc.dart';
import 'package:thunder/core/models/post_view_media.dart';
import 'package:thunder/drafts/draft_type.dart';
Expand Down
2 changes: 1 addition & 1 deletion lib/community/pages/create_post_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import 'package:markdown_editor/markdown_editor.dart';
import 'package:thunder/account/models/account.dart';
import 'package:thunder/account/models/draft.dart';
import 'package:thunder/community/bloc/image_bloc.dart';
import 'package:thunder/community/utils/post_card_action_helpers.dart';
import 'package:thunder/post/widgets/post_action_bottom_sheet.dart';
import 'package:thunder/core/auth/bloc/auth_bloc.dart';
import 'package:thunder/core/auth/helpers/fetch_account.dart';
import 'package:thunder/core/enums/view_mode.dart';
Expand Down
Loading

0 comments on commit 037d624

Please sign in to comment.