@clickview/ship-it 0.0.18 → 0.0.20-dev.1

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 (138) hide show
  1. package/README.md +48 -48
  2. package/config.json +10 -10
  3. package/lib/config.json +11 -11
  4. package/lib/src/api-clients/git-lab/GitLabApiClient.js +404 -404
  5. package/lib/src/api-clients/git-lab/GitLabMapper.js +81 -81
  6. package/lib/src/api-clients/index.js +18 -18
  7. package/lib/src/api-clients/team-city/TeamCityApiClient.js +85 -85
  8. package/lib/src/commands/BumpPackagesCommand.js +84 -84
  9. package/lib/src/commands/CreateBranchCommand.js +100 -100
  10. package/lib/src/commands/CreateMergeRequestCommand.js +107 -107
  11. package/lib/src/commands/CreateReleaseNotesCommand.js +84 -84
  12. package/lib/src/commands/CreateTestingNotesCommand.js +84 -84
  13. package/lib/src/commands/InstallPackagesCommand.js +76 -76
  14. package/lib/src/commands/ListProjectsCommand.js +76 -76
  15. package/lib/src/commands/ReleaseCommand.js +129 -129
  16. package/lib/src/commands/StartConsumingProjectBuildsCommand.js +76 -76
  17. package/lib/src/commands/StatusCommand.js +88 -88
  18. package/lib/src/commands/TagMasterCommand.js +76 -76
  19. package/lib/src/commands/ValidateMergeRequestCommand.js +76 -76
  20. package/lib/src/commands/VersionCommand.js +76 -76
  21. package/lib/src/commands/index.js +29 -29
  22. package/lib/src/constants/CommandTypeMapping.js +19 -19
  23. package/lib/src/constants/GitLabMemberIds.js +6 -6
  24. package/lib/src/constants/MonorepoPackageJsonFiles.js +16 -15
  25. package/lib/src/constants/ProjectNames.js +62 -61
  26. package/lib/src/constants/TeamCityBuildIDs.js +15 -15
  27. package/lib/src/constants/index.js +19 -19
  28. package/lib/src/errors/ShipItError.js +32 -32
  29. package/lib/src/errors/index.js +17 -17
  30. package/lib/src/index.js +18 -18
  31. package/lib/src/interfaces/Config.js +2 -2
  32. package/lib/src/interfaces/MergeRequestState.js +2 -2
  33. package/lib/src/interfaces/ProjectNames.js +2 -2
  34. package/lib/src/interfaces/ShipItCommand.js +2 -2
  35. package/lib/src/interfaces/ShipItTask.js +2 -2
  36. package/lib/src/interfaces/VersionType.js +2 -2
  37. package/lib/src/interfaces/command-cli-options/MilestoneCommandCliOptions.js +2 -2
  38. package/lib/src/interfaces/command-cli-options/ReleaseCommandCliOptions.js +2 -2
  39. package/lib/src/interfaces/command-cli-options/index.js +18 -18
  40. package/lib/src/interfaces/command-options/BaseCommandOptions.js +2 -2
  41. package/lib/src/interfaces/command-options/BumpPackagesCommandOptions.js +2 -2
  42. package/lib/src/interfaces/command-options/DockerMilestoneCommandOptions.js +2 -2
  43. package/lib/src/interfaces/command-options/MilestoneCommandOptions.js +2 -2
  44. package/lib/src/interfaces/command-options/ReleaseCommandOptions.js +2 -2
  45. package/lib/src/interfaces/command-options/ValidateMRCommandOptions.js +2 -2
  46. package/lib/src/interfaces/command-options/index.js +21 -21
  47. package/lib/src/interfaces/index.js +26 -26
  48. package/lib/src/interfaces/models/Branch.js +2 -2
  49. package/lib/src/interfaces/models/Commit.js +2 -2
  50. package/lib/src/interfaces/models/CommitFile.js +2 -2
  51. package/lib/src/interfaces/models/File.js +2 -2
  52. package/lib/src/interfaces/models/Label.js +2 -2
  53. package/lib/src/interfaces/models/MergeRequest.js +2 -2
  54. package/lib/src/interfaces/models/Milestone.js +2 -2
  55. package/lib/src/interfaces/models/Project.js +2 -2
  56. package/lib/src/interfaces/models/ProjectConfig.js +9 -9
  57. package/lib/src/interfaces/models/Release.js +2 -2
  58. package/lib/src/interfaces/models/Tag.js +2 -2
  59. package/lib/src/interfaces/models/index.js +26 -26
  60. package/lib/src/interfaces/view-models/MilestoneProject.js +2 -2
  61. package/lib/src/interfaces/view-models/index.js +17 -17
  62. package/lib/src/inversify.config.js +67 -67
  63. package/lib/src/services/GitLabService.js +498 -498
  64. package/lib/src/services/TeamCityService.js +34 -34
  65. package/lib/src/services/index.js +18 -18
  66. package/lib/src/startup/AddMilestoneCommand.js +95 -95
  67. package/lib/src/startup/GetAction.js +68 -68
  68. package/lib/src/startup/SetupCommands.js +128 -127
  69. package/lib/src/tasks/BumpPackagesTask.js +229 -229
  70. package/lib/src/tasks/BumpVersionTxtTask.js +110 -110
  71. package/lib/src/tasks/CommitPackageVersionsTask.js +116 -116
  72. package/lib/src/tasks/CreateBranchTask.js +104 -104
  73. package/lib/src/tasks/CreateMergeRequestTask.js +118 -118
  74. package/lib/src/tasks/CreateReleaseNotesTask.js +122 -122
  75. package/lib/src/tasks/CreateTestingNotesTask.js +135 -135
  76. package/lib/src/tasks/InstallPackagesTask.js +399 -351
  77. package/lib/src/tasks/ListProjectsTask.js +87 -87
  78. package/lib/src/tasks/StartConsumingProjectBuildsTask.js +149 -149
  79. package/lib/src/tasks/StartMonorepoBuildTask.js +95 -95
  80. package/lib/src/tasks/TagMasterTask.js +121 -121
  81. package/lib/src/tasks/ValidateCommitsTask.js +119 -119
  82. package/lib/src/tasks/ValidateDescriptionsTask.js +151 -151
  83. package/lib/src/tasks/ValidateMergeRequestTask.js +115 -115
  84. package/lib/src/tasks/ValidateTask.js +240 -237
  85. package/lib/src/tasks/VersionTask.js +98 -98
  86. package/lib/src/tasks/index.js +33 -33
  87. package/lib/src/types.js +49 -49
  88. package/lib/src/utils/BranchNames.js +11 -11
  89. package/lib/src/utils/Commits.js +55 -55
  90. package/lib/src/utils/Csv.js +54 -54
  91. package/lib/src/utils/Descriptions.js +237 -237
  92. package/lib/src/utils/GroupIds.js +6 -6
  93. package/lib/src/utils/Logger.js +62 -62
  94. package/lib/src/utils/ProjectIds.js +47 -47
  95. package/lib/src/utils/Versions.js +20 -20
  96. package/lib/src/utils/index.js +22 -22
  97. package/package.json +47 -47
  98. package/dist/A2/A2 Testing Notes.csv +0 -518
  99. package/dist/A2/Batch.Api.md +0 -37
  100. package/dist/A2/ClickView.Curator.md +0 -17
  101. package/dist/A2/Clients.md +0 -23
  102. package/dist/A2/Discover.Api.md +0 -14
  103. package/dist/A2/FileGenerator.md +0 -8
  104. package/dist/A2/Krakend.md +0 -25
  105. package/dist/A2/Library.Api.md +0 -13
  106. package/dist/A2/Lite.md +0 -27
  107. package/dist/A2/Master.Auth.md +0 -52
  108. package/dist/A2/Objects.Api.md +0 -8
  109. package/dist/A2/Permissions.Api.md +0 -12
  110. package/dist/A2/Release Notes.md +0 -479
  111. package/dist/A2/Search.Api.md +0 -12
  112. package/dist/A2/Subjects.API.md +0 -22
  113. package/dist/A2/Users.Api.md +0 -63
  114. package/dist/A2/clickview.md +0 -83
  115. package/dist/A2/index.app.md +0 -15
  116. package/dist/Z2/Analytics Web.md +0 -7
  117. package/dist/Z2/Batch.Api.md +0 -13
  118. package/dist/Z2/ClickView Online.md +0 -19
  119. package/dist/Z2/ClickView.Cron.md +0 -8
  120. package/dist/Z2/ClickView.Curator.md +0 -39
  121. package/dist/Z2/Clients.md +0 -31
  122. package/dist/Z2/Discover.Api.md +0 -12
  123. package/dist/Z2/Domain.Api.md +0 -31
  124. package/dist/Z2/Image.Api.md +0 -12
  125. package/dist/Z2/Krakend.md +0 -33
  126. package/dist/Z2/LTI.md +0 -8
  127. package/dist/Z2/Launch.Web.md +0 -9
  128. package/dist/Z2/Library Editor.md +0 -7
  129. package/dist/Z2/Library.Api.md +0 -13
  130. package/dist/Z2/Lite.md +0 -32
  131. package/dist/Z2/Master.Auth.md +0 -16
  132. package/dist/Z2/Objects.Api.md +0 -9
  133. package/dist/Z2/Permissions.Api.md +0 -0
  134. package/dist/Z2/Prospect.Api.md +0 -17
  135. package/dist/Z2/RealtimeSalesforceSync.md +0 -19
  136. package/dist/Z2/Release Notes.md +0 -549
  137. package/dist/Z2/Users.Api.md +0 -13
  138. package/dist/Z2/clickview.md +0 -135
@@ -1,135 +0,0 @@
1
-
2
- # Dependencies
3
- - https://gitlab.cvinternal.net/clickview/front-end/clickview/-/merge_requests/3007
4
- - https://gitlab.cvinternal.net/clickview/front-end/ClickView.Curator/-/merge_requests/1068
5
- - https://gitlab.cvinternal.net/clickview/front-end/clickview/-/merge_requests/2944
6
- - https://gitlab.cvinternal.net/clickview/front-end/clickview/-/merge_requests/2941
7
-
8
- # Curator
9
-
10
- ## Customer changes
11
- - Fixed an issue where adding hidden, pedagogy and skill tags were restricted by max keyword tags. Fixes INBOX-4554.
12
- - Fixed issue where we could add max allowed keyword tags number + 1.
13
- - Fixed a bug where a hero video or featured video widget could be in the TOC when it had no name. Fixes CC-476
14
- - (dev only) Added navigation to the assembly line to switch between ingestion, curation, and resourcing tabs. Implements CC-468
15
- - (dev only) Added a search bar to the assembly line. Implements CC-468
16
- - Fixed a bug where a user's display name would never show up in Curator in the "edit details" form. Fixes INBOX-4480
17
- - Added support for a new "Enhanced slider small" video widget template. Implements LTE-1820
18
-
19
- ## Code changes
20
- - Updated `canAddNormalTag` method `TagHelper` to check for less than instead of less than or equal to.
21
- - In `EditVideoTagsView` the `createAndAssociateTag` method now check the tag type and if the error is relevant to the type.
22
- - Updated the route for the trial management page in curator.
23
- - Setup and exported an `AssemblyLineApplication`.
24
-
25
- # Lite
26
-
27
- ## Code changes
28
- - Fixed a bug where if you search for something, then resize the browser window to make the search bar collapse into the icon, the search event the logged when you first searched would log again. Fixes INBOX-4196
29
- - Update 'container-compact' to match the design. Implements INBOX-4528
30
- - Added new hook `useCountryPlaceholder` to get / generate a placeholder for any country.
31
- - Updated `LocalityHelper` with methods to get default placeholders for supported country.
32
- - Updated `SearchLocalityInput` to use the `useCountryPlaceholder`.
33
- - Added `event_topic` property to braze custom event submission data. Implements LTE-1832.
34
- - Removed `user_type1 braze user attribute. Implements LTE-1830.
35
- - Update braze custom even type name to `product_trial_requested` as requested by Andrew.
36
- - Added analytics events to be consistent with [Sign up flow diagram](https://www.figma.com/file/p7yMOWyPyftDmc21kb2Lh6/Sign-up-flow?node-id=0-1&t=ItRGomT3BCH9i1yi-0)
37
- - Added `useAutoCompleteService` hook to load google api and get an instance of the service.
38
- - Fixed issue when creating prospects from Cant find school step did not have `city` or `province` data.
39
- - Updated `registerStore` to load permissions in at startup once we have access to the `currentUser`
40
- - Fixes INBOX-4516
41
- - Add calendar utils to convert date to table of week date. Implements LTE-1813
42
- - Add Calendar component. Implements LTE-1788
43
- - Add jump to the next/previous month toolbar function. Implements LTE-1814
44
- - Limits "jump to" month range for the calendar. LTE-1828
45
- - Add Special Event Calendar application. Implements LTE-1812
46
- - Add Calendar button to DiscoverHeader
47
- - Add new setting to feature switch Implements LTE-1822
48
-
49
- ## Customer changes
50
- - The text in the audience filter buttons on topic pages can no longer be highlighted. Fixes INBOX-4277
51
- - Fixed an issue where topics wouldn't show a proper 404 page if the topic couldn't be found. Fixes INBOX-4287
52
- - Now in Lite, the student feed page has a wider width to match the topic page width.
53
- - Fixed an issue where if you filter a curated topic page by an audience so that all videos/playlists/series beneath a blurb heading are filtered out, but there is still a topic widget underneath that blurb heading, the heading will be filtered out. Fixes INBOX-4476
54
- - As an anon user, you no longer need to click on the CTA of the "welcome" popup to close the popup, if the region only has 1 presentation. Fixes INBOX-4510
55
- - Fixed a bug where using the presentation switcher on any settings page would take you to the settings page instead of the dashboard.
56
- - Remove the ability for students to create clips. Implements INBOX-4562. The rational behind this decision is that as it currently stands, students cannot share so the clip functionality is somewhat meaningless. We intend to bring this feature back in a future release when we revisit student clips, interactives and sharing.
57
- - Users who enter an existing email into the sign up form will now be taken to the login page with their email prefilled. This will also mean if the email domain is linked to SSO, they will immediately be prompted with the IDP picker (School picker).
58
- - Users who select an existing school will now be prompted to sign in using SSO, this will take them to the login page with both their email and their customer id prefilled. In Z3 we will be updating this to actually check if the school in question has SSO, as to only show the log in button when the school is using SSO.
59
- - International prospects signing up will not be defaulted to 'US' locale anymore. Implements LTE-1819.
60
- - The Locality search placeholder displays a random city from the prospects country.
61
- - If the geocoder fails when clicking 'use my location' in sign up, we now display a relevant error. Implements LTE-1818.
62
- - Fixed an issue when creating prospects from 'Cant find school step' which did not send 'city' or 'province' data. Fixes LTE-1829.
63
- - (dev only) In the Lite, staff can now see a monthly calendar (range from the previous 6 months to the next 12 months) on the `/calendar` page.
64
- - Students can no longer search for clips and interactives. Fixes INBOX-4521
65
- - Fixed an issue where the search page would not scroll back to the top if you entered a new search term. Fixes INBOX-4526.
66
- - Added a nicer hover state for the clip and interactive badges. Implements LTE-1796
67
- - Updated small video widget templates to display the same total columns and thumbnail sizes as "large" versions on any screen size below 1200px
68
- - All horizontal sliders can now be scrolled through freely without any snapping (except for student feed). Implements LTE-1797
69
- - Fixed a bug in the student feed on playlists and series, where if you're on a touch screen and are swiping through the videos, the indicator dots underneath don't update.
70
- - On mobile and tablet devices, browsings through the horizontal topics slider is now much easier. The forwards and backwards buttons are no longer shown and the user can simply scroll through the list like in the ClickView apps. Fixes INBOX-4451
71
-
72
- # Player
73
-
74
- ## Customer changes
75
- - The favourite button styles have been updated the match the changes made to the favourite button for the new discover and topics dashboards.
76
-
77
- # Shared
78
-
79
- ## Code changes
80
- - Added a new `Count` badge type
81
- - Updated `PillTabSelector` to optionally accept a count for each tab
82
- - Updated `ScopedSearchBar` to optionally accept analytics props
83
- - Update padding & margin in video guidance in the hover card. Fix INBOX-4487
84
- - Added a new `useBreakpoints` hook, which can be used to know which breakpoint the page is currently on. Partially implements INBOX-4474
85
- - Deprecated `useGetMediaQueryString` in favour of `useBreakpoints`
86
- - Updated all code under `/libs/shared/components/widgets/*` to use `useBreakpoints` and to use Bootstrap's SCSS breakpoint mixin instead of the old media query mixin. Partially implements INBOX-4474
87
-
88
- # Styles
89
-
90
- ## Code changes
91
- - Added a new `count-badge` class
92
-
93
- # Testing
94
- - In NP, open your network tab, and search for something. When you unfocus the search bar, a `cv_product_search` event should get logged. Now, shrink your browser window down to a screen size small enough for the search bar to be replaced with a search icon. In your network tab, you should not see a second event logged for `cv_product_search`. If you follow these replication steps in production, you will see that it logs every time you resize the window to make the search icon appear or disappear.
95
- - You should not be able to highlight the text in audience filter buttons on topic pages in NP.
96
- - In NP, go to the topics URL and enter a fake ID into the URL. When you go to that URL, you should see a "Topic not found" error page
97
- - Open [this dashboard](https://www.staging.clickview.net/topics/5Rezqqw/cells?dashboardId=164552081066225664&preview=true&skipPrompt=true) and filter by "year 7". The second heading should get filtered out along with the hero video underneath it, but the topic widget should remain in place
98
- - In Curator, go to the (new) manage video page, we should:
99
- - Not be able to add more than 10 keyword tags.
100
- - Be able to add any amount of hidden tags.
101
- - Be able to select any amount of pedagogy and skill tags.
102
- - In NP, go to latest releases, click "Update your preferences", then use the presentation switcher to switch your presentation. You should end up on the dashboard, not the settings page.
103
- - In NP as a student, ensure you cannot create a clip from the play page, video actions in list views, and from the player.
104
- - In NP, sign up using an existing email, note that when taken to auth, your email is prefilled.
105
- - In NP, sign up with a non existing email and select a school that has SSO, note when taken to auth, you are taken to the IDP selector with only one option.
106
- - In Lite, Use a vpn to sign up from any country other than (`AU`, `UK`, `NZ` and `US`)
107
- - The Find school step's locality search should be scoped to that country.
108
- - The locality input placeholder should include a randomly generate city from that country in format `E.g. {randomCity}`
109
- - If we click 'use my current location' and block the request when it popups, we should display an relevant error.
110
- - In 'Cant find school step' we should be able to create a new prospect school and the request object should have 'city' and 'province' data.
111
- - We should be logging analytics events where ever we have 'logAction' in this [Sign up flow diagram](https://www.figma.com/file/p7yMOWyPyftDmc21kb2Lh6/Sign-up-flow?node-id=0-1&t=ItRGomT3BCH9i1yi-0)
112
- - Create a hero media widget -> enter a heading -> check the TOC checkbox -> remove the heading. The TOC checkbox should automatically be unchecked.
113
- - (dev only) In curator's assembly line, you should be able to browse between ingestion, curation, and resourcing tabs.
114
- - In NP:
115
- - As both an authenticated and public user:
116
- - There should no longer be a request to fetch permissions via API. It will instead be loaded from bootstrapped data.
117
- - In lite, staff whose `Has special event calendar` domain option set to be true should see a correct calendar on the `/calendar` page. The calendar should start from Monday. The left/ right arrow button in the top right of the calendar should navigate the user to the next/previous month accordingly. The `Today` button should navigate to the current month. User can only go to previous 6 months and next 6 months.
118
- - Students in NP should no longer be able to search for clips and interactives.
119
- - Students in NP should no longer be able to filter by "clips" and "interactives" in the "Types" filter
120
- - Anon users in NP should still be able to search for clips and interactives
121
- - Staff users in NP should still be able to search for clips and interactives
122
- - In NP, search for a term, scroll down to the bottom of the page, then update the search to a new term. The page should scroll back to the top.
123
- - When editing a user, their display name should be autofilled in the form.
124
- - Hover on the clip and interactive badges in NP. They should smoothly expand to reveal the text "Clip" or "Interactive"
125
- - You should now be able to create a "New small slider" video widget in Curation Studio.
126
- - [This dashboard](https://staging.clickviewcurator.com/manage/dashboards/163428263073574912/edit), which has 4 video widgets with 4 different slider templates, should:
127
- - Display the accurate partial loading at every screen size
128
- - Should be able to browse all the way through to the end of the widget using the "next" button at every screen size
129
- - At screen size above 1200px, the "small" templates should display 4 videos at a time, while the "large" templates should display 3 videos at a time (and the partial loading should reflect this)
130
- - At screen sizes below 1200px, the "small" and "large" templates should all display the same number of videos
131
- - The recent activities widget on the student feed should be browsable to the end of the widget at all screen sizes
132
- - In lite, set the domain option of `Has Special Event Calendar` to true for a customer, log in as staff from that customer, and there will be a new `Calendar` button in the discover header. Click on it should navigate you to `/special-event-calendar` page.
133
- - Stress test all sliders on mobile (touch screen swiping). Everything should look and feel good
134
- - On mobile, test out the touchscreen slider behavior for topic slider widgets. The behavior should be smooth horizontal scrolling and not feel buggy or janky. The widget should also no longer display "next" and "previous" buttons, as the only way to browse now is by scrolling.
135
- - On desktop, test out the topic slider widgets in both NP and Online. They should behave like normal.