Skip to content

Commit ed889ab

Browse files
annieappflowyappflowy
authored andcommitted
feat: add a new entry to the question bubble (#2334)
1 parent 92cef81 commit ed889ab

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

frontend/appflowy_flutter/assets/translations/en.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@
7474
"shortcuts": "Shortcuts",
7575
"whatsNew": "What's new?",
7676
"help": "Help & Support",
77+
"markdown": "Markdown",
7778
"debug": {
7879
"name": "Debug Info",
7980
"success": "Copied debug info to clipboard!",

frontend/appflowy_flutter/lib/workspace/presentation/widgets/float_bubble/question_bubble.dart

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,11 @@ class BubbleActionList extends StatelessWidget {
7373
"https://appflowy.gitbook.io/docs/essential-documentation/shortcuts",
7474
);
7575
break;
76+
case BubbleAction.markdown:
77+
_launchURL(
78+
"https://appflowy.gitbook.io/docs/essential-documentation/markdown",
79+
);
80+
break;
7681
}
7782
}
7883

@@ -169,7 +174,7 @@ class FlowyVersionDescription extends CustomActionCell {
169174
}
170175
}
171176

172-
enum BubbleAction { whatsNews, help, debug, shortcuts }
177+
enum BubbleAction { whatsNews, help, debug, shortcuts, markdown }
173178

174179
class BubbleActionWrapper extends ActionCell {
175180
final BubbleAction inner;
@@ -193,19 +198,23 @@ extension QuestionBubbleExtension on BubbleAction {
193198
return LocaleKeys.questionBubble_debug_name.tr();
194199
case BubbleAction.shortcuts:
195200
return LocaleKeys.questionBubble_shortcuts.tr();
201+
case BubbleAction.markdown:
202+
return LocaleKeys.questionBubble_markdown.tr();
196203
}
197204
}
198205

199206
String get emoji {
200207
switch (this) {
201208
case BubbleAction.whatsNews:
202-
return '⭐️';
209+
return '🆕';
203210
case BubbleAction.help:
204211
return '👥';
205212
case BubbleAction.debug:
206213
return '🐛';
207214
case BubbleAction.shortcuts:
208215
return '📋';
216+
case BubbleAction.markdown:
217+
return '✨';
209218
}
210219
}
211220
}

0 commit comments

Comments
 (0)