Commit Graph

309 Commits

Author SHA1 Message Date
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
leigh-mil
cfd73fec78 Use translations file 2019-11-12 12:01:33 -05:00
graham-dds
d73af9b919 Change description text to match default envs 2019-11-11 11:04:04 -05:00
graham-dds
c534dd10f2 Change text on step 2 of adding a member to an app 2019-10-25 13:17:21 -04:00
leigh-mil
f71f2c91fb Update app members blank slate and section header text 2019-10-22 14:33:30 -04:00
leigh-mil
60d8d6ed10 Styling for delete section of app settings page 2019-10-16 18:12:42 -04:00
leigh-mil
595995cf03 Update styling for empty state and the app environments panel 2019-10-15 13:48:01 -04:00
leigh-mil
a44e86f296 Merge pull request #1112 from dod-ccpo/app-settings-styling
App settings styling (part 1)
2019-10-14 16:33:59 -04:00
graham-dds
e8595e592a Merge pull request #1111 from dod-ccpo/multistep-app-provisioning-design-tweaks
More multistep app provisioning design tweaks
2019-10-14 15:40:04 -04:00
graham-dds
8e6a4101ff Update copy in headers / flash 2019-10-14 14:46:00 -04:00
leigh-mil
14ea3cd973 Adjust the margin around usa-input elements globally, fix any styling side effects from the change 2019-10-14 14:05:03 -04:00
leigh-mil
5a98e6966e Styling for name and description section:
As part of this, the empty placeholder span was removed from the text input macro and the span will now be conditionall rendered if there is an error message
2019-10-14 14:03:45 -04:00
leigh-mil
c3db3322df Style portfolio header menu icons 2019-10-14 14:03:44 -04:00
leigh-mil
e6254e6f64 Update text in portfolio header and application sticky CTA 2019-10-14 14:03:44 -04:00
leigh-mil
9517f3e3ab Merge pull request #1110 from dod-ccpo/env-email-notifications
Send email after environment is provisioned
2019-10-14 13:11:55 -04:00
graham-dds
24be9a6a61 Update copy for new app provisioning
- change flashed message for adding members
- use the correct helper text for the app name input
- a few other updates to text in translations
2019-10-14 10:10:22 -04:00
leigh-mil
10c16cc4ef Send email after environment is provisioned 2019-10-10 09:45:01 -04:00
leigh-mil
c7841d4388 Update styling on revoke invite modal 2019-10-08 17:06:51 -04:00
leigh-mil
bb6d656def Merge pull request #1106 from dod-ccpo/clin-errors-contract-dates
PoP Range error message
2019-10-08 15:39:34 -04:00
graham-dds
c803438e94 Roll back Projects to Applications in translations 2019-10-08 13:15:28 -04:00