alpha
Login
or
Join now
nandi.uk
/
semble
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
This repository has no description
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Overview
Issues
Pulls
Pipelines
chore: url search input clean up
author
Pouria Delfanazari
date
2 months ago
(May 20, 2026, 4:41 PM -0700)
commit
a116e71f
a116e71f2bb1c4a9e28ea3de0f7422fe353dffd3
parent
2b15f550
2b15f550f21def40068311c0aba0942699dffce5
-8
1 changed file
Expand all
Collapse all
Unified
Split
src
webapp
features
connections
components
addConnectionDrawer
UrlSearchInput.tsx
-8
src/webapp/features/connections/components/addConnectionDrawer/UrlSearchInput.tsx
View file
Reviewed
···
92
92
const [confirmedUrl, setConfirmedUrl] = useState<string | null>(
93
93
isValidUrl(props.value) ? props.value : null,
94
94
);
95
95
-
const [confirmedMetadata, setConfirmedMetadata] = useState<
96
96
-
UrlMetadata | undefined
97
97
-
>(undefined);
98
95
const [isInputFocused, setIsInputFocused] = useState(false);
99
96
const [debounced] = useDebouncedValue(inputValue, 200);
100
97
const [searchFilter, setSearchFilter] = useState<SearchFilter>('cards');
···
132
129
} else {
133
130
setConfirmedUrl(null);
134
131
}
135
135
-
setConfirmedMetadata(undefined);
136
132
}
137
133
138
134
const handleClear = () => {
139
135
setConfirmedUrl(null);
140
140
-
setConfirmedMetadata(undefined);
141
136
setInputValue('');
142
137
props.onUrlSelect('');
143
138
props.onUrlClear?.();
···
300
295
// Look up metadata from search results or recent cards
301
296
const searchMatch = urls.find((u) => u.url === url);
302
297
const recentMatch = recentCardsList.find((c) => c.url === url);
303
303
-
setConfirmedMetadata(
304
304
-
searchMatch?.metadata ?? recentMatch?.cardContent,
305
305
-
);
306
298
}
307
299
combobox.closeDropdown();
308
300
}}