MCPcopy Create free account
hub / github.com/dailydotdev/apps / getCompletionItems

Function getCompletionItems

packages/shared/src/lib/profileCompletion.ts:10–40  ·  view source on GitHub ↗
(
  completion: ProfileCompletion,
)

Source from the content-addressed store, hash-verified

8};
9
10export const getCompletionItems = (
11 completion: ProfileCompletion,
12): CompletionItem[] => {
13 return [
14 {
15 label: 'Profile image',
16 completed: completion.hasProfileImage,
17 redirectPath: `${webappUrl}settings/profile`,
18 },
19 {
20 label: 'Headline',
21 completed: completion.hasHeadline,
22 redirectPath: `${webappUrl}settings/profile?field=bio`,
23 },
24 {
25 label: 'Experience level',
26 completed: completion.hasExperienceLevel,
27 redirectPath: `${webappUrl}settings/profile?field=experienceLevel`,
28 },
29 {
30 label: 'Work experience',
31 completed: completion.hasWork,
32 redirectPath: `${webappUrl}settings/profile/experience/work`,
33 },
34 {
35 label: 'Education',
36 completed: completion.hasEducation,
37 redirectPath: `${webappUrl}settings/profile/experience/education`,
38 },
39 ];
40};
41
42export const formatCompletionDescription = (
43 incompleteItems: CompletionItem[],

Callers 3

SidebarProfileCompletionFunction · 0.90
ProfileCompletionFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected