Commit Graph

328 Commits

Author SHA1 Message Date
leigh-mil
0ddb1f54c0 Fix typo 2020-01-27 11:21:14 -05:00
leigh-mil
1bad32bcdb Add success flash message 2020-01-23 16:44:27 -05:00
leigh-mil
0fcd5a6471 Move text into translations file and fix formatting to make file more readable 2020-01-23 16:44:07 -05:00
leigh-mil
31b7e2f589 Create route and domain method for creating a subscription 2020-01-23 16:44:07 -05:00
leigh-mil
36fe777230 Remove delete environments from app members form 2020-01-22 15:53:40 -05:00
graham-dds
156d733aee Add missing regex and validation for StringFields
This commit adds further validation for StringFields that were missing
it. This mostly amounted to being Regex patters and max lengths.
2020-01-22 15:20:18 -05:00
leigh-mil
04de3d0404 Correct portfolio invite resent alert 2020-01-22 14:58:08 -05:00
leigh-mil
d0cb4ce339 Update button text for adding new application member 2020-01-21 11:57:10 -05:00
leigh-mil
d2b9577e3b Standardize copy in TO builder and TO view page 2020-01-21 11:57:10 -05:00
leigh-mil
ce70e44590 Update flash messages for portfolio invites to match application invite messages.
Use None instead of an empty string for titles and messages in flash alerts.
2020-01-21 11:57:10 -05:00
leigh-mil
6f85f6de97 Update copy for invite alert messages, CLIN error message, and use translations in flash file 2020-01-21 11:57:10 -05:00
leigh-mil
d0ae04193b Update copy on app settings page 2020-01-21 11:57:10 -05:00
leigh-mil
88d57a414b Update copy in new application form. 2020-01-21 11:57:10 -05:00
leigh-mil
d38b5f7012 Update copy on TO view page 2020-01-21 11:57:10 -05:00
leigh-mil
961717e0e7 Update copy in TO builder 2020-01-21 11:57:10 -05:00
leigh-mil
7c78e59624 Update copy on new portfolio form. Style cancel link as a button. 2020-01-21 11:57:09 -05:00
leigh-mil
0893ec18ce Update copy on error page 2020-01-21 11:57:09 -05:00
leigh-mil
4ed75caf2a Replace Lorem on Reports page 2020-01-21 11:57:09 -05:00
leigh-mil
c9e62e22e9 update TO builder copy 2020-01-21 11:57:09 -05:00
leigh-mil
7fee8b70a6 Remove unused translations 2020-01-17 15:56:25 -05:00
leigh-mil
d154b90c05 Use translations in flash messages 2020-01-17 10:49:05 -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
45c4fc1d5f Match empty state for app members with designs 2020-01-13 16:32:31 -05:00
dandds
0731b0519c Use simple string formatting for flash messages.
This addresses an SSTI vulnerability in Flask's `render_template_string`
function, which we were using for rendering flash messages. The
implementation I'd built was too complicated, so I removed its reliance
on Jinja template rendering. Instead, all parts of the flash message
should be keys in the translations file. The `flash` wrapper in
`atst.utils.flash` is just a thin wrapper over our `translate` function.
The `translate` function relies on Python string formatting, which does
not evaluate expressions and so isn't vulnerable to SSTI.
2020-01-11 15:27:34 -05:00
leigh-mil
abfe8663a1 Update copy in perms form 2020-01-10 10:25:55 -05:00
leigh-mil
ff3e585dfe Initial formatting and styling of portfolio managers table. Deleted unused css 2020-01-10 10:25:55 -05:00
leigh-mil
da26273eb2 Merge branch 'staging' into portfolio-defense-component-bug 2020-01-06 14:58:48 -05:00
leigh-mil
dad54ec139 Create new migration to convert column type of defense_component from
string to array
2020-01-06 13:08:56 -05:00
leigh-mil
df74095f6a Fix translations used in reporting page and TO view/review page 2020-01-03 13:36:13 -05:00
leigh-mil
e25f519243 Change TO fragment to a macro to make it reusable in the builder and view page, final tweaks to review and view pages 2020-01-02 12:45:53 -05:00
leigh-mil
8ece47627e Initial styling and layout of TO view fragment 2020-01-02 12:45:52 -05:00
graham-dds
4532b64a65 Remove "get help" link from footer 2019-12-26 10:51:29 -05:00
leigh-mil
2584c43c90 Home page styling updates:
- Update copy
- Update menu description section
2019-12-18 16:55:25 -05:00
leigh-mil
6cc605d09f Merge branch 'staging' into to-signature-page 2019-12-18 13:47:26 -05:00
leigh-mil
00e86e2f2a Merge branch 'staging' into environment-name-uniqueness 2019-12-18 13:02:33 -05:00
leigh-mil
66cfaaa6c3 Update copy on TO signature page 2019-12-18 12:10:15 -05:00
graham-dds
13e8cb8ee1 Move form buttons to floating bottom action bar
Form action buttons were previously in the sicky CTA bar. This commit
moves them to a bottom action bar.
2019-12-18 11:36:36 -05:00
leigh-mil
63a5d9274b Update route to handle error when env names are duplicated 2019-12-18 10:54:17 -05:00
leigh-mil
ffbf612290 Update route to catch error when app name uniqueness is violated and display a error message 2019-12-16 14:39:32 -05:00
leigh-mil
78ef47f649 Update TO route helper function to catch error and display flash message when a user tries to save a TO with an existing number.
Update TaskOrderForm so that it converts empty string for number into None, this was causing an issue where new TOs were being saved with an empty string for the number, which violated the unique constraint.
2019-12-13 14:53:58 -05:00
graham-dds
cbea71259c Move checkbox validation message to translations 2019-12-13 13:17:30 -05:00
graham-dds
a097a0ce61 Refactor New Portfolio page according to designs.
New designs call for a streamlined New Portfolio page, with far
fewer input options. This commit refactors that page according to those
designs.

Some of the route functions in this commit refer to a "step 1" of creating
a new Portfolio. Though there is no "step 2" right now, the designs call
for a multistep flow for Portfolio creation process, so this commit sets
the stage for that.
2019-12-13 13:17:30 -05:00
leigh-mil
2c2b69affe Fix TO index blank states and number type issue 2019-12-13 11:26:58 -05:00
leigh-mil
6dabd0bf35 Move copy into translations file 2019-12-03 15:43:06 -05:00
graham-dds
33711c9605 Styling for portfolio summary section of reporting 2019-11-26 16:56:33 -05:00
graham-dds
51f1261db0 Order CLINs on reporting page and refactor labels
In order to more easily sort JEDI Clins for the obligated funds section,
the JEDI CLIN enum values were used in the output dict instead of their
verbose labels. And in order to bring the labels in line with designs,
the JEDI CLIN labels were DRYed up in the translations file, which
required making small changes in a few other places across the project.
2019-11-26 16:17:22 -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
leigh-mil
516a01840e Remove csp alert 2019-11-19 16:48:43 -05:00
leigh-mil
e8f21acf5b PR fixes 2019-11-12 16:59:22 -05:00
leigh-mil
54f3c2f8ba Update text and icon in modal
Update env_role status when it is deleted
2019-11-12 16:54:46 -05:00