@hedia/recommendation-screen 2.1.24 → 2.1.25-alpha.0

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 (51) hide show
  1. package/.github/pull_request_template.md +6 -0
  2. package/.github/workflows/on-post-merge-publish-package.yaml +1 -2
  3. package/.github/workflows/validate-pr-title.yaml +1 -1
  4. package/.github/workflows/{on-open-pr-publish-alpha.yaml → version-bump-publish-alpha.yaml} +8 -18
  5. package/coverage/clover.xml +716 -0
  6. package/coverage/coverage-final.json +28 -0
  7. package/coverage/lcov-report/base.css +224 -0
  8. package/coverage/lcov-report/block-navigation.js +79 -0
  9. package/coverage/lcov-report/favicon.png +0 -0
  10. package/coverage/lcov-report/index.html +201 -0
  11. package/coverage/lcov-report/prettify.css +1 -0
  12. package/coverage/lcov-report/prettify.js +2 -0
  13. package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
  14. package/coverage/lcov-report/sorter.js +170 -0
  15. package/coverage/lcov-report/src/RecommendationScreen.tsx.html +2501 -0
  16. package/coverage/lcov-report/src/__tests__/index.html +111 -0
  17. package/coverage/lcov-report/src/__tests__/utils.tsx.html +533 -0
  18. package/coverage/lcov-report/src/components/Header.tsx.html +356 -0
  19. package/coverage/lcov-report/src/components/InfoBars.tsx.html +518 -0
  20. package/coverage/lcov-report/src/components/InvisibleNumberInput.tsx.html +554 -0
  21. package/coverage/lcov-report/src/components/LimitationMessage.tsx.html +209 -0
  22. package/coverage/lcov-report/src/components/LineSeparator.tsx.html +161 -0
  23. package/coverage/lcov-report/src/components/RecentInsulin.tsx.html +410 -0
  24. package/coverage/lcov-report/src/components/RecommendationModal.tsx.html +923 -0
  25. package/coverage/lcov-report/src/components/RecommendedCarbs.tsx.html +1061 -0
  26. package/coverage/lcov-report/src/components/RecommendedInsulin.tsx.html +779 -0
  27. package/coverage/lcov-report/src/components/Remeasure.tsx.html +551 -0
  28. package/coverage/lcov-report/src/components/TransferToLogbook.tsx.html +443 -0
  29. package/coverage/lcov-report/src/components/TwoOptionModal.tsx.html +665 -0
  30. package/coverage/lcov-report/src/components/activity/Activity.tsx.html +371 -0
  31. package/coverage/lcov-report/src/components/activity/ActivityIcon.tsx.html +281 -0
  32. package/coverage/lcov-report/src/components/activity/ActivityIntensity.tsx.html +281 -0
  33. package/coverage/lcov-report/src/components/activity/index.html +141 -0
  34. package/coverage/lcov-report/src/components/index.html +276 -0
  35. package/coverage/lcov-report/src/components/mood/Emotion.tsx.html +353 -0
  36. package/coverage/lcov-report/src/components/mood/MoodIcon.tsx.html +335 -0
  37. package/coverage/lcov-report/src/components/mood/index.html +126 -0
  38. package/coverage/lcov-report/src/index.html +111 -0
  39. package/coverage/lcov-report/src/locale/i18nUtils.ts.html +206 -0
  40. package/coverage/lcov-report/src/locale/index.html +111 -0
  41. package/coverage/lcov-report/src/utils/AttentionMessages.tsx.html +554 -0
  42. package/coverage/lcov-report/src/utils/Constants.ts.html +248 -0
  43. package/coverage/lcov-report/src/utils/RecommendationError.tsx.html +620 -0
  44. package/coverage/lcov-report/src/utils/RecommendationUtils.ts.html +764 -0
  45. package/coverage/lcov-report/src/utils/Translations.ts.html +131 -0
  46. package/coverage/lcov-report/src/utils/Utils.ts.html +545 -0
  47. package/coverage/lcov-report/src/utils/Validations.ts.html +1544 -0
  48. package/coverage/lcov-report/src/utils/index.html +201 -0
  49. package/coverage/lcov.info +1611 -0
  50. package/package.json +1 -1
  51. package/.github/workflows/on-push-commit-bump-and-publish-alpha.yaml +0 -55
@@ -0,0 +1,6 @@
1
+ <!--
2
+ ⚠️⚠️ If pointing to master ⚠️⚠️
3
+ -----------------------------
4
+ - Remember to include HDA on the PR title
5
+ - Remember to set the Label
6
+ --!>
@@ -32,5 +32,4 @@ jobs:
32
32
  issue-number: ${{ github.event.number }}
33
33
  github-token: ${{ secrets.GITHUB_TOKEN }}
34
34
  is-post-merge: true
35
- run-ci: true
36
- run-tsc: true
35
+ run-script: npm ci && npm run tsc
@@ -4,7 +4,7 @@ on:
4
4
  pull_request:
5
5
  branches:
6
6
  - master
7
- types: [opened, reopened, edited, synchronize]
7
+ types: [opened, reopened, edited]
8
8
 
9
9
  permissions:
10
10
  pull-requests: read
@@ -1,10 +1,10 @@
1
- name: On open PR - Version Bump & Publish Alpha
1
+ name: Version Bump & Publish Alpha
2
2
 
3
3
  on:
4
4
  pull_request:
5
5
  branches:
6
6
  - master
7
- types: [opened]
7
+ types: [opened, reopened, synchronize]
8
8
 
9
9
  env:
10
10
  NPM_TOKEN: ${{ secrets.HEDIA_BOT_NPM_TOKEN }}
@@ -20,7 +20,7 @@ jobs:
20
20
  one_of: major,minor,patch
21
21
  repo_token: ${{ secrets.GITHUB_TOKEN }}
22
22
 
23
- on-open-pr-publish-alpha:
23
+ version-bump-publish-alpha:
24
24
  needs: [validate-pr-labels]
25
25
  runs-on: ubuntu-latest
26
26
 
@@ -34,26 +34,16 @@ jobs:
34
34
  ref: ${{ github.event.pull_request.head.ref }}
35
35
  token: ${{ secrets.HEDIA_BOT_GITHUB_PAT }}
36
36
 
37
- - name: Use Node.js ${{ matrix.node-version }}
38
- uses: actions/setup-node@v2
37
+ - uses: mstachniuk/ci-skip@v1
39
38
  with:
40
- node-version: ${{ matrix.node-version }}
41
-
42
- - name: Set identity
43
- run: |
44
- git config --global user.email "ci@hedia.co"
45
- git config --global user.name "Hedia CI Bot"
39
+ commit-filter: "autobump"
46
40
 
47
41
  - name: Autobump & Publish
42
+ if: ${{ env.CI_SKIP == 'false' }}
48
43
  uses: hedia-team/autobump-and-publish@master
49
44
  with:
45
+ github-token: ${{ secrets.GITHUB_TOKEN }}
50
46
  label: ${{ toJson(github.event.pull_request.labels.*.name) }}
51
47
  npm-token: ${{ env.NPM_TOKEN }}
52
48
  issue-number: ${{ github.event.number }}
53
- github-token: ${{ secrets.GITHUB_TOKEN }}
54
- run-ci: true
55
- run-lint: true
56
- run-lint-pkg: true
57
- run-prettier: true
58
- run-test-coverage: true
59
- run-tsc: true
49
+ run-script: npm ci && npm run lint-pkg && npm run lint && npm run prettier && npm run test-coverage && npm run tsc