dandds
0517bd1b0a
Fix task order uploads.
...
Task order uploads and downloads were broken. Uploads were broken
because file content was eing read in as plaintext every time, resulting
in encoding issues. I updated the bundle to use the newer Azure JS SDK.
We can now use a method for uploading browser files directly without
having to read their content. This required a few small internal changes
to the upload component, since the response structure is different.
I also removed the `downloadUrl` method from the JS uploader since it
was not being used.
Downloads were broken because the method that generates the download
link was not updated to use the BlobSasPermissions class from the
updated Azure Python SDK.
2020-02-03 09:56:02 -05:00
leigh-mil
b20e2971d7
Update TO number validator to account for dashes and variable character length
2020-01-24 09:18:22 -05:00
graham-dds
3cf9fdac76
Add frontend validation for TextInput()s
...
- Add input validation regexes to input_validations.js
- Add those validators to text fields without validaiton
2020-01-22 15:20:18 -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
eaa6b33b8e
Add js lib function for escaping HTML
2020-01-08 11:10:59 -05:00
leigh-mil
a6a908ae55
Remove other events emitted from root
2019-11-19 14:49:11 -05:00
leigh-mil
04b9250ea1
Create emitter function for field-change event
2019-11-19 14:49:11 -05:00
richard-dds
910d31df30
Remove AwsUploader
2019-10-29 16:02:48 -04:00
graham-dds
257fe648a8
Add input validation for CLIN dollars
...
But the validation message includes the valid number range
2019-09-12 16:11:12 -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
b182307174
Azure file downloads
2019-08-29 10:12:02 -04:00
richard-dds
d775bce3b7
Fix incorrect this
in azure upload
2019-08-28 15:56:55 -04:00
richard-dds
85ba61b97b
Formatting
2019-08-28 15:06:20 -04:00
richard-dds
de090a319b
Pass objectName into upload constructor
2019-08-28 15:06:20 -04:00
richard-dds
7d1dfa1d0e
Get presigned upload token via ajax request
2019-08-28 15:06:13 -04:00
richard-dds
9b7186c94f
Formatting
2019-08-16 13:49:50 -04:00
richard-dds
b49d926d7a
Both uploader impelementations should return same response
2019-08-15 14:10:28 -04:00
richard-dds
b48154f738
Fix MockUploader by returning ok response
2019-08-13 10:51:49 -04:00
richard-dds
59de01031c
More secure SAS permissions for Azure upload
2019-08-06 13:53:52 -04:00
richard-dds
5329937eb9
Polyfill fetch
2019-08-06 10:39:46 -04:00
richard-dds
a4581e7a7c
js this
woes
2019-08-06 10:23:04 -04:00
richard-dds
68a1004bf1
Make Azure FE config injectable
2019-08-05 16:51:28 -04:00
richard-dds
e5a0318310
Formatting
2019-08-05 16:04:38 -04:00
richard-dds
0b201809a1
Configure js uploader based on CLOUD_PROVIDER environment var
2019-08-05 15:59:27 -04:00
richard-dds
94b6b320fb
Provide mock implementation of uploader
2019-08-05 14:58:10 -04:00
richard-dds
8eba9a097d
Add CSP file uploads
2019-08-05 14:58:10 -04:00
mk-dds
57894c16ca
Update TO to be 13 digits
2019-07-18 13:50:48 -04:00
richard-dds
b77d0fc53f
Allow capital letters in email TLD
2019-06-11 16:18:35 -04:00
leigh-mil
0a2d241dc4
Add validator to TO number input and add cancel button to form
2019-06-05 12:58:33 -04:00
dandds
124970f9d6
Frontend email validation should match wtforms
...
Our long email regex for the frontend was stricter in some ways, but it allowed
email addresses with a single-letter TLD ("frank@dod.m"), which the backend
WTForms validator would reject. The two should be equivalent.
Reference:
1939aec691/wtforms/validators.py (validators.py-281)
2019-04-30 14:43:23 -04:00
Montana
629dd674b9
Refactor emitters
2019-04-19 11:49:41 -04:00
Montana
85b6287e0c
Emit field's parent uid on mount
2019-04-19 11:49:41 -04:00
leigh-mil
3f2beb44b2
Refactor emit field change into a utility function
2019-04-06 16:57:12 -04:00
rachel-dtr
942b557067
Merge branch 'master' into title-error-message
2019-02-14 10:53:47 -05:00
rachel-dtr
e1c93173ec
Updates portfolio name error message
2019-02-14 10:46:34 -05:00
leigh-mil
1cc3328729
Move NaN/empty string check to formatDollars
2019-02-13 10:17:44 -05:00
leigh-mil
c5dfcbab5e
Fix validation messages for updating portfolio name
2019-02-06 10:44:15 -05:00
leigh-mil
63bcae0bd4
Add trailing zeros to cents when focus moves
2019-02-01 13:29:07 -05:00
leigh-mil
0382966929
Update dollars filter and formatDollars() to display cent values
2019-01-31 11:29:52 -05:00
George Drummond
619bc9fe59
Prettier format all js files
2019-01-24 09:38:43 -05:00
leigh-mil
6fbb49d74e
Add event listener for focus so elements hidden behind the footer will scroll to the center of the screen
2019-01-23 10:58:13 -05:00
dandds
d3d36822df
workspace -> portfolio everywhere
2019-01-14 16:00:17 -05:00
leigh-mil
8cda3109bb
Update DOD ID validator to allow leading zeros
2018-12-03 15:27:16 -05:00
leigh-mil
cdcc954cf6
Add validator to user form for consistent validation
2018-11-28 15:17:59 -05:00
leigh-mil
46855c9de0
Fix input field to limit to 10 digits
2018-11-21 15:31:25 -05:00
leigh-mil
c753181541
Update mask and error message
2018-11-07 12:03:52 -05:00
leigh-mil
2dd1822cf8
Add validation
2018-11-07 12:03:52 -05:00
leigh-mil
029941e9c2
Merge pull request #381 from dod-ccpo/edit-pe-number-#160627814
...
Edit pe number #160627814
2018-10-12 11:43:25 -04:00
rthoward
95f6b17e3b
Simplify "anything" input validatin regex
2018-10-11 16:55:48 -04:00
leigh-mil
e0367dd2bd
Remove mask from BA Code input since it had the same bug
2018-10-11 11:51:18 -04:00