Commit 841cab6
authored
Frontend/cosmo search updates (#1308)
### Requirements List
- _None_
### Description List
- Update Licensee Search UI for cosmetology-specific capability
- Update Licensee List UI for cosmetology-specific capability
- Update Licensee Detail UI for cosmetology-specific capability
- Improve the License & Privilege card sorting on the Licensee Detail UI
- Improve app-mode setting to be set automatically in store, rather than
per component
- Minor update to `eslintrc` for using `v-for` keys in `<template>`
elements
### TODO
- [x] Wait for backend changes to be merged
- [x] Wait for tickets to be broken out on board and assign Closed #
below
### Testing List
- `yarn test:unit:all` should run without errors or warnings
- `yarn serve` should run without errors or warnings
- `yarn build` should run without errors or warnings
- Code review
- Testing
- Public search
- Public search for JCC (ASLP, OT, COUN) should continue to work as it
has
- Public search for Cosmetology should match the Figma designs
- Adding License number search and no longer requiring Last Name if
First Name is searched
- List results should no longer have a Privileges column, and instead
have a State License Number Column
- Detail results should include Licenses
- Licenses should be sorted by state, then license type
- Privileges should be sorted by license type, then state
- Staff search
- Public search for JCC (ASLP, OT, COUN) should continue to work as it
has
- Public search for Cosmetology should match the Figma designs
- Remove unused fields for cosmetology, add license number search + dob
search
- List results should no longer have a Privileges column, and instead
have a State License Number Column
- Detail results should have more limited privilege information in
privilege cards
- Licenses should be sorted by state, then license type
- Privileges should be sorted by license type, then state
Closes #1268
Closes #1269
Closes #1280
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **New Features**
* Cosmetology mode: license number and DOB search fields, mock-populate
and clear actions, and license-number column in results
* Added cosmetologist and esthetician license types
* **Improvements**
* UI now shows/hides fields and actions per app mode (JCC vs
Cosmetology)
* Search and requests include DOB and license number; results/summaries
display them when present
* Consistent license/privilege sorting and improved tablet wrapping
* Keyboard-accessible reset (Enter), improved pagination keyboard focus,
and localized "Invalid date" validation message
<!-- end of auto-generated comment: release notes by coderabbit.ai -->1 parent ddd218d commit 841cab6
35 files changed
Lines changed: 568 additions & 121 deletions
File tree
- webroot
- src
- components
- CompactSelector
- Forms
- InputDate
- _mixins
- Licensee
- LicenseeListLegacy
- LicenseeList
- LicenseeRow
- LicenseeSearchLegacy
- LicenseeSearch
- Lists/Pagination
- PrivilegeCard
- locales
- models
- Licensee
- License
- network
- licenseApi
- mocks
- searchApi
- pages/LicensingDetail
- store
- global
- license
- user
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
| 100 | + | |
100 | 101 | | |
101 | 102 | | |
102 | 103 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
146 | 146 | | |
147 | 147 | | |
148 | 148 | | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | 149 | | |
155 | 150 | | |
156 | 151 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
| 112 | + | |
112 | 113 | | |
113 | 114 | | |
| 115 | + | |
114 | 116 | | |
115 | | - | |
| 117 | + | |
116 | 118 | | |
117 | 119 | | |
118 | 120 | | |
| |||
128 | 130 | | |
129 | 131 | | |
130 | 132 | | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
131 | 142 | | |
132 | 143 | | |
133 | 144 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
112 | 115 | | |
113 | 116 | | |
114 | 117 | | |
| 118 | + | |
115 | 119 | | |
116 | 120 | | |
117 | 121 | | |
| |||
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
| |||
34 | 35 | | |
35 | 36 | | |
36 | 37 | | |
37 | | - | |
| 38 | + | |
38 | 39 | | |
39 | 40 | | |
40 | 41 | | |
| |||
Lines changed: 37 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
88 | 96 | | |
89 | 97 | | |
90 | 98 | | |
| |||
103 | 111 | | |
104 | 112 | | |
105 | 113 | | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
106 | 120 | | |
107 | 121 | | |
108 | 122 | | |
| |||
189 | 203 | | |
190 | 204 | | |
191 | 205 | | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
192 | 212 | | |
193 | 213 | | |
194 | 214 | | |
195 | 215 | | |
| 216 | + | |
196 | 217 | | |
197 | 218 | | |
198 | 219 | | |
199 | 220 | | |
200 | 221 | | |
201 | 222 | | |
202 | | - | |
| 223 | + | |
| 224 | + | |
203 | 225 | | |
204 | 226 | | |
205 | 227 | | |
| |||
218 | 240 | | |
219 | 241 | | |
220 | 242 | | |
221 | | - | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
222 | 251 | | |
223 | 252 | | |
224 | 253 | | |
| |||
343 | 372 | | |
344 | 373 | | |
345 | 374 | | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
346 | 378 | | |
347 | 379 | | |
348 | 380 | | |
| |||
370 | 402 | | |
371 | 403 | | |
372 | 404 | | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
373 | 408 | | |
374 | 409 | | |
375 | 410 | | |
| |||
Lines changed: 8 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | 24 | | |
32 | 25 | | |
33 | 26 | | |
34 | 27 | | |
35 | 28 | | |
36 | 29 | | |
| 30 | + | |
37 | 31 | | |
38 | 32 | | |
39 | 33 | | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
40 | 41 | | |
41 | 42 | | |
42 | 43 | | |
| |||
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
| |||
34 | 35 | | |
35 | 36 | | |
36 | 37 | | |
37 | | - | |
| 38 | + | |
38 | 39 | | |
39 | 40 | | |
40 | 41 | | |
| |||
Lines changed: 34 additions & 42 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
88 | 96 | | |
89 | 97 | | |
90 | 98 | | |
| |||
97 | 105 | | |
98 | 106 | | |
99 | 107 | | |
100 | | - | |
101 | | - | |
102 | | - | |
| 108 | + | |
| 109 | + | |
103 | 110 | | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
| 111 | + | |
121 | 112 | | |
122 | 113 | | |
123 | 114 | | |
124 | 115 | | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | 116 | | |
129 | | - | |
130 | | - | |
| 117 | + | |
| 118 | + | |
131 | 119 | | |
132 | | - | |
133 | | - | |
| 120 | + | |
| 121 | + | |
134 | 122 | | |
135 | | - | |
| 123 | + | |
136 | 124 | | |
137 | 125 | | |
138 | 126 | | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | 127 | | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | | - | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
152 | 135 | | |
153 | 136 | | |
154 | 137 | | |
| |||
168 | 151 | | |
169 | 152 | | |
170 | 153 | | |
171 | | - | |
172 | 154 | | |
173 | | - | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
174 | 163 | | |
175 | 164 | | |
176 | 165 | | |
| |||
307 | 296 | | |
308 | 297 | | |
309 | 298 | | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
310 | 302 | | |
311 | 303 | | |
312 | 304 | | |
| |||
Lines changed: 8 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | 23 | | |
31 | 24 | | |
32 | 25 | | |
33 | 26 | | |
34 | 27 | | |
35 | 28 | | |
| 29 | + | |
36 | 30 | | |
37 | 31 | | |
38 | 32 | | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
39 | 40 | | |
40 | 41 | | |
41 | 42 | | |
| |||
0 commit comments