refactor(editor): add cache extension for link preview service (#12196)
Closes: [BS-2578](https://linear.app/affine-design/issue/BS-2578/优化-footnote-预览的逻辑:支持缓存结果,避免重复-loading) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Introduced a link preview caching mechanism, enabling faster and more efficient reuse of link preview data across the app. - Added a feature flag for enabling or disabling link preview cache, configurable through workspace experimental settings. - Enhanced localization with new entries describing the link preview cache feature. - **Improvements** - Updated link preview service architecture for better extensibility and maintainability. - Improved integration of feature flags throughout chat and rendering components. - **Bug Fixes** - Fixed tooltip formatting for footnote URLs. - **Chores** - Updated dependencies and localization completeness tracking. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
@@ -14,7 +14,7 @@
|
||||
"it-IT": 96,
|
||||
"it": 1,
|
||||
"ja": 96,
|
||||
"ko": 56,
|
||||
"ko": 55,
|
||||
"pl": 96,
|
||||
"pt-BR": 96,
|
||||
"ru": 96,
|
||||
|
||||
@@ -5722,6 +5722,14 @@ export function useAFFiNEI18N(): {
|
||||
* `Enable citation feature.`
|
||||
*/
|
||||
["com.affine.settings.workspace.experimental-features.enable-citation.description"](): string;
|
||||
/**
|
||||
* `Link Preview Cache`
|
||||
*/
|
||||
["com.affine.settings.workspace.experimental-features.enable-link-preview-cache.name"](): string;
|
||||
/**
|
||||
* `Once enabled, the link preview will be cached and cached data will be used when the same link is fetched again. Otherwise, the link preview will be fetched every time.`
|
||||
*/
|
||||
["com.affine.settings.workspace.experimental-features.enable-link-preview-cache.description"](): string;
|
||||
/**
|
||||
* `Embed Iframe Block`
|
||||
*/
|
||||
|
||||
@@ -1429,6 +1429,8 @@
|
||||
"com.affine.settings.workspace.experimental-features.enable-callout.description": "Let your words stand out. This also include the callout in the transcription block.",
|
||||
"com.affine.settings.workspace.experimental-features.enable-citation.name": "Citation",
|
||||
"com.affine.settings.workspace.experimental-features.enable-citation.description": "Enable citation feature.",
|
||||
"com.affine.settings.workspace.experimental-features.enable-link-preview-cache.name": "Link Preview Cache",
|
||||
"com.affine.settings.workspace.experimental-features.enable-link-preview-cache.description": "Once enabled, the link preview will be cached and cached data will be used when the same link is fetched again. Otherwise, the link preview will be fetched every time.",
|
||||
"com.affine.settings.workspace.experimental-features.enable-embed-iframe-block.name": "Embed Iframe Block",
|
||||
"com.affine.settings.workspace.experimental-features.enable-embed-iframe-block.description": "Enables Embed Iframe Block.",
|
||||
"com.affine.settings.workspace.experimental-features.enable-emoji-folder-icon.name": "Emoji Folder Icon",
|
||||
|
||||
Reference in New Issue
Block a user