Skip to content

Bring projects, wikis, and teams together with AI. AppFlowy is the AI collaborative workspace where you achieve more without losing control of your data. The leading open source Notion alternative.

feat: add a new entry to the question bubble (#2334)

Annie71bff8f864e3
diff --git a/frontend/appflowy_flutter/assets/translations/en.json b/frontend/appflowy_flutter/assets/translations/en.json
index e0b27b3d30..df13c48c96 100644
--- a/frontend/appflowy_flutter/assets/translations/en.json
+++ b/frontend/appflowy_flutter/assets/translations/en.json
@@ -74,6 +74,7 @@
"shortcuts": "Shortcuts",
"whatsNew": "What's new?",
"help": "Help & Support",
+ "markdown": "Markdown",
"debug": {
"name": "Debug Info",
"success": "Copied debug info to clipboard!",
diff --git a/frontend/appflowy_flutter/lib/workspace/presentation/widgets/float_bubble/question_bubble.dart b/frontend/appflowy_flutter/lib/workspace/presentation/widgets/float_bubble/question_bubble.dart
index 82f4619fdf..286e97294c 100644
--- a/frontend/appflowy_flutter/lib/workspace/presentation/widgets/float_bubble/question_bubble.dart
+++ b/frontend/appflowy_flutter/lib/workspace/presentation/widgets/float_bubble/question_bubble.dart
@@ -73,6 +73,11 @@ class BubbleActionList extends StatelessWidget {
"https://appflowy.gitbook.io/docs/essential-documentation/shortcuts",
);
break;
+ case BubbleAction.markdown:
+ _launchURL(
+ "https://appflowy.gitbook.io/docs/essential-documentation/markdown",
+ );
+ break;
}
}
@@ -169,7 +174,7 @@ class FlowyVersionDescription extends CustomActionCell {
}
}
-enum BubbleAction { whatsNews, help, debug, shortcuts }
+enum BubbleAction { whatsNews, help, debug, shortcuts, markdown }
class BubbleActionWrapper extends ActionCell {
final BubbleAction inner;
@@ -193,19 +198,23 @@ extension QuestionBubbleExtension on BubbleAction {
return LocaleKeys.questionBubble_debug_name.tr();
case BubbleAction.shortcuts:
return LocaleKeys.questionBubble_shortcuts.tr();
+ case BubbleAction.markdown:
+ return LocaleKeys.questionBubble_markdown.tr();
}
}
String get emoji {
switch (this) {
case BubbleAction.whatsNews:
- return '⭐️';
+ return '🆕';
case BubbleAction.help:
return '👥';
case BubbleAction.debug:
return '🐛';
case BubbleAction.shortcuts:
return '📋';
+ case BubbleAction.markdown:
+ return '✨';
}
}
}