Skip to content

There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.

chore(electron): add community link for meeting feature (#11494)

pengx1792240fc1a29b
diff --git a/packages/frontend/core/src/desktop/dialogs/setting/general-setting/meetings/index.tsx b/packages/frontend/core/src/desktop/dialogs/setting/general-setting/meetings/index.tsx
index 69d7f617a8..9b9569f34a 100644
--- a/packages/frontend/core/src/desktop/dialogs/setting/general-setting/meetings/index.tsx
+++ b/packages/frontend/core/src/desktop/dialogs/setting/general-setting/meetings/index.tsx
@@ -14,7 +14,7 @@ import {
import { useAsyncCallback } from '@affine/core/components/hooks/affine-async-hooks';
import { MeetingSettingsService } from '@affine/core/modules/media/services/meeting-settings';
import type { MeetingSettingsSchema } from '@affine/electron/main/shared-state-schema';
-import { useI18n } from '@affine/i18n';
+import { Trans, useI18n } from '@affine/i18n';
import track from '@affine/track';
import {
ArrowRightSmallIcon,
@@ -159,7 +159,21 @@ export const MeetingsSettings = () => {
<SettingRow
name={t['com.affine.settings.meetings.enable.title']()}
- desc={t['com.affine.settings.meetings.enable.description']()}
+ desc={
+ <Trans
+ i18nKey="com.affine.settings.meetings.enable.description"
+ components={{
+ 1: (
+ <a
+ className={styles.link}
+ href="https://discord.com/channels/959027316334407691/1358384103925350542"
+ target="_blank"
+ rel="noreferrer"
+ />
+ ),
+ }}
+ />
+ }
>
<Switch
checked={settings.enabled}
diff --git a/packages/frontend/core/src/desktop/dialogs/setting/general-setting/meetings/styles.css.ts b/packages/frontend/core/src/desktop/dialogs/setting/general-setting/meetings/styles.css.ts
index 653ac4d61a..65a9f07d97 100644
--- a/packages/frontend/core/src/desktop/dialogs/setting/general-setting/meetings/styles.css.ts
+++ b/packages/frontend/core/src/desktop/dialogs/setting/general-setting/meetings/styles.css.ts
@@ -16,3 +16,7 @@ export const permissionSetting = style({
export const noPermissionIcon = style({
color: cssVarV2('button/error'),
});
+
+export const link = style({
+ color: cssVarV2('text/link'),
+});
diff --git a/packages/frontend/core/src/modules/feature-flag/constant.ts b/packages/frontend/core/src/modules/feature-flag/constant.ts
index 9007b88eab..16ee091c64 100644
--- a/packages/frontend/core/src/modules/feature-flag/constant.ts
+++ b/packages/frontend/core/src/modules/feature-flag/constant.ts
@@ -255,6 +255,9 @@ export const AFFINE_FLAGS = {
description:
'com.affine.settings.workspace.experimental-features.enable-meetings.description',
configurable: !isMobile && environment.isMacOs && BUILD_CONFIG.isElectron,
+ feedbackType: 'discord',
+ feedbackLink:
+ 'https://discord.com/channels/959027316334407691/1358384103925350542',
defaultState: false,
},
} satisfies { [key in string]: FlagInfo };
diff --git a/packages/frontend/i18n/src/i18n.gen.ts b/packages/frontend/i18n/src/i18n.gen.ts
index 445ba82f41..c05b581d25 100644
--- a/packages/frontend/i18n/src/i18n.gen.ts
+++ b/packages/frontend/i18n/src/i18n.gen.ts
@@ -5355,10 +5355,6 @@ export function useAFFiNEI18N(): {
* `Enable meeting notes`
*/
["com.affine.settings.meetings.enable.title"](): string;
- /**
- * `Utilize the meeting notes and AI summarization features provided by AFFiNE.`
- */
- ["com.affine.settings.meetings.enable.description"](): string;
/**
* `Meeting recording`
*/
@@ -8534,6 +8530,12 @@ export const TypedTrans: {
["1"]: JSX.Element;
["2"]: JSX.Element;
}>>;
+ /**
+ * `Utilize the meeting notes and AI summarization features provided by AFFiNE. <1>Discuss more in the community</1>.`
+ */
+ ["com.affine.settings.meetings.enable.description"]: ComponentType<TypedTransProps<Readonly<{}>, {
+ ["1"]: JSX.Element;
+ }>>;
/**
* `If you encounter any issues, please contact our <1>customer support</1>.`
*/
diff --git a/packages/frontend/i18n/src/resources/en.json b/packages/frontend/i18n/src/resources/en.json
index b39e1638a7..df21a8f824 100644
--- a/packages/frontend/i18n/src/resources/en.json
+++ b/packages/frontend/i18n/src/resources/en.json
@@ -1335,7 +1335,7 @@
"com.affine.settings.translucent-style-description": "Use transparency effect on the sidebar.",
"com.affine.settings.meetings": "Meetings",
"com.affine.settings.meetings.enable.title": "Enable meeting notes",
- "com.affine.settings.meetings.enable.description": "Utilize the meeting notes and AI summarization features provided by AFFiNE.",
+ "com.affine.settings.meetings.enable.description": "Utilize the meeting notes and AI summarization features provided by AFFiNE. <1>Discuss more in the community</1>.",
"com.affine.settings.meetings.record.header": "Meeting recording",
"com.affine.settings.meetings.record.recording-mode": "When meeting starts",
"com.affine.settings.meetings.record.recording-mode.description": "Choose the behavior when the meeting starts.",