richie-education 2.25.0-b2.dev42 → 2.25.0-b2.dev44

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -28,7 +28,7 @@ describe('<ContractStatus />', () => {
28
28
 
29
29
  expect(screen.queryByText(/You signed this training contract/)).not.toBeInTheDocument();
30
30
  expect(
31
- screen.queryByText(/The organization have signed this training contract./),
31
+ screen.queryByText(/The organization has signed this training contract./),
32
32
  ).not.toBeInTheDocument();
33
33
  expect(
34
34
  screen.queryByText(
@@ -70,7 +70,7 @@ describe('<ContractStatus />', () => {
70
70
  screen.queryByText('You have to sign this training contract to access your training.'),
71
71
  ).not.toBeInTheDocument();
72
72
  expect(
73
- screen.queryByText(/The organization have signed this training contract./),
73
+ screen.queryByText(/The organization has signed this training contract./),
74
74
  ).not.toBeInTheDocument();
75
75
  });
76
76
 
@@ -96,10 +96,10 @@ describe('<ContractStatus />', () => {
96
96
  })}`,
97
97
  ),
98
98
  ).toBeInTheDocument();
99
- // The organization have signed this training contract. Signed on {date}
99
+ // The organization has signed this training contract. Signed on {date}
100
100
  expect(
101
101
  screen.queryByText(
102
- `The organization have signed this training contract. Signed on ${intl.formatDate(
102
+ `The organization has signed this training contract. Signed on ${intl.formatDate(
103
103
  organizationSignedOn,
104
104
  {
105
105
  ...DEFAULT_DATE_FORMAT,
@@ -10,7 +10,7 @@ const messages = defineMessages({
10
10
  id: 'components.ContractStatus.learnerSignedOn',
11
11
  },
12
12
  organizationSignedOn: {
13
- defaultMessage: 'The organization have signed this training contract. Signed on {date}',
13
+ defaultMessage: 'The organization has signed this training contract. Signed on {date}',
14
14
  description: 'Label for the date of sign of a training contract by the organization',
15
15
  id: 'components.ContractStatus.organizationSignedOn',
16
16
  },
@@ -46,7 +46,6 @@ describe('widgets/Search/components/CourseGlimpse', () => {
46
46
  srcset: 'some srcset',
47
47
  },
48
48
  },
49
- nb_seller_organizations: 1,
50
49
  state: {
51
50
  call_to_action: 'enroll now',
52
51
  datetime: '2019-03-14T10:35:47.823Z',
@@ -28,7 +28,6 @@ export interface CourseGlimpseCourse {
28
28
  srcset?: string;
29
29
  }>;
30
30
  };
31
- nb_seller_organizations: number;
32
31
  icon?: Nullable<{
33
32
  title: string;
34
33
  src: string;
@@ -68,11 +67,6 @@ const messages = defineMessages({
68
67
  description: 'Category label text for screen reader users',
69
68
  id: 'components.CourseGlimpse.categoryLabel',
70
69
  },
71
- organizationsTitle: {
72
- defaultMessage: 'Produced by {nbOrganizations} partners',
73
- description: 'Organizations title for multiple organizations',
74
- id: 'components.CourseGlimpse.organizationsTitle',
75
- },
76
70
  });
77
71
 
78
72
  const CourseGlimpseBase = ({ context, course }: CourseGlimpseProps & CommonDataProps) => {
@@ -114,7 +108,7 @@ const CourseGlimpseBase = ({ context, course }: CourseGlimpseProps & CommonDataP
114
108
  <span className="course-glimpse__title-text">{course.title}</span>
115
109
  </CourseLink>
116
110
  </h3>
117
- {course.nb_seller_organizations === 1 && course.organization.image ? (
111
+ {course.organization.image ? (
118
112
  <div className="course-glimpse__organization-logo">
119
113
  {/* alt forced to empty string because the organization name is rendered after */}
120
114
  <img
@@ -131,16 +125,7 @@ const CourseGlimpseBase = ({ context, course }: CourseGlimpseProps & CommonDataP
131
125
  title={intl.formatMessage(messages.organizationIconAlt)}
132
126
  size="small"
133
127
  />
134
- <span className="title">
135
- {course.nb_seller_organizations === 1 ? (
136
- course.organization.title
137
- ) : (
138
- <FormattedMessage
139
- {...messages.organizationsTitle}
140
- values={{ nbOrganizations: course.nb_seller_organizations }}
141
- />
142
- )}
143
- </span>
128
+ <span className="title">{course.organization.title}</span>
144
129
  </div>
145
130
  <div className="course-glimpse__metadata course-glimpse__metadata--code">
146
131
  <Icon
@@ -38,7 +38,6 @@ const getCourseGlimpsePropsFromCourseProductRelation = (
38
38
  title: courseProductRelation.organizations[0].title,
39
39
  image: courseProductRelation.organizations[0].logo || null,
40
40
  },
41
- nb_seller_organizations: courseProductRelation.organizations.length,
42
41
  product_id: courseProductRelation.product.id,
43
42
  course_route: courseRoute,
44
43
  state: courseProductRelation.product.state,
@@ -55,7 +54,6 @@ const getCourseGlimpsePropsFromRichieCourse = (course: RichieCourse): CourseGlim
55
54
  title: course.organization_highlighted,
56
55
  image: course.organization_highlighted_cover_image,
57
56
  },
58
- nb_seller_organizations: course.organizations.length,
59
57
  icon: course.icon,
60
58
  state: course.state,
61
59
  duration: course.duration,
@@ -93,7 +91,6 @@ const getCourseGlimpsePropsFromJoanieCourse = (
93
91
  title: course.organizations[0].title,
94
92
  image: course.organizations[0].logo || null,
95
93
  },
96
- nb_seller_organizations: course.organizations.length,
97
94
  state: course.state,
98
95
  nb_course_runs: course.course_run_ids.length,
99
96
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "richie-education",
3
- "version": "2.25.0-b2.dev42",
3
+ "version": "2.25.0-b2.dev44",
4
4
  "description": "A CMS to build learning portals for Open Education",
5
5
  "main": "sandbox/manage.py",
6
6
  "scripts": {