43 Commits

Author SHA1 Message Date
leigh-mil
b20e2971d7 Update TO number validator to account for dashes and variable character length 2020-01-24 09:18:22 -05:00
dandds
5213657b0f Additional validation and escaping for file names.
This adds additional front and backend validations for task order file
names. We are now restricting file names to a whitelist regex of
[A-Za-z0-9\-_ \.] for simplicity.

Note:
On the frontend, the filename string must have at least one character.
This is not true in the backend validation; because of the way the
entire task order form is validated, requiring input would break the
business logic currently implemented.
2020-01-15 09:17:03 -05:00
graham-dds
07b4238c2b Write tests for multi checkbox input vue component 2019-12-13 13:17:30 -05:00
leigh-mil
88d6ef32a4 Display error when PoP start date and end date are the same 2019-10-16 19:28:17 -04:00
leigh-mil
07b3c68422 Add min and max range values to date selector so a more accurate error message can be displayed when a date is out of the range 2019-10-08 10:32:02 -04:00
leigh-mil
a5d34f9bb2 Check against the contract dates instead of the current maxStart and minEnd values to calculate the new maxStart and minEnds 2019-10-01 12:51:51 -04:00
leigh-mil
a8635e8c8b Add explanation about maxStartDate and minEndDate,
Refactor calc max and min functions
2019-09-26 16:27:10 -04:00
leigh-mil
df5f4b9d3e Get rid of unnecessary data in pop date range 2019-09-26 16:22:15 -04:00
leigh-mil
789e6662a2 Add tests for pop date range vue component 2019-09-26 16:22:15 -04:00
leigh-mil
53cef32af5 Use date-selector component to display errors related to date fields 2019-09-26 16:22:02 -04:00
leigh-mil
e26edcd1bb Add tests for updated functionality in date-selector and formatting 2019-09-26 16:22:02 -04:00
dandds
6dc1e10e77 Delete unused Vue components and remove references to them. 2019-09-25 06:14:12 -04:00
dandds
7ea1ae5a34 Add a JS test for the clin-fields Vue component.
In order to do this, it was expedient to move the CLINFields Jinja macro
into its own file and pass in all the data it requires.
2019-09-24 09:37:30 -04:00
richard-dds
f05d6908ef Mock out getDownloadLink 2019-08-30 16:18:31 -04:00
richard-dds
83ca303e1f Disable attachmentInput when file is attached (with tests this time) 2019-08-30 16:13:59 -04:00
richard-dds
b26cd3ffae Allow user to download a previously uploaded pdf 2019-08-29 16:00:25 -04:00
richard-dds
6405d9b958 Make Azure account name and bucket name configurable 2019-08-05 14:58:10 -04:00
richard-dds
81a478915d Fix uploader test and refactor makeTestWrapper to accept data fn 2019-08-05 14:58:10 -04:00
tomdds
0682411954 Fix formatting 2019-07-12 12:13:22 -04:00
tomdds
38a01f7db3 Clean up and generalize jinja to vue test template rendering and testing 2019-07-12 12:05:54 -04:00
tomdds
5234677ad3 Set incoming props as variable names rather than values in test rendering to allow props to be properly passed to component under test 2019-07-11 17:52:54 -04:00
tomdds
fd6ad924d9 Spike that generates a checkbox template from jinja and allows us to mount and manipulate it 2019-07-11 17:36:56 -04:00
George Drummond
9bf06ad5e2
Delete RequiredLabel 2019-06-19 09:48:46 -04:00
George Drummond
d17df2aaad
Remove unused templates 2019-06-14 12:44:50 -04:00
dandds
43ea922218 Simplify environment role updates in app settings.
Use ApplicationRole.id instead of User.id in forms. This eliminates the
need for the function that checks whether a user is in a given
application, because looking up the application role will raise an error
if the user is not.
2019-05-24 13:35:00 -04:00
dandds
815632ed00 Handle setting no access for user environment roles:
- use constant for no access string
- update no access constant
- update language and permissions for rendering remove app member button
2019-05-17 14:00:45 -04:00
leigh-mil
4206aa8a59 Use member.role_name in template and JS
change name of data from roles to rolesCategory to make less confusing
2019-05-14 11:00:14 -04:00
leigh-mil
3a2e2aa878 Wip tests 2019-05-14 11:00:14 -04:00
George Drummond
736079cf18
Update js test snapshot 2019-03-13 13:45:27 -04:00
Patrick Smith
d3e6b7fbab Remove no longer used js components 2019-02-25 14:54:14 -05:00
George Drummond
a7aaec3cc2
Take leap years into account 2019-01-28 09:42:15 -05:00
George Drummond
454d7f10df
Add in VUE date picker component 2019-01-25 14:20:43 -05:00
George Drummond
619bc9fe59
Prettier format all js files 2019-01-24 09:38:43 -05:00
Patrick Smith
800fa94363 Handle sorting with unsubmitted requests 2018-11-29 12:19:16 -05:00
Patrick Smith
924b234d28 Merge branch 'master' into show-sort-indicators 2018-11-28 13:23:46 -05:00
Patrick Smith
30aa5f375b Clarify testing of sorting by number of envs 2018-11-28 11:46:54 -05:00
Patrick Smith
6195b4369e Add default sort by submission time to request listing 2018-11-27 16:41:22 -05:00
Patrick Smith
d6d417e8f9 Add default column sort on members list table 2018-11-27 16:02:56 -05:00
Patrick Smith
1feaa726d2 Add another test to ensure csrf token added correctly 2018-11-27 11:13:23 -05:00
Patrick Smith
178892c62e Use localVue to squash missing custom element error 2018-11-27 11:00:51 -05:00
Patrick Smith
fd6b0f9b24 Add vue component for confirmation popover
Have the confirmation popover in a separate Vue component fixes a bug in
IE that was causing the `form` element in the popover to be ignored.

Since `form`s cannot be nested, the `form` element in the popover was
being discarded by IE and the revoke/resend invitation buttons did
nothing.

Breaking the functionality into a Vue component moves the `form` into a
separate template. When the popover is displayed, the component is added
to the DOM at the end, so the `form` is properly not-nested.
2018-11-27 10:22:02 -05:00
Patrick Smith
d5270fa97d Add additional snapshot test 2018-11-20 10:02:17 -05:00
Patrick Smith
75155f5297 Add initial component test 2018-11-19 21:02:11 -05:00