Skip to content
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

feat: group management main page entry at profile page #505

Open
wants to merge 1 commit into
base: development
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions assets/i18n/strings.i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,8 @@
"description": "Please log in to write notices and leave reactions.",
"action": "Login"
},
"groups": "Group",
"myGroups": "My Groups",
"setting": {
"title": "Setting",
"notification": {
Expand Down
2 changes: 2 additions & 0 deletions assets/i18n/strings_jp.i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,8 @@
"description": "お知らせを作成し、リアクションを残すにはログインしてください。",
"action": "ログイン"
},
"groups": "グループ",
"myGroups": "マイグループ",
"setting": {
"title": "設定",
"notification": {
Expand Down
2 changes: 2 additions & 0 deletions assets/i18n/strings_ko.i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,8 @@
"description": "공지를 작성하고, 반응을 남기려면 로그인해주세요.",
"action": "로그인하기"
},
"groups": "그룹",
"myGroups": "내가 속한 그룹들",
"setting": {
"title": "설정",
"notification": {
Expand Down
2 changes: 2 additions & 0 deletions assets/i18n/strings_ru.i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,8 @@
"description": "Пожалуйста, войдите, чтобы писать уведомления и оставлять реакции.",
"action": "Войти"
},
"groups": "Группа",
"myGroups": "Мои группы",
"setting": {
"title": "Настройки",
"notification": {
Expand Down
7 changes: 7 additions & 0 deletions assets/icons/color-filter.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions lib/app/modules/core/data/models/analytics_event.dart
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ class AnalyticsEvent with _$AnalyticsEvent {
const factory AnalyticsEvent.profileLogout(PageSource from) = _ProfileLogout;
const factory AnalyticsEvent.profileWithdraw() = _ProfileWithdraw;
const factory AnalyticsEvent.profileLogin(PageSource from) = _ProfileLogin;
const factory AnalyticsEvent.profileGroup() = _ProfileGroup;
dawnfire05 marked this conversation as resolved.
Show resolved Hide resolved
const factory AnalyticsEvent.profileSettingEnableNotification() =
_ProfileSettingEnableNotification;
const factory AnalyticsEvent.profileSettingLanguage(AppLocale lang) =
Expand Down
13 changes: 12 additions & 1 deletion lib/app/modules/user/presentation/pages/profile_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,18 @@ class _Layout extends StatelessWidget {
],
),
),
const SizedBox(height: 40),
SizedBox(height: 40),
if (authenticated) ...[
ZiggleRowButton(
icon: Assets.icons.colorFilter.svg(),
title: Text(context.t.user.groups),
onPressed: () {
AnalyticsRepository.click(AnalyticsEvent.profileGroup());
GroupManagementMainRoute().push(context);
},
),
const SizedBox(height: 20),
],
ZiggleRowButton(
icon: Assets.icons.setting.svg(),
title: Text(context.t.user.setting.title),
Expand Down
4 changes: 4 additions & 0 deletions lib/app/router.dart
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,10 @@ class AppRouter extends RootStackRouter {
],
),
AutoRoute(path: '/search', page: SearchRoute.page),
AutoRoute(
path: '/group/managementMain',
page: GroupManagementMainRoute.page,
),
AutoRoute(
path: '/group/create',
page: GroupCreationShellRoute.page,
Expand Down
Loading