@byu-oit/vue-decision-processing-components 9.7.0 → 9.7.8

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.
@@ -1,11 +1,16 @@
1
1
  name: Deployment
2
2
 
3
+ permissions:
4
+ # id-token: write # Required for OIDC
5
+ contents: read
6
+ packages: write # Required to publish to Github Package Registry
7
+
3
8
  on:
4
9
  push:
5
10
  branches: [ main, v8 ]
6
11
 
7
12
  env:
8
- node_version: "22"
13
+ node_version: "24"
9
14
 
10
15
  jobs:
11
16
  publish:
@@ -14,28 +19,28 @@ jobs:
14
19
  runs-on: ubuntu-latest
15
20
  steps:
16
21
  - name: Check out
17
- uses: actions/checkout@v4
22
+ uses: actions/checkout@v6
18
23
 
19
24
  - name: Set up Node.js
20
- uses: actions/setup-node@v4
25
+ uses: actions/setup-node@v6
21
26
  with:
22
27
  node-version: ${{ env.node_version }}
23
- registry-url: https://npm.pkg.github.com
28
+ registry-url: https://registry.npmjs.org
24
29
  scope: '@byu-oit'
25
30
 
26
31
  - name: Publish
27
- run: npm publish
32
+ run: npm publish --access public
28
33
  env:
29
- NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
34
+ NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
30
35
 
31
36
  - name: Set up Node.js
32
- uses: actions/setup-node@v4
37
+ uses: actions/setup-node@v6
33
38
  with:
34
39
  node-version: ${{ env.node_version }}
35
- registry-url: https://registry.npmjs.org
40
+ registry-url: https://npm.pkg.github.com
36
41
  scope: '@byu-oit'
37
42
 
38
43
  - name: Publish
39
- run: npm publish --access public
44
+ run: npm publish
40
45
  env:
41
- NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
46
+ NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
package/README.md CHANGED
@@ -3,23 +3,27 @@
3
3
  ## Overview
4
4
  Vue.js components to be shared between the decision processing applications for the various CES Schools.
5
5
 
6
- ## How to Use This
7
-
8
- - All Decision Processing Clients use various components from this npm package.
9
-
10
- ## How to Build Locally
6
+ ## How to Run Locally
7
+ This package isn’t currently set up to run or build locally.
8
+ - To install it in a project, run:
9
+ `npm install @byu-oit/vue-decision-processing-components`
11
10
 
12
- - Currently no way to run/build locally
13
- - installation: npm install @byu-oit/vue-decision-processing-components
14
-
15
- ## How to Publish
11
+ ## How to Deploy
16
12
  - Bump version number in [package.json](./package.json#L3) using the following command in bash
17
- - `npm version [patch|minor|major]`
18
- - then change the commit message to follow the conventional commit message standard `git commit --amend` to something like `chore: bump version x.y.z`
13
+ - `npm version [patch|minor|major]`
14
+ - then change the commit message to follow the conventional commit message standard `git commit --amend` to something like `chore: bump version x.y.z`
19
15
  This automatically creates a git tag if you run `git push --follow-tags` (which labels commits with the exact version that was published to npm).
20
16
  - PR to main
21
17
  - Manually publish a release by clicking on “Releases” in the sidebar and then draft a new release from there.
22
- - The name should be the new version number prefixed with a “v”.
18
+ - The name should be the new version number prefixed with a “v”.
19
+
20
+ ## How to Use This
21
+ This package provides common components for:
22
+ - BYUI and Ensign decision processing clients (ldsbc-decision-processing, byui-decision-processing)
23
+ - BYUH uses ces-decision-processing, a refactored front-end for decision processing sites
23
24
 
24
25
  ## How to Test
25
- - vue-decision-processing-components can be tested by making changes to node modules in any decision-processing client and then copied to this repo to push the changes to prd.
26
+ To test changes before publishing:
27
+ - Make edits directly in the node_modules folder of a decision processing client
28
+ - Verify the changes work as expected
29
+ - Copy the updated code back into this repo and push a PR
package/SupportDialog.vue CHANGED
@@ -114,7 +114,8 @@ export default {
114
114
  const callerId = netId ?? `${preferredFirstName} ${surname}`
115
115
  // const serializedState = btoa(JSON.stringify(this.$store.state))
116
116
  const body = {
117
- priority: '4',
117
+ impact: '3',
118
+ urgency: '3',
118
119
  caller_id: callerId,
119
120
  short_description: this.shortDescription,
120
121
  description: [this.description.trim(), '\n', callerId, location.href].join('\n')
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@byu-oit/vue-decision-processing-components",
3
- "version": "9.7.0",
3
+ "version": "9.7.8",
4
4
  "description": "Vue components shared between decision processing systems for the CES schools.",
5
5
  "dependencies": {
6
6
  "@fortawesome/fontawesome-free": "^5.15.4",
@@ -33,5 +33,8 @@
33
33
  "peerDependencies": {
34
34
  "vue": "^2.6.12",
35
35
  "vuex": "^3.5.1"
36
+ },
37
+ "publishConfig": {
38
+ "provenance": false
36
39
  }
37
40
  }
@@ -0,0 +1,26 @@
1
+ /*
2
+ * shape of elements:
3
+ * {
4
+ * status: '',
5
+ * call: '',
6
+ * message : ''
7
+ * }
8
+ */
9
+ export const state = {
10
+ status: '',
11
+ call: '',
12
+ message: ''
13
+ }
14
+
15
+ export const mutations = {
16
+ resetApiError (state) {
17
+ state.status = ''
18
+ state.call = ''
19
+ state.message = ''
20
+ },
21
+ setApiError (state, error = {}) {
22
+ state.status = error.status
23
+ state.call = error.call
24
+ state.message = error.message
25
+ }
26
+ }