@@ -37,8 +37,6 @@ import { useUpdateCurrentUserMutation } from "../data/current-user/update-mutati
3737import { useUserLoader } from "../hooks/use-user-loader" ;
3838import Tooltip from "../components/Tooltip" ;
3939import { useFeatureFlag } from "../data/featureflag-query" ;
40- import { useSuggestedRepositories } from "../data/git-providers/suggested-repositories-query" ;
41- import PillLabel from "../components/PillLabel" ;
4240
4341export const GETTING_STARTED_DISMISSAL_KEY = "workspace-list-getting-started" ;
4442
@@ -131,21 +129,6 @@ const WorkspacesPage: FunctionComponent = () => {
131129 }
132130 } , [ user ?. profile ?. coachmarksDismissals ] ) ;
133131
134- const { data : suggestedRepos } = useSuggestedRepositories ( { excludeConfigurations : false } ) ;
135-
136- const recentRepos = useMemo ( ( ) => {
137- return (
138- suggestedRepos
139- ?. filter ( ( repo ) => {
140- const autostartMatch = user ?. workspaceAutostartOptions . find ( ( option ) => {
141- return option . cloneUrl . includes ( repo . url ) ;
142- } ) ;
143- return autostartMatch ;
144- } )
145- . slice ( 0 , 3 ) ?? [ ]
146- ) ;
147- } , [ suggestedRepos , user ] ) ;
148-
149132 const toggleGettingStarted = useCallback (
150133 ( show : boolean ) => {
151134 setShowGettingStarted ( show ) ;
@@ -252,62 +235,6 @@ const WorkspacesPage: FunctionComponent = () => {
252235 </ Card >
253236 </ div >
254237 ) }
255-
256- { ( recentRepos . length || 1 ) > 0 && (
257- < >
258- < Subheading className = "font-semibold text-pk-content-primary mb-2 app-container" >
259- Suggested
260- </ Subheading >
261-
262- < div className = "grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4 lg:px-28 px-4" >
263- { [
264- ...recentRepos ,
265- // todo: add org-selected repos
266- {
267- url : "https://github.com/filiptronicek/test" ,
268- configurationName : "Test" ,
269- repoName : "test" ,
270- } ,
271- {
272- url : "https://github.com/filiptronicek/test" ,
273- configurationName : "Test" ,
274- repoName : "test" ,
275- } ,
276- {
277- url : "https://github.com/filiptronicek/test" ,
278- configurationName : "Test" ,
279- repoName : "test" ,
280- } ,
281- ]
282- . slice ( 0 , 3 )
283- . map ( ( repo ) => (
284- < Card
285- key = { repo . url }
286- href = { `/new#${ repo . url } ` }
287- className = "border-[#D79A45] border hover:bg-pk-surface-tertiary transition-colors w-full"
288- >
289- < div className = "min-w-0 w-full space-y-1.5" >
290- < CardTitle className = "flex flex-row items-center gap-2 w-full" >
291- < span className = "truncate block min-w-0 text-base" >
292- { repo . configurationName || repo . repoName }
293- </ span >
294- < PillLabel
295- className = "capitalize bg-kumquat-light shrink-0 text-sm"
296- type = "warn"
297- >
298- Recommended
299- </ PillLabel >
300- </ CardTitle >
301- < CardDescription className = "truncate text-sm opacity-75" >
302- { repo . url }
303- </ CardDescription >
304- </ div >
305- </ Card >
306- ) ) }
307- </ div >
308- </ >
309- ) }
310-
311238 < Modal
312239 visible = { isVideoModalVisible }
313240 onClose = { handleVideoModalClose }
0 commit comments