566 Commits

Author SHA1 Message Date
leigh-mil
644d86582e Save Attachment object_name when uploading PDFs in the TO builder 2020-02-06 17:34:56 -05:00
leigh-mil
8e2870b62f Add max width to CTA footer in the TO builder form
- Created a new mixin (ExpandSidenavMixin) that sets the defaultVisible prop that can be used in both the root component and the SidenavToggler. This makes it so that the Root knows whether or not the sidenav is collapsed or expanded, so then child components can use this to calculate margins/paddings/offsets/etc.
- Added new classes for the .action-group-footer that set the elements padding based on whether or not the sidenav is expanded.
- Added a nested div (.action-group-footer--container) inside .action-group-footer which sets the max width
2020-02-04 16:13:07 -05:00
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
dff9924c95 Make file size limit configurable 2020-01-31 11:59:07 -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
leigh-mil
961717e0e7 Update copy in TO builder 2020-01-21 11:57:10 -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
ffd3dd2d9d use v-text instead of v-html
v-html interprets the string passed to it as raw html, without escaping.
We should use v-text wherever possible.
2020-01-14 16:19:27 -05:00
graham-dds
c02bb8518e Escape html chanacters, if any, in CLIN number 2020-01-08 11:10:59 -05:00
graham-dds
eaa6b33b8e Add js lib function for escaping HTML 2020-01-08 11:10:59 -05:00
graham-dds
07b4238c2b Write tests for multi checkbox input vue component 2019-12-13 13:17:30 -05:00
graham-dds
80f028540c Refactor multi_checkbox_input
This component was made when having an "other" value as a check option
also meant typing in a custom value into an input field. Since this is no
longer needed, we were able to remove the markup / vue code for that
feature.
2019-12-13 13:17:30 -05:00
leigh-mil
b49208ca57 Remove unused imports and formatting, fake TaskOrder.invoiced_funds with hard coded percentage instead of random number 2019-12-12 09:40:18 -05:00
leigh-mil
e79b1d1524 Create AccordionList macro and vue component to collapse multiple accordion components 2019-12-12 09:40:18 -05:00
leigh-mil
e32bad0d30 Display TOs grouped by status 2019-12-12 09:40:18 -05:00
graham-dds
dc9a21a501 Refactor mock reporting data and class methods
All mock reporting data was moved to a JSON file. The concept of
what JEDI CLIN a particular environment drew money from was added to the
data.

This change had a cascade effect to the reporting class methods,
templates, and Vue components that ingested that reporting data. Many of
these files were modified to adapt to these changes. This also included
modifying the obligated funding bar graphs to reflect new design
changes.
2019-12-10 11:23:53 -05:00
leigh-mil
2f5ad6b38b Move event emitter before async function call so it will hopefully trigger the change event on the parent component earlier.
Update this.changed inside if statement because it should only be updated if the file is successfully uploaded.
2019-12-02 14:37:40 -05:00
leigh-mil
f4922f0db2 Create new toggle menu component 2019-11-27 09:30:21 -05:00
graham-dds
0303434561 First pass at new reporting designs
This commit lays out the genral structure and provides necessary
data for the new reporting page designs.

Some of the data generated by the report domain classes (including
the mock CSP reporting class) was modified to fit new designs. This also
included removing data that was no longer necessary. Part of the newly
mocked data includes the idea of "expended" data per CLIN or task order.
This was was mocked simply by using a 75% of the obligated funds fo a
given object. Tests were also written for these new/ modifed reporting
functions.

As for the front end, this commit only focuses on the high-level markup
layout. This includes splitting the large reporting index page into
smaller component templates for each of the major sections of the report.
2019-11-25 13:12:35 -05:00
graham-dds
e685b32193 Remove budget chart 2019-11-25 13:12:34 -05:00
graham-dds
dc73963cb9 Add accordion macro 2019-11-25 13:12:34 -05:00
leigh-mil
20a2abd36b Update valid prop on MultiCheckboxInput to return true if the field is optional 2019-11-22 09:33:39 -05:00
leigh-mil
62cdcbe6dc Remove some leftover 'watch' attributes from Vue components 2019-11-22 09:22:47 -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
leigh-mil
bc0382834b Remove old field-mount and field-change emitters and listeners.
Replace FormMixin with new functionality.
2019-11-19 14:49:11 -05:00
leigh-mil
622234bc51 Remove unused Vue component 2019-11-18 14:14:31 -05:00
leigh-mil
d4facd1e36 Update emitters for vue components on portfolio settings page 2019-11-18 14:14:31 -05:00
leigh-mil
1ecd786857 Update BaseForm and nested vue components to properly use emitters 2019-11-15 17:36:57 -05:00
leigh-mil
0abe27eb36 Remove form mixin from toggler component 2019-11-15 17:36:57 -05:00
leigh-mil
3e57579990 Use BaseForm instead of specialized Vue component for step 1 of the application form
Remove unnecessary event listener
2019-11-15 17:35:11 -05:00
leigh-mil
d1e1a2a36a Update TO form and nested components to emit directly to parent components instead of emitting from the root component 2019-11-15 17:35:11 -05:00
leigh-mil
c94570f83e Update TO form and nested components to emit directly to parent components instead of emitting from the root component 2019-11-14 16:46:35 -05:00
graham-dds
948976bb78
Merge pull request #1176 from dod-ccpo/bugfix/date-validation
Tweak date validation logic for months and days
2019-11-12 16:09:00 -05:00
leigh-mil
045e06abee When validating that envs have names, make sure that names containing only strings are not valid 2019-11-12 13:07:50 -05:00
graham-dds
295088524c Tweak date validation logic for months and days
- valid months should be between 1 and 12, inclusive
- days should be between 1 and 31, inclusive
- swap a few lets for consts
2019-11-12 13:00:01 -05:00
leigh-mil
d142fa974a Update Form mixin so that you can enable the save button for a form on render 2019-10-31 16:21:32 -04:00
richard-dds
910d31df30 Remove AwsUploader 2019-10-29 16:02:48 -04:00
leigh-mil
83967e6ed9 Delete unused component and macro 2019-10-22 15:12:19 -04:00
leigh-mil
4a61625048
Merge pull request #1126 from dod-ccpo/pop-bug-fixes
Display error when PoP start date and end date are the same
2019-10-21 09:26:02 -04: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
248e93103b Add js/test_templates to .gitignore file and remove ignored folder 2019-10-16 13:53:40 -04:00
graham-dds
9faf55f2d6 new app step 1 form is submitable with initial data 2019-10-14 13:40:34 -04:00
leigh-mil
250b6755aa
Merge pull request #1104 from dod-ccpo/modal-styling-update
Modal styling update
2019-10-14 09:44:59 -04:00
richard-dds
30f5f0292f Update js templates 2019-10-08 16:42:25 -04:00
leigh-mil
b21bc5a69f Update test templates 2019-10-08 16:30:28 -04:00
leigh-mil
7f0a25ea17 Use translations 2019-10-08 10:32:02 -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