• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

alkem-io / client-web / #9729

03 Jan 2025 09:34AM UTC coverage: 5.783%. First build
#9729

Pull #7381

travis-ci

Pull Request #7381: WIP: Knowledge base BoK instead of Subspace in Written Knowledge creation

190 of 10858 branches covered (1.75%)

Branch coverage included in aggregate %.

0 of 91 new or added lines in 4 files covered. (0.0%)

1523 of 18763 relevant lines covered (8.12%)

0.18 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/main/topLevelPages/myDashboard/newVirtualContributorWizard/AddContent/AddContentProps.ts
1
import {
2
  CalloutAllowedContributors,
3
  CalloutContributionType,
4
  CalloutVisibility,
5
} from '@/core/apollo/generated/graphql-schema';
6

7
export type PostValues = {
8
  title: string;
9
  description: string;
10
};
11

12
export interface DocumentValues {
13
  name: string;
14
  url: string;
15
}
16

17
export interface BoKCalloutsFormValues {
18
  posts: PostValues[];
19
  documents: DocumentValues[];
20
}
21

22
export type AddContentProps = {
23
  onClose: () => void;
NEW
24
  onCreateVC: (values: BoKCalloutsFormValues) => Promise<void>;
×
25
  titleId?: string;
26
};
27

28
export const getPostCalloutRequestData = (title: string, description: string) => ({
29
  framing: {
30
    profile: {
31
      description: description,
32
      displayName: title,
33
      tagsets: [],
34
      referencesData: [],
35
    },
36
  },
37
  settings: {
38
    framing: {
39
      commentsEnabled: false,
NEW
40
    },
×
41
    visibility: CalloutVisibility.Published,
42
  },
43
  sendNotification: false,
44
});
45

46
export const getDocumentCalloutRequestData = (name: string) => ({
47
  framing: {
48
    profile: {
49
      displayName: name,
50
      description: '',
51
      tagsets: [],
52
      referencesData: [],
53
    },
54
  },
55
  settings: {
56
    framing: {
57
      commentsEnabled: false,
58
    },
59
    contribution: {
60
      enabled: true,
61
      allowedTypes: [CalloutContributionType.Link],
62
      canAddContributions: CalloutAllowedContributors.Members,
63
      commentsEnabled: false,
64
    },
65
    visibility: CalloutVisibility.Published,
66
  },
67
  sendNotification: false,
68
});
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc