@byu-oit/vue-decision-processing-components 8.32.0 → 8.32.2

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.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [8.32.2](https://github.com/byu-oit/vue-decision-processing-components/compare/v8.32.1...v8.32.2) (2022-12-15)
6
+
7
+ ### [8.32.1](https://github.com/byu-oit/vue-decision-processing-components/compare/v8.32.0...v8.32.1) (2022-12-06)
8
+
5
9
  ## [8.32.0](https://github.com/byu-oit/vue-decision-processing-components/compare/v8.31.0...v8.32.0) (2022-12-02)
6
10
 
7
11
 
@@ -62,6 +62,7 @@
62
62
  },
63
63
  computed: {
64
64
  ...mapState({
65
+ env: 'environment',
65
66
  applicantId: state => state.application.applicantId
66
67
  }),
67
68
  spinner () { return faSpinner },
@@ -76,7 +77,9 @@
76
77
  return
77
78
  }
78
79
  try {
79
- const url = `https://api.byu.edu/recordsYAPI/v1.0/student/byuId/${applicantId.trim()}/CESflagsHolds`
80
+ const url = this.env !== 'development'
81
+ ? `https://api.byu.edu/recordsYAPI/v1.0/student/byuId/${applicantId.trim()}/CESflagsHolds`
82
+ : `https://api-sandbox.byu.edu/recordsYAPI/v1.0/student/byuId/${applicantId.trim()}/CESflagsHolds`
80
83
  const { body, status } = await window.byu.auth.request({ url })
81
84
  if (status >= 400) {
82
85
  this.error = true
package/DetailsHeader.vue CHANGED
@@ -33,7 +33,7 @@
33
33
  <div class="actions bg-light text-body">
34
34
  <slot name="actionsCompact"></slot>
35
35
  </div>
36
- <div class="bug">
36
+ <div class="bug" v-if="!hideBug">
37
37
  <button class="btn btn-sm btn-outline-warning" title="Submit an incident" @click="openSupportModal">
38
38
  <font-awesome-icon :icon="bug" />
39
39
  </button>
@@ -59,7 +59,7 @@
59
59
  <div class="actions bg-light text-body">
60
60
  <slot name="actions"></slot>
61
61
  </div>
62
- <div class="bug">
62
+ <div class="bug" v-if="!hideBug">
63
63
  <button class="btn btn-sm btn-outline-warning" @click="openSupportModal">
64
64
  <font-awesome-icon :icon="bug" />
65
65
  </button>
@@ -92,6 +92,10 @@ export default {
92
92
  type: Boolean,
93
93
  default: false
94
94
  },
95
+ hideBug:{
96
+ type:Boolean,
97
+ default: false
98
+ },
95
99
  appId: {
96
100
  type: String
97
101
  }
package/SupportDialog.vue CHANGED
@@ -112,8 +112,6 @@ export default {
112
112
  const callerId = netId ?? `${preferredFirstName} ${surname}`
113
113
  // const serializedState = btoa(JSON.stringify(this.$store.state))
114
114
  const body = {
115
- service_offering: 'CES Admissions Application',
116
- assignment_group: 'OIT-SpecOps Student Admin',
117
115
  priority: '4',
118
116
  caller_id: callerId,
119
117
  short_description: this.shortDescription,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@byu-oit/vue-decision-processing-components",
3
- "version": "8.32.0",
3
+ "version": "8.32.2",
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",
@@ -1,15 +1,17 @@
1
- const parseCategories = (c = []) => c.map(cc => cc.description)
2
- const parseSubcategories = (c = []) => c.map(({ name = '', description = '' }) => ({ name, description }))
3
- const parseDetails = (d = []) => d.map(dd => dd.detail)
4
- const parseName = ({ name = '' }) => name
1
+ const parseId = (c = []) => c.id
2
+ const parseCategories = (c = []) => cc.category_name
3
+ const parseSubcategories = (c = []) => c.subcategory_name
4
+ const parseDetails = (d = []) => d.detail
5
+ const parseUpdatedDateTime = (t = []) => t.updated_date_time
6
+ const parseName = (n) => n.employee_name
5
7
 
6
8
  const parseFilenote = note => {
7
- const id = note.id
8
- const categories = parseCategories(note.categories)
9
- const subcategories = parseSubcategories(note.subcategories)
10
- const details = parseDetails(note.details)
11
- const updatedOn = note.updatedDateTime
12
- const author = parseName(note.author)
9
+ const id = parseId(note)
10
+ const categories = parseCategories(note)
11
+ const subcategories = parseSubcategories(note)
12
+ const details = parseDetails(note)
13
+ const updatedOn = parseUpdatedDateTime(note)
14
+ const author = parseName(note)
13
15
  return {
14
16
  id,
15
17
  categories,
@@ -21,5 +23,5 @@ const parseFilenote = note => {
21
23
  }
22
24
 
23
25
  export default (values = []) => {
24
- return values.map(parseFilenote)
26
+ return parseFilenote(values)
25
27
  }