richie-education 3.5.1 → 3.5.2-dev8

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.
Files changed (29) hide show
  1. package/js/api/joanie.ts +5 -0
  2. package/js/api/lms/dummy.ts +1 -0
  3. package/js/api/lms/openedx-fonzie-keycloak.spec.ts +7 -10
  4. package/js/api/lms/openedx-fonzie-keycloak.ts +24 -21
  5. package/js/components/SaleTunnel/index.spec.tsx +31 -1
  6. package/js/hooks/useLearnerCoursesSearch/index.tsx +17 -4
  7. package/js/hooks/useProductOrder/index.spec.tsx +1 -0
  8. package/js/pages/DashboardCourses/index.spec.tsx +40 -8
  9. package/js/types/Joanie.ts +18 -1
  10. package/js/utils/OrderHelper/index.spec.ts +75 -0
  11. package/js/utils/OrderHelper/index.ts +14 -2
  12. package/js/utils/test/factories/joanie.ts +10 -0
  13. package/js/widgets/Dashboard/components/DashboardItem/Enrollment/ProductCertificateFooter/index.spec.tsx +213 -1
  14. package/js/widgets/Dashboard/components/DashboardItem/Enrollment/ProductCertificateFooter/index.tsx +133 -31
  15. package/js/widgets/Dashboard/components/DashboardItem/Order/DashboardItemOrder.spec.tsx +22 -0
  16. package/js/widgets/Dashboard/components/DashboardItem/Order/DashboardItemOrder.tsx +29 -13
  17. package/js/widgets/Dashboard/components/DashboardItem/Order/DashboardItemOrderContract.useUnionResource.cache.spec.tsx +0 -2
  18. package/js/widgets/Dashboard/components/DashboardItem/Order/OrderStateLearnerMessage/index.spec.tsx +12 -0
  19. package/js/widgets/Dashboard/components/DashboardItem/Order/OrderStateLearnerMessage/index.tsx +11 -0
  20. package/js/widgets/Dashboard/components/DashboardItem/Order/OrderStateMessage/index.tsx +5 -1
  21. package/js/widgets/Dashboard/components/DashboardItem/Order/OrderStateTeacherMessage/index.spec.tsx +12 -0
  22. package/js/widgets/Dashboard/components/DashboardItem/Order/OrderStateTeacherMessage/index.tsx +11 -0
  23. package/js/widgets/Dashboard/components/DashboardItem/Order/OrderWithdrawalModal/index.spec.tsx +145 -0
  24. package/js/widgets/Dashboard/components/DashboardItem/Order/OrderWithdrawalModal/index.tsx +259 -0
  25. package/js/widgets/Dashboard/components/DashboardItem/Order/OrganizationBlock/index.spec.tsx +102 -0
  26. package/js/widgets/Dashboard/components/DashboardItem/Order/OrganizationBlock/index.tsx +84 -2
  27. package/js/widgets/Dashboard/components/DashboardItem/_styles.scss +9 -1
  28. package/js/widgets/Dashboard/index.spec.tsx +0 -1
  29. package/package.json +1 -1
@@ -56,7 +56,9 @@
56
56
 
57
57
  &__status {
58
58
  display: flex;
59
- align-items: center;
59
+ // flex-start (not center) so the icon stays aligned with the first line
60
+ // of text when the text wraps onto several lines.
61
+ align-items: flex-start;
60
62
  gap: 0.5rem;
61
63
 
62
64
  @include media-breakpoint-down(sm) {
@@ -179,6 +181,7 @@
179
181
  justify-content: space-between;
180
182
  padding: 0.5rem 1rem;
181
183
  min-height: 3.75rem;
184
+ border-top: $onepixel solid r-theme-val(dashboard-item, base-border);
182
185
 
183
186
  &:first-child {
184
187
  border-top: 0;
@@ -201,6 +204,11 @@
201
204
  p {
202
205
  margin: 0;
203
206
  }
207
+
208
+ &__withdrawal__button {
209
+ text-decoration: underline;
210
+ white-space: nowrap;
211
+ }
204
212
  }
205
213
 
206
214
  &__runs {
@@ -52,7 +52,6 @@ describe('<Dashboard />', () => {
52
52
  fetchMock.get(
53
53
  'https://joanie.endpoint/api/v1.0/orders/' +
54
54
  '?product_type=credential' +
55
- '&state_exclude=canceled' +
56
55
  '&state_exclude=refunding' +
57
56
  '&state_exclude=refunded' +
58
57
  '&page=1' +
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "richie-education",
3
- "version": "3.5.1",
3
+ "version": "3.5.2-dev8",
4
4
  "description": "A CMS to build learning portals for Open Education",
5
5
  "main": "sandbox/manage.py",
6
6
  "scripts": {