chore(electron): add community link for meeting feature (#11494)
fix AF-2471 
This commit is contained in:
@@ -14,7 +14,7 @@ import {
|
|||||||
import { useAsyncCallback } from '@affine/core/components/hooks/affine-async-hooks';
|
import { useAsyncCallback } from '@affine/core/components/hooks/affine-async-hooks';
|
||||||
import { MeetingSettingsService } from '@affine/core/modules/media/services/meeting-settings';
|
import { MeetingSettingsService } from '@affine/core/modules/media/services/meeting-settings';
|
||||||
import type { MeetingSettingsSchema } from '@affine/electron/main/shared-state-schema';
|
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 track from '@affine/track';
|
||||||
import {
|
import {
|
||||||
ArrowRightSmallIcon,
|
ArrowRightSmallIcon,
|
||||||
@@ -159,7 +159,21 @@ export const MeetingsSettings = () => {
|
|||||||
|
|
||||||
<SettingRow
|
<SettingRow
|
||||||
name={t['com.affine.settings.meetings.enable.title']()}
|
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
|
<Switch
|
||||||
checked={settings.enabled}
|
checked={settings.enabled}
|
||||||
|
|||||||
@@ -16,3 +16,7 @@ export const permissionSetting = style({
|
|||||||
export const noPermissionIcon = style({
|
export const noPermissionIcon = style({
|
||||||
color: cssVarV2('button/error'),
|
color: cssVarV2('button/error'),
|
||||||
});
|
});
|
||||||
|
|
||||||
|
export const link = style({
|
||||||
|
color: cssVarV2('text/link'),
|
||||||
|
});
|
||||||
|
|||||||
@@ -255,6 +255,9 @@ export const AFFINE_FLAGS = {
|
|||||||
description:
|
description:
|
||||||
'com.affine.settings.workspace.experimental-features.enable-meetings.description',
|
'com.affine.settings.workspace.experimental-features.enable-meetings.description',
|
||||||
configurable: !isMobile && environment.isMacOs && BUILD_CONFIG.isElectron,
|
configurable: !isMobile && environment.isMacOs && BUILD_CONFIG.isElectron,
|
||||||
|
feedbackType: 'discord',
|
||||||
|
feedbackLink:
|
||||||
|
'https://discord.com/channels/959027316334407691/1358384103925350542',
|
||||||
defaultState: false,
|
defaultState: false,
|
||||||
},
|
},
|
||||||
} satisfies { [key in string]: FlagInfo };
|
} satisfies { [key in string]: FlagInfo };
|
||||||
|
|||||||
@@ -5355,10 +5355,6 @@ export function useAFFiNEI18N(): {
|
|||||||
* `Enable meeting notes`
|
* `Enable meeting notes`
|
||||||
*/
|
*/
|
||||||
["com.affine.settings.meetings.enable.title"](): string;
|
["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`
|
* `Meeting recording`
|
||||||
*/
|
*/
|
||||||
@@ -8534,6 +8530,12 @@ export const TypedTrans: {
|
|||||||
["1"]: JSX.Element;
|
["1"]: JSX.Element;
|
||||||
["2"]: 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>.`
|
* `If you encounter any issues, please contact our <1>customer support</1>.`
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -1335,7 +1335,7 @@
|
|||||||
"com.affine.settings.translucent-style-description": "Use transparency effect on the sidebar.",
|
"com.affine.settings.translucent-style-description": "Use transparency effect on the sidebar.",
|
||||||
"com.affine.settings.meetings": "Meetings",
|
"com.affine.settings.meetings": "Meetings",
|
||||||
"com.affine.settings.meetings.enable.title": "Enable meeting notes",
|
"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.header": "Meeting recording",
|
||||||
"com.affine.settings.meetings.record.recording-mode": "When meeting starts",
|
"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.",
|
"com.affine.settings.meetings.record.recording-mode.description": "Choose the behavior when the meeting starts.",
|
||||||
|
|||||||
Reference in New Issue
Block a user