@byu-oit/vue-decision-processing-components 8.33.0 → 8.33.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.
@@ -24,6 +24,63 @@ import { faCalendar } from '@fortawesome/free-solid-svg-icons'
24
24
 
25
25
  import { mapState, mapMutations, mapActions } from 'vuex'
26
26
 
27
+ const admitPeriods = {
28
+ '20223': {
29
+ period: '20223',
30
+ description: '2022 Spring',
31
+ long_description: 'Spring 2022',
32
+ school: 'byuh',
33
+ application_open: '06-01-2022',
34
+ application_close: '11-01-2022',
35
+ dp_close: '12-31-2022'
36
+ },
37
+ '20225': {
38
+ period: '20225',
39
+ description: '2022 Fall',
40
+ long_description: 'Fall 2022',
41
+ school: 'byuh',
42
+ application_open: '09-01-2022',
43
+ application_close: '02-01-2023',
44
+ dp_close: '04-31-2023'
45
+ },
46
+ '20231': {
47
+ period: '20231',
48
+ description: '2023 Winter',
49
+ long_description: 'Winter 2023',
50
+ school: 'byuh',
51
+ application_open: '02-01-2023',
52
+ application_close: '06-01-2023',
53
+ dp_close: '08-31-2023'
54
+ },
55
+ '20233': {
56
+ period: '20233',
57
+ description: '2023 Spring',
58
+ long_description: 'Spring 2023',
59
+ school: 'byuh',
60
+ application_open: '07-01-2022',
61
+ application_close: '11-02-2022',
62
+ dp_close: '12-31-2023'
63
+ },
64
+ '20235': {
65
+ period: '20235',
66
+ description: '2023 Fall',
67
+ long_description: 'Fall 2023',
68
+ school: 'byuh',
69
+ application_open: '09-01-2022',
70
+ application_close: '02-02-2023',
71
+ dp_close: '04-31-2023'
72
+ },
73
+ '20241': {
74
+ period: '20241',
75
+ description: '2024 Winter',
76
+ long_description: 'Winter 2024',
77
+ school: 'byuh',
78
+ application_open: '03-01-2023',
79
+ application_close: '07-03-2023',
80
+ dp_close: '09-31-2023'
81
+ }
82
+ }
83
+
27
84
  export default {
28
85
  name: 'AdmitPeriodConfig',
29
86
  components: {
@@ -56,12 +113,16 @@ export default {
56
113
  ...mapMutations(['selectAdmitPeriod']),
57
114
  ...mapActions(['preserveUiSettings']),
58
115
  async fetchConfig() {
59
- const self = this
116
+ // This config is hosted in the domain-common-admit-periods repository
117
+ /*
118
+ Presently, the service storing this configuration is changing from a static s3 site
119
+ to the config service to allow admins to update the configuration items themselves.
120
+ While that transition happens, we will hard-code these values temporarily.
121
+
60
122
  const headers = {
61
123
  accept: 'application/json',
62
124
  'content-type': 'application/json'
63
125
  }
64
- // This config is hosted in the domain-common-admit-periods repository
65
126
  const url = `https://admit-period-vocab-cdn.ces-admissionssupport-prd.amazon.byu.edu/${this.school}-admit-periods.json`
66
127
  const options = { headers, url }
67
128
  const r = await window.byu.auth.request(options)
@@ -98,6 +159,30 @@ export default {
98
159
  } else {
99
160
  console.error(`Error ${status} while fetching admit period config`)
100
161
  }
162
+ */
163
+
164
+ this.admitPeriodList = Object.entries(admitPeriods).map(([key, value]) => value).sort((a, b) => {
165
+ if (!a.dp_close || !b.dp_close) {
166
+ // don't modify order if dp_close isn't provided
167
+ return 0
168
+ }
169
+ const da = Date.parse(a.dp_close)
170
+ const db = Date.parse(b.dp_close)
171
+ return da - db
172
+ })
173
+ if (!this.selectedAdmitPeriod) {
174
+ const mostCurrent = this.admitPeriodList.find(p => {
175
+ if (p.dp_close) {
176
+ const closeDate = new Date(Date.parse(p.dp_close))
177
+ return new Date() < closeDate
178
+ } else {
179
+ return false
180
+ }
181
+ })
182
+ if (mostCurrent) {
183
+ this.selectAdmitPeriod(mostCurrent.period)
184
+ }
185
+ }
101
186
  },
102
187
  chooseAdmitPeriod (admitPeriod) {
103
188
  this.selectAdmitPeriod(admitPeriod)
package/CHANGELOG.md CHANGED
@@ -2,6 +2,21 @@
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.33.2](https://github.com/byu-oit/vue-decision-processing-components/compare/v8.33.1...v8.33.2) (2023-07-25)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * include a sign-in link on the noauth page ([fadc2af](https://github.com/byu-oit/vue-decision-processing-components/commit/fadc2af37cb70238dffb383a01e220b093565695))
11
+ * use hardcoded admit period config ([f7bbaf3](https://github.com/byu-oit/vue-decision-processing-components/commit/f7bbaf3b99b02ee94e01e4bdc76423ac4decdb12))
12
+
13
+ ### [8.33.1](https://github.com/byu-oit/vue-decision-processing-components/compare/v8.33.0...v8.33.1) (2023-07-20)
14
+
15
+
16
+ ### Bug Fixes
17
+
18
+ * report viewer needs to handle new/old/packet values for the appService variable, not just booleans ([cac81bc](https://github.com/byu-oit/vue-decision-processing-components/commit/cac81bcf3b379b7466df6118f082ebaa4c7f8a93))
19
+
5
20
  ## [8.33.0](https://github.com/byu-oit/vue-decision-processing-components/compare/v8.32.3...v8.33.0) (2023-03-20)
6
21
 
7
22
 
package/NoAuth.vue CHANGED
@@ -2,6 +2,9 @@
2
2
  <section class="m-auto">
3
3
  <p>You do not currently have access to this system. If you are an employee in the admissions
4
4
  office, please contact your supervisor.</p>
5
+ <p class="mt-3">
6
+ You may have an expired session. Try <a href="/login">Logging in</a> again.
7
+ </p>
5
8
  </section>
6
9
  </template>
7
10
  <script>
package/ReportViewer.vue CHANGED
@@ -96,6 +96,14 @@ export default {
96
96
  }
97
97
  },
98
98
  calculatedBaseUrl () {
99
+ if (this.selectedReport.appService === 'new') {
100
+ return this.appBaseUrl + '/proxy/report'
101
+ } else if (this.selectedReport.appService === 'old') {
102
+ return this.appBaseUrl + '/report'
103
+ } else if (this.selectedReport.appService === 'packet') {
104
+ return this.packetBaseUrl + '/report'
105
+ }
106
+
99
107
  let reportUrl = ''
100
108
  if (this.selectedReport.appService) {
101
109
  reportUrl = this.appBaseUrl
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@byu-oit/vue-decision-processing-components",
3
- "version": "8.33.0",
3
+ "version": "8.33.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",
7
7
  "@fortawesome/fontawesome-svg-core": "^1.2.36",
8
8
  "@fortawesome/free-regular-svg-icons": "^5.15.4",
9
9
  "@fortawesome/free-solid-svg-icons": "^5.15.4",
10
- "@fortawesome/vue-fontawesome": "^2.0.6",
10
+ "@fortawesome/vue-fontawesome": "^2.0.10",
11
11
  "csv-string": "^4.0.1",
12
12
  "is-iso-date": "0.0.1",
13
13
  "lodash.get": "^4.4.2",