Skip to content

Commit f1ad03e

Browse files
authored
chore: bump version 0.6.7 (#5949)
* chore: update collab version * chore: update changelog * chore: update notification reddot style * fix: unable to fetch reminders * chore: optimize notification red dot size
1 parent 17c9c9b commit f1ad03e

File tree

11 files changed

+129
-104
lines changed

11 files changed

+129
-104
lines changed

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,15 @@
11
# Release Notes
2+
## Version 0.6.7 - 13/08/2024
3+
### New Features
4+
- Redesigned the icon picker design on Desktop.
5+
- Redesigned the notification page on Mobile.
6+
7+
### Bug Fixes
8+
- Enhance the toolbar tooltip functionality on Desktop.
9+
- Enhance the slash menu user experience on Desktop.
10+
- Fixed the issue where list style overrides occurred during text pasting.
11+
- Fixed the issue where linking multiple databases in the same document could cause random loss of focus.
12+
213
## Version 0.6.6 - 30/07/2024
314
### New Features
415
- Upgrade your workspace to a premium plan to unlock more features and storage.

frontend/appflowy_flutter/lib/mobile/presentation/mobile_bottom_navigation_bar.dart

Lines changed: 6 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import 'package:appflowy/generated/flowy_svgs.g.dart';
44
import 'package:appflowy/generated/locale_keys.g.dart';
55
import 'package:appflowy/mobile/presentation/notifications/mobile_notifications_screen.dart';
66
import 'package:appflowy/mobile/presentation/widgets/navigation_bar_button.dart';
7+
import 'package:appflowy/shared/red_dot.dart';
78
import 'package:appflowy/startup/startup.dart';
89
import 'package:appflowy/user/application/reminder/reminder_bloc.dart';
910
import 'package:appflowy/util/theme_extension.dart';
@@ -162,7 +163,7 @@ class _NotificationNavigationBarItemIcon extends StatelessWidget {
162163
const Positioned(
163164
top: 2,
164165
right: 4,
165-
child: _RedDot(),
166+
child: NotificationRedDot(),
166167
),
167168
],
168169
);
@@ -172,25 +173,6 @@ class _NotificationNavigationBarItemIcon extends StatelessWidget {
172173
}
173174
}
174175

175-
class _RedDot extends StatelessWidget {
176-
const _RedDot();
177-
178-
@override
179-
Widget build(BuildContext context) {
180-
return Container(
181-
width: 6,
182-
height: 6,
183-
clipBehavior: Clip.antiAlias,
184-
decoration: ShapeDecoration(
185-
color: const Color(0xFFFF2214),
186-
shape: RoundedRectangleBorder(
187-
borderRadius: BorderRadius.circular(20),
188-
),
189-
),
190-
);
191-
}
192-
}
193-
194176
class _HomePageNavigationBar extends StatelessWidget {
195177
const _HomePageNavigationBar({
196178
required this.navigationShell,
@@ -230,11 +212,13 @@ class _HomePageNavigationBar extends StatelessWidget {
230212
/// Navigate to the current location of the branch at the provided index when
231213
/// tapping an item in the BottomNavigationBar.
232214
void _onTap(BuildContext context, int bottomBarIndex) {
233-
if (_items[bottomBarIndex].label == _addLabel) {
215+
final label = _items[bottomBarIndex].label;
216+
if (label == _addLabel) {
234217
// show an add dialog
235218
mobileCreateNewPageNotifier.value = ViewLayoutPB.Document;
236-
237219
return;
220+
} else if (label == _notificationLabel) {
221+
getIt<ReminderBloc>().add(const ReminderEvent.refresh());
238222
}
239223
// When navigating to a new branch, it's recommended to use the goBranch
240224
// method, as doing so makes sure the last navigation state of the
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
import 'package:flutter/widgets.dart';
2+
3+
class NotificationRedDot extends StatelessWidget {
4+
const NotificationRedDot({
5+
super.key,
6+
this.size = 6,
7+
});
8+
9+
final double size;
10+
11+
@override
12+
Widget build(BuildContext context) {
13+
return Container(
14+
width: size,
15+
height: size,
16+
clipBehavior: Clip.antiAlias,
17+
decoration: ShapeDecoration(
18+
color: const Color(0xFFFF2214),
19+
shape: RoundedRectangleBorder(
20+
borderRadius: BorderRadius.circular(20),
21+
),
22+
),
23+
);
24+
}
25+
}

frontend/appflowy_flutter/lib/workspace/presentation/notifications/widgets/notification_button.dart

Lines changed: 32 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
import 'package:appflowy/generated/flowy_svgs.g.dart';
22
import 'package:appflowy/generated/locale_keys.g.dart';
3+
import 'package:appflowy/shared/red_dot.dart';
34
import 'package:appflowy/startup/startup.dart';
45
import 'package:appflowy/user/application/reminder/reminder_bloc.dart';
56
import 'package:appflowy/workspace/application/menu/sidebar_sections_bloc.dart';
67
import 'package:appflowy/workspace/application/settings/notifications/notification_settings_cubit.dart';
78
import 'package:appflowy/workspace/presentation/notifications/notification_dialog.dart';
89
import 'package:appflowy_popover/appflowy_popover.dart';
910
import 'package:easy_localization/easy_localization.dart';
10-
import 'package:flowy_infra/theme_extension.dart';
1111
import 'package:flowy_infra_ui/flowy_infra_ui.dart';
1212
import 'package:flutter/material.dart';
1313
import 'package:flutter_bloc/flutter_bloc.dart';
@@ -43,33 +43,35 @@ class _NotificationButtonState extends State<NotificationButton> {
4343
child: BlocBuilder<NotificationSettingsCubit, NotificationSettingsState>(
4444
builder: (notificationSettingsContext, notificationSettingsState) {
4545
return BlocBuilder<ReminderBloc, ReminderState>(
46-
builder: (context, state) => notificationSettingsState
47-
.isShowNotificationsIconEnabled
48-
? FlowyTooltip(
49-
message: LocaleKeys.notificationHub_title.tr(),
50-
child: AppFlowyPopover(
51-
mutex: mutex,
52-
direction: PopoverDirection.bottomWithLeftAligned,
53-
constraints:
54-
const BoxConstraints(maxHeight: 500, maxWidth: 425),
55-
windowPadding: EdgeInsets.zero,
56-
margin: EdgeInsets.zero,
57-
popupBuilder: (_) =>
58-
NotificationDialog(views: views, mutex: mutex),
59-
child: SizedBox.square(
60-
dimension: 24.0,
61-
child: FlowyButton(
62-
useIntrinsicWidth: true,
63-
margin: EdgeInsets.zero,
64-
text: _buildNotificationIcon(
65-
context,
66-
state.hasUnreads,
46+
builder: (context, state) {
47+
final hasUnreads = state.reminders.any((r) => !r.isRead);
48+
return notificationSettingsState.isShowNotificationsIconEnabled
49+
? FlowyTooltip(
50+
message: LocaleKeys.notificationHub_title.tr(),
51+
child: AppFlowyPopover(
52+
mutex: mutex,
53+
direction: PopoverDirection.bottomWithLeftAligned,
54+
constraints:
55+
const BoxConstraints(maxHeight: 500, maxWidth: 425),
56+
windowPadding: EdgeInsets.zero,
57+
margin: EdgeInsets.zero,
58+
popupBuilder: (_) =>
59+
NotificationDialog(views: views, mutex: mutex),
60+
child: SizedBox.square(
61+
dimension: 24.0,
62+
child: FlowyButton(
63+
useIntrinsicWidth: true,
64+
margin: EdgeInsets.zero,
65+
text: _buildNotificationIcon(
66+
context,
67+
hasUnreads,
68+
),
6769
),
6870
),
6971
),
70-
),
71-
)
72-
: const SizedBox.shrink(),
72+
)
73+
: const SizedBox.shrink();
74+
},
7375
);
7476
},
7577
),
@@ -86,15 +88,11 @@ class _NotificationButtonState extends State<NotificationButton> {
8688
),
8789
),
8890
if (hasUnreads)
89-
Positioned(
90-
bottom: 2,
91-
right: 2,
92-
child: DecoratedBox(
93-
decoration: BoxDecoration(
94-
shape: BoxShape.circle,
95-
color: AFThemeExtension.of(context).warning,
96-
),
97-
child: const SizedBox(height: 8, width: 8),
91+
const Positioned(
92+
top: 4,
93+
right: 6,
94+
child: NotificationRedDot(
95+
size: 5,
9896
),
9997
),
10098
],

frontend/appflowy_tauri/src-tauri/Cargo.lock

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

frontend/appflowy_tauri/src-tauri/Cargo.toml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -116,13 +116,13 @@ custom-protocol = ["tauri/custom-protocol"]
116116
# To switch to the local path, run:
117117
# scripts/tool/update_collab_source.sh
118118
# ⚠️⚠️⚠️️
119-
collab = { version = "0.2", git = "https://github.com/AppFlowy-IO/AppFlowy-Collab", rev = "aeca47a" }
120-
collab-entity = { version = "0.2", git = "https://github.com/AppFlowy-IO/AppFlowy-Collab", rev = "aeca47a" }
121-
collab-folder = { version = "0.2", git = "https://github.com/AppFlowy-IO/AppFlowy-Collab", rev = "aeca47a" }
122-
collab-document = { version = "0.2", git = "https://github.com/AppFlowy-IO/AppFlowy-Collab", rev = "aeca47a" }
123-
collab-database = { version = "0.2", git = "https://github.com/AppFlowy-IO/AppFlowy-Collab", rev = "aeca47a" }
124-
collab-plugins = { version = "0.2", git = "https://github.com/AppFlowy-IO/AppFlowy-Collab", rev = "aeca47a" }
125-
collab-user = { version = "0.2", git = "https://github.com/AppFlowy-IO/AppFlowy-Collab", rev = "aeca47a" }
119+
collab = { version = "0.2", git = "https://github.com/AppFlowy-IO/AppFlowy-Collab", rev = "6adf750" }
120+
collab-entity = { version = "0.2", git = "https://github.com/AppFlowy-IO/AppFlowy-Collab", rev = "6adf750" }
121+
collab-folder = { version = "0.2", git = "https://github.com/AppFlowy-IO/AppFlowy-Collab", rev = "6adf750" }
122+
collab-document = { version = "0.2", git = "https://github.com/AppFlowy-IO/AppFlowy-Collab", rev = "6adf750" }
123+
collab-database = { version = "0.2", git = "https://github.com/AppFlowy-IO/AppFlowy-Collab", rev = "6adf750" }
124+
collab-plugins = { version = "0.2", git = "https://github.com/AppFlowy-IO/AppFlowy-Collab", rev = "6adf750" }
125+
collab-user = { version = "0.2", git = "https://github.com/AppFlowy-IO/AppFlowy-Collab", rev = "6adf750" }
126126

127127
# Working directory: frontend
128128
# To update the commit ID, run:

frontend/appflowy_web_app/src-tauri/Cargo.lock

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

frontend/appflowy_web_app/src-tauri/Cargo.toml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -116,13 +116,13 @@ custom-protocol = ["tauri/custom-protocol"]
116116
# To switch to the local path, run:
117117
# scripts/tool/update_collab_source.sh
118118
# ⚠️⚠️⚠️️
119-
collab = { version = "0.2", git = "https://github.com/AppFlowy-IO/AppFlowy-Collab", rev = "aeca47a" }
120-
collab-entity = { version = "0.2", git = "https://github.com/AppFlowy-IO/AppFlowy-Collab", rev = "aeca47a" }
121-
collab-folder = { version = "0.2", git = "https://github.com/AppFlowy-IO/AppFlowy-Collab", rev = "aeca47a" }
122-
collab-document = { version = "0.2", git = "https://github.com/AppFlowy-IO/AppFlowy-Collab", rev = "aeca47a" }
123-
collab-database = { version = "0.2", git = "https://github.com/AppFlowy-IO/AppFlowy-Collab", rev = "aeca47a" }
124-
collab-plugins = { version = "0.2", git = "https://github.com/AppFlowy-IO/AppFlowy-Collab", rev = "aeca47a" }
125-
collab-user = { version = "0.2", git = "https://github.com/AppFlowy-IO/AppFlowy-Collab", rev = "aeca47a" }
119+
collab = { version = "0.2", git = "https://github.com/AppFlowy-IO/AppFlowy-Collab", rev = "6adf750" }
120+
collab-entity = { version = "0.2", git = "https://github.com/AppFlowy-IO/AppFlowy-Collab", rev = "6adf750" }
121+
collab-folder = { version = "0.2", git = "https://github.com/AppFlowy-IO/AppFlowy-Collab", rev = "6adf750" }
122+
collab-document = { version = "0.2", git = "https://github.com/AppFlowy-IO/AppFlowy-Collab", rev = "6adf750" }
123+
collab-database = { version = "0.2", git = "https://github.com/AppFlowy-IO/AppFlowy-Collab", rev = "6adf750" }
124+
collab-plugins = { version = "0.2", git = "https://github.com/AppFlowy-IO/AppFlowy-Collab", rev = "6adf750" }
125+
collab-user = { version = "0.2", git = "https://github.com/AppFlowy-IO/AppFlowy-Collab", rev = "6adf750" }
126126

127127
# Working directory: frontend
128128
# To update the commit ID, run:

0 commit comments

Comments
 (0)