Skip to content

Commit

Permalink
Speed up AI suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
Rustem Mussabekov committed Jan 16, 2025
1 parent 610567d commit 8681f2f
Show file tree
Hide file tree
Showing 9 changed files with 30 additions and 20 deletions.
4 changes: 2 additions & 2 deletions build/xcode/Save to Raindrop.io/App/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<key>CFBundlePackageType</key>
<string>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string>
<key>CFBundleShortVersionString</key>
<string>5.6.68</string>
<string>5.6.71</string>
<key>CFBundleURLTypes</key>
<array>
<dict>
Expand All @@ -32,7 +32,7 @@
</dict>
</array>
<key>CFBundleVersion</key>
<string>372</string>
<string>374</string>
<key>LSApplicationCategoryType</key>
<string>public.app-category.productivity</string>
<key>LSMinimumSystemVersion</key>
Expand Down
4 changes: 2 additions & 2 deletions build/xcode/Save to Raindrop.io/Extension/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
<key>CFBundlePackageType</key>
<string>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string>
<key>CFBundleShortVersionString</key>
<string>5.6.68</string>
<string>5.6.71</string>
<key>CFBundleVersion</key>
<string>372</string>
<string>374</string>
<key>LSMinimumSystemVersion</key>
<string>$(MACOSX_DEPLOYMENT_TARGET)</string>
<key>NSExtension</key>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@
CODE_SIGN_ENTITLEMENTS = Extension/Extension.entitlements;
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 372;
CURRENT_PROJECT_VERSION = 374;
DEAD_CODE_STRIPPING = YES;
DEVELOPMENT_TEAM = 7459JWM5TY;
ENABLE_HARDENED_RUNTIME = YES;
Expand All @@ -452,7 +452,7 @@
"@executable_path/../../../../Frameworks",
);
MACOSX_DEPLOYMENT_TARGET = "$(RECOMMENDED_MACOSX_DEPLOYMENT_TARGET)";
MARKETING_VERSION = 5.6.68;
MARKETING_VERSION = 5.6.71;
PRODUCT_BUNDLE_IDENTIFIER = io.raindrop.safari.extension;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
Expand All @@ -467,7 +467,7 @@
CODE_SIGN_ENTITLEMENTS = Extension/Extension.entitlements;
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 372;
CURRENT_PROJECT_VERSION = 374;
DEAD_CODE_STRIPPING = YES;
DEVELOPMENT_TEAM = 7459JWM5TY;
ENABLE_HARDENED_RUNTIME = YES;
Expand All @@ -478,7 +478,7 @@
"@executable_path/../../../../Frameworks",
);
MACOSX_DEPLOYMENT_TARGET = "$(RECOMMENDED_MACOSX_DEPLOYMENT_TARGET)";
MARKETING_VERSION = 5.6.68;
MARKETING_VERSION = 5.6.71;
PRODUCT_BUNDLE_IDENTIFIER = io.raindrop.safari.extension;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
Expand All @@ -497,7 +497,7 @@
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 372;
CURRENT_PROJECT_VERSION = 374;
DEAD_CODE_STRIPPING = YES;
DEVELOPMENT_TEAM = 7459JWM5TY;
ENABLE_HARDENED_RUNTIME = YES;
Expand All @@ -508,7 +508,7 @@
"@executable_path/../Frameworks",
);
MACOSX_DEPLOYMENT_TARGET = "$(RECOMMENDED_MACOSX_DEPLOYMENT_TARGET)";
MARKETING_VERSION = 5.6.68;
MARKETING_VERSION = 5.6.71;
PRODUCT_BUNDLE_IDENTIFIER = io.raindrop.safari;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 5.0;
Expand All @@ -525,7 +525,7 @@
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 372;
CURRENT_PROJECT_VERSION = 374;
DEAD_CODE_STRIPPING = YES;
DEVELOPMENT_TEAM = 7459JWM5TY;
ENABLE_HARDENED_RUNTIME = YES;
Expand All @@ -536,7 +536,7 @@
"@executable_path/../Frameworks",
);
MACOSX_DEPLOYMENT_TARGET = "$(RECOMMENDED_MACOSX_DEPLOYMENT_TARGET)";
MARKETING_VERSION = 5.6.68;
MARKETING_VERSION = 5.6.71;
PRODUCT_BUNDLE_IDENTIFIER = io.raindrop.safari;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 5.0;
Expand Down
Binary file not shown.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "app",
"version": "5.6.69",
"version": "5.6.71",
"description": "All-in-one bookmark manager",
"author": "Rustem Mussabekov",
"license": "MIT",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
overflow: hidden
min-height: calc(var(--icon-size) + var(--padding-small))
max-height: calc(var(--icon-size) + var(--padding-small))
transition: opacity .2s ease-in, max-height .3s ease-out, min-height .3s ease-out
transition: opacity .15s ease-in, max-height .3s ease-out, min-height .3s ease-out

&[data-expanded=true]:not(:empty) {
max-height: calc( (var(--icon-size) + var(--padding-small)) * 3 );
Expand Down
5 changes: 1 addition & 4 deletions src/co/bookmarks/edit/form/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,7 @@ export default function BookmarkEditForm(props) {

//load suggestions
useEffect(()=>
{
if (props.status == 'loaded' || props.status == 'new')
dispatch(suggestFields(props.item))
},
{ dispatch(suggestFields(props.item)) },
[props.item._id, props.status]
)

Expand Down
2 changes: 1 addition & 1 deletion src/co/bookmarks/edit/form/tags/suggested.module.styl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
overflow: hidden
min-height: calc(var(--icon-size) + var(--padding-small))
max-height: calc(var(--icon-size) + var(--padding-small))
transition: opacity .2s ease-in, max-height .3s ease-out, min-height .3s ease-out
transition: opacity .15s ease-in, max-height .3s ease-out, min-height .3s ease-out

&[data-expanded=true]:not(:empty) {
max-height: calc( (var(--icon-size) + var(--padding-small)) * 3 )
Expand Down
15 changes: 14 additions & 1 deletion src/data/reducers/bookmarks/single.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import {
BOOKMARK_UPLOAD_PROGRESS,
BOOKMARK_IMPORTANT,
BOOKMARK_REORDER,
BOOKMARK_SUGGESTED_FIELDS
BOOKMARK_SUGGEST_FIELDS, BOOKMARK_SUGGESTED_FIELDS
} from '../../constants/bookmarks'

import {
Expand Down Expand Up @@ -205,6 +205,19 @@ export default function(state, action) {
}

//Suggestions
case BOOKMARK_SUGGEST_FIELDS:{
const { obj } = action
const link = obj?.link

if (!link || state.suggestedFields[link]) {
action.ignore = true
return state
}

return state
.setIn(['suggestedFields', link], {})
}

case BOOKMARK_SUGGESTED_FIELDS:{
const { link, collections=[], tags=[], new_tags=[] } = action

Expand Down

0 comments on commit 8681f2f

Please sign in to comment.