Skip to content
This repository has been archived by the owner on Feb 8, 2023. It is now read-only.

Sprint 12 Release #133

Merged
merged 223 commits into from
Apr 4, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
223 commits
Select commit Hold shift + click to select a range
ab95a42
Update circle to run for sprint-12 branches
cameronwolf Mar 21, 2018
e69129a
508 bugs
sadlerw Mar 21, 2018
e0ce287
508 bugs
sadlerw Mar 21, 2018
3f4a571
8 digit number
sadlerw Mar 21, 2018
bd89574
600 aria dialog not reading icon
sadlerw Mar 21, 2018
e1a9f81
635 map links
sadlerw Mar 21, 2018
02f4fd5
Merge pull request #649 from nciinc/508_bugs
sadlerw Mar 21, 2018
98f099b
635 map links
sadlerw Mar 21, 2018
3e32e68
Merge remote-tracking branch 'origin/sprint-12-development' into spri…
sadlerw Mar 21, 2018
1dd15dd
Merge branch 'sprint-12-development' into 600_aria_dialog
sadlerw Mar 22, 2018
aaa1de3
change to role = alert
sadlerw Mar 22, 2018
b9ba860
Merge pull request #650 from nciinc/600_aria_dialog
sadlerw Mar 22, 2018
366968d
Merge pull request #651 from nciinc/635_map_links
sadlerw Mar 22, 2018
2eab34b
login issues
sadlerw Mar 22, 2018
fd8af77
add title to permit rules html attachment
sadlerw Mar 22, 2018
46157a8
add title to permit rules html attachment
sadlerw Mar 22, 2018
b0d65cb
add dept of ag
sadlerw Mar 22, 2018
2044de6
hide th in email
sadlerw Mar 22, 2018
99b04b0
fix spec
sadlerw Mar 22, 2018
0f62906
add aria-labelledby to forest radios on report
sadlerw Mar 22, 2018
6bc686e
change to usa-primary - no alt
sadlerw Mar 22, 2018
773a553
Merge pull request #654 from nciinc/auth_login_403_issue
sadlerw Mar 22, 2018
558d0fd
Merge pull request #655 from nciinc/571_update_buttons
sadlerw Mar 22, 2018
ee525c0
change vcap service for login gov
sethalt Mar 26, 2018
f2c8aa7
UX research and summaries initial load.
Mar 26, 2018
6b42dac
Removed unexpected directories
cameronwolf Mar 26, 2018
0e82954
Merge pull request #664 from nciinc/sprint-12-ux-wiki
cameronwolf Mar 26, 2018
bee001a
Merge pull request #663 from nciinc/652_login_gov_vcap
sethalt Mar 26, 2018
45809a2
change Host in login basic auth headers
sethalt Mar 26, 2018
d198507
parse login.gov hostname
sethalt Mar 26, 2018
9e82cc9
fix lint error
sethalt Mar 26, 2018
b7323ec
Merge pull request #665 from nciinc/652_login_gov_vcap
sethalt Mar 26, 2018
9e79e99
forest season and area deaths confirmation link back to forest
shekarpendem Mar 26, 2018
8cfd632
add alt-text to permit image
sethalt Mar 26, 2018
47097d8
frontend test fix
shekarpendem Mar 26, 2018
bd3d83c
Merge pull request #667 from nciinc/616_email_image_alt
shekarpendem Mar 27, 2018
51134d8
removed area-labels
shekarpendem Mar 27, 2018
1846aac
Merge pull request #666 from nciinc/641_forest_link
shekarpendem Mar 27, 2018
5ba0fd9
fix admin redirect bug, fixed sidebar bug
sethalt Mar 27, 2018
77776e3
remove comment
sethalt Mar 27, 2018
1f9c048
fix unit tests
sethalt Mar 27, 2018
a40c029
Update introduction.md
JaneZC Mar 27, 2018
62d3449
Update measuring.md
JaneZC Mar 27, 2018
3a774a1
Update measuring.md
JaneZC Mar 27, 2018
352d64a
Update measuring.md
JaneZC Mar 27, 2018
bfb4c72
Update measuring.md
JaneZC Mar 27, 2018
7a48dfe
add scroll event to get report function
sethalt Mar 27, 2018
d6e60ff
Update helpful-information.md
JaneZC Mar 27, 2018
05ffe5b
Update helpful-information.md
JaneZC Mar 27, 2018
b2a7f56
Update helpful-information.md
JaneZC Mar 27, 2018
73bbd16
Update helpful-information.md
JaneZC Mar 27, 2018
ed95868
fix lint errors
sethalt Mar 27, 2018
4ab1375
Update prohibited.md
JaneZC Mar 27, 2018
790727f
Update prohibited.md
JaneZC Mar 27, 2018
0176fb8
Update prohibited.md
JaneZC Mar 27, 2018
7191040
Update prohibited.md
JaneZC Mar 27, 2018
fc87d0e
Update allowed.md
JaneZC Mar 27, 2018
c62429e
Update allowed.md
JaneZC Mar 27, 2018
9318194
Update allowed.md
JaneZC Mar 27, 2018
78ee14b
Update prohibited.md
JaneZC Mar 27, 2018
411c73e
Merge pull request #668 from nciinc/555_admin_forms
sethalt Mar 27, 2018
a8b9baf
Update rules.md
JaneZC Mar 27, 2018
ec05628
Update rules.md
JaneZC Mar 27, 2018
c5eedc4
Update rules.md
JaneZC Mar 27, 2018
b3ef33b
Update rules.md
JaneZC Mar 27, 2018
c4eccb7
content edits for consistency
shekarpendem Mar 27, 2018
0ef144a
Add aria-labelled-by and cross field validation
sethalt Mar 27, 2018
88d6879
fix tests
sethalt Mar 27, 2018
7ed6b6d
remove debugging info
sethalt Mar 27, 2018
438afc9
add label suffix to label ids
sethalt Mar 28, 2018
748da86
Merge pull request #669 from nciinc/607_invalid_inputs
sethalt Mar 28, 2018
2849802
frontend code review fixes
shekarpendem Mar 28, 2018
f3cf040
camel to hyphens moved to pipes
shekarpendem Mar 28, 2018
16e164a
fix date input validation
sethalt Mar 28, 2018
7b7ea5e
login dir rename to authentication
shekarpendem Mar 28, 2018
16ceec5
fix e2e
sethalt Mar 28, 2018
bbd28ed
christmas-trees service rename to christmas-trees-info
shekarpendem Mar 28, 2018
2891a0c
fix e2e
sethalt Mar 28, 2018
cdf46b5
Merge pull request #672 from nciinc/590_frontend
sethalt Mar 28, 2018
36e1108
fix e2e
sethalt Mar 28, 2018
d2c0798
update email alt text
sethalt Mar 28, 2018
2d15085
unit tests
sethalt Mar 28, 2018
fff3a63
fix e2e errors
sethalt Mar 28, 2018
3f65add
time format change for am/pm to uppercase
shekarpendem Mar 29, 2018
dbb6473
Update rules.md
JaneZC Mar 29, 2018
4acbd28
Update rules.md
JaneZC Mar 29, 2018
3fa2e2d
Update rules.md
JaneZC Mar 29, 2018
d1f308f
Update rules.md
JaneZC Mar 29, 2018
885e4f7
Update rules.md
JaneZC Mar 29, 2018
7e1d19c
Update rules.md
JaneZC Mar 29, 2018
b18a200
Update rules.md
JaneZC Mar 29, 2018
71ca056
Update helpful-information.md
JaneZC Mar 29, 2018
e3280d0
Update helpful-information.md
JaneZC Mar 29, 2018
77e4f8f
Update helpful-information.md
JaneZC Mar 29, 2018
826dafa
Update helpful-information.md
JaneZC Mar 29, 2018
0042720
Update allowed.md
JaneZC Mar 29, 2018
0a20d7c
Update introduction.md
JaneZC Mar 29, 2018
b60eab5
Update introduction.md
JaneZC Mar 29, 2018
81e23d1
Update introduction.md
JaneZC Mar 29, 2018
9d048c5
Update introduction.md
JaneZC Mar 29, 2018
6435dfa
Merge branch 'sprint-12-development' of https://github.com/nciinc/fs-…
sethalt Mar 29, 2018
376bbeb
Merge pull request #671 from nciinc/607_invalid_inputs
sadlerw Mar 29, 2018
87084ce
Confirmation text update
shekarpendem Mar 29, 2018
fa98631
e2e fix
shekarpendem Mar 29, 2018
91bfa12
590 blurb explaining trees structure
sadlerw Mar 29, 2018
d77dac8
Comment services
sethalt Mar 29, 2018
4c84b70
Merge branch 'sprint-12-development' of https://github.com/nciinc/fs-…
sethalt Mar 29, 2018
54252b2
590 refactor special uses e2e
sadlerw Mar 29, 2018
3472508
Merge pull request #675 from nciinc/641_text_updates
sadlerw Mar 29, 2018
043213f
590 replace.build.js docs
sadlerw Mar 29, 2018
18d3b5f
AM/PM fix
shekarpendem Mar 29, 2018
892222d
590 e2e refactor
sadlerw Mar 29, 2018
da62e8c
Species and maps to it’s own directory under assets
shekarpendem Mar 29, 2018
6ec7195
specs error fix
shekarpendem Mar 29, 2018
1713f14
assets site wide images moved to /img/site-wide directory
shekarpendem Mar 29, 2018
4a7fcd1
Create general-guidelines.md
bryanmcfadden Mar 29, 2018
f3b4eea
typedocs for trees components
sethalt Mar 29, 2018
f0e7d7b
lint errors
sethalt Mar 29, 2018
4d9791a
Merge pull request #678 from nciinc/590_replace_build_doc
shekarpendem Mar 29, 2018
f56bac0
Merge pull request #679 from nciinc/590_frontend
shekarpendem Mar 29, 2018
27d8ddf
Merge branch 'sprint-12-development' of https://github.com/nciinc/fs-…
shekarpendem Mar 29, 2018
f456b10
passing unit tests
sethalt Mar 29, 2018
893679c
Merge pull request #677 from nciinc/590_refactor_e2e
sethalt Mar 29, 2018
22f90bf
Merge pull request #676 from nciinc/590_trees_structure
sethalt Mar 29, 2018
ad9ae0b
Merge branch 'sprint-12-development' of https://github.com/nciinc/fs-…
sethalt Mar 29, 2018
f961c51
Merge branch 'sprint-12-development' of https://github.com/nciinc/fs-…
sethalt Mar 29, 2018
ebdc7b4
Merge pull request #681 from nciinc/590_frontend
sethalt Mar 29, 2018
a177479
Merge branch 'sprint-12-development' of https://github.com/nciinc/fs-…
sethalt Mar 29, 2018
1e0a8ec
Merge branch 'sprint-12-development' of https://github.com/nciinc/fs-…
sethalt Mar 29, 2018
e10f893
Merge branch 'sprint-12-development' of https://github.com/nciinc/fs-…
sethalt Mar 29, 2018
86306fe
remove console log
sethalt Mar 29, 2018
9aefc73
Reorganize common modules, typedocs
sethalt Mar 29, 2018
15d8ebe
590 mapping
sadlerw Mar 29, 2018
fef1213
Merge pull request #674 from nciinc/556_content
sadlerw Mar 29, 2018
3e45c40
fix lint error
sethalt Mar 30, 2018
c30f5bf
Merge pull request #683 from nciinc/590_mapping
sethalt Mar 30, 2018
e9b4b14
Merge branch 'sprint-12-development' into 590_refactor
sethalt Mar 30, 2018
c976b10
Merge pull request #680 from nciinc/590_refactor
sethalt Mar 30, 2018
30aa788
Merge branch 'sprint-12-development' of https://github.com/nciinc/fs-…
sethalt Mar 30, 2018
946163f
Merge pull request #682 from nciinc/590_frontend
shekarpendem Mar 30, 2018
97f4547
Merge pull request #673 from nciinc/616_email_image_alt
shekarpendem Mar 30, 2018
9b432d5
Species photo credits updates
shekarpendem Mar 30, 2018
35dbd0d
638 documentation of circle checks
cameronwolf Mar 30, 2018
ee0d40b
Add oportunity statement, update ENV Var description
sethalt Mar 30, 2018
1cecfe9
update oportunity statment
sethalt Mar 30, 2018
3feff96
556 a.m. p.m.
sadlerw Mar 30, 2018
4970474
lint
sadlerw Mar 30, 2018
1b6f974
Fixed docker command to start development server. Added section about…
cameronwolf Mar 30, 2018
1cb5f8f
Merge pull request #684 from nciinc/sprint-11-feedback
sethalt Mar 30, 2018
1c2100d
jsdocs for server functions with returns
shekarpendem Mar 30, 2018
c06e3fc
Merge branch 'sprint-12-development' of https://github.com/nciinc/fs-…
shekarpendem Mar 30, 2018
b1e26e9
Added returns after links
cameronwolf Mar 30, 2018
a766745
Readme updates
shekarpendem Mar 30, 2018
fc2c928
587 progress bar
sadlerw Mar 30, 2018
11d199b
remove unused dependencies
sethalt Mar 30, 2018
d5a593e
change request form from environment
shekarpendem Mar 30, 2018
6ae3b08
Additional README updates from PR comments
cameronwolf Mar 30, 2018
af4c5a9
Frontend spec
shekarpendem Mar 30, 2018
3a04abc
change conditions to guidelines
sethalt Mar 30, 2018
146075e
Format prohibited label
sethalt Mar 30, 2018
7d373bf
587 progress bar
sadlerw Mar 30, 2018
95c2b7e
Merge pull request #686 from nciinc/638_and_wiki_pr_updates
sadlerw Mar 30, 2018
9f48e4c
Merge pull request #687 from nciinc/587_progress_bar
sethalt Mar 30, 2018
31002fb
a.m/p.m change on server side
shekarpendem Mar 30, 2018
69a9421
Am/pm frontend changes
shekarpendem Mar 30, 2018
d6436f5
556 am/pm
sadlerw Mar 30, 2018
5ac6d2e
Merge pull request #688 from nciinc/556_content
sethalt Mar 30, 2018
be350b1
lint
sadlerw Mar 30, 2018
80fdde8
Merge branch 'sprint-12-development' into 11_pr_comments
sadlerw Mar 30, 2018
e90aa28
Merge pull request #685 from nciinc/556_am_pm
sadlerw Mar 30, 2018
c147d96
Merge pull request #689 from nciinc/11_pr_comments
sadlerw Mar 30, 2018
03bd753
Update rules.md
JaneZC Apr 2, 2018
9bd9ed5
Update allowed.md
JaneZC Apr 2, 2018
ff95f83
Update allowed.md
JaneZC Apr 2, 2018
78f4de2
Update measuring.md
JaneZC Apr 2, 2018
ed44a7e
thumbnails of maps and species
sethalt Apr 2, 2018
250d5d7
508 fixes
sethalt Apr 2, 2018
41a9dfa
Update general-guidelines.md
JaneZC Apr 2, 2018
7e8c68f
Merge branch 'sprint-12-development' into 11_pr_comments
sadlerw Apr 2, 2018
926e244
Merge pull request #693 from nciinc/508_bugs
sadlerw Apr 2, 2018
33ddd15
Merge branch 'sprint-12-development' into 556_content
sadlerw Apr 2, 2018
c454f8d
Updated map alt text component to read from markdown files rather tha…
cameronwolf Apr 2, 2018
0c1c9d8
508 skip nav content for map details
sadlerw Apr 2, 2018
5ba22dc
Removed service
cameronwolf Apr 2, 2018
c1c2c42
Fixed spec
cameronwolf Apr 2, 2018
5b73cb4
Unused images removed, copy/replace 3 images from uswds
shekarpendem Apr 2, 2018
cbfdaaa
copy 3 images from node_modules users
shekarpendem Apr 2, 2018
3929ff0
favicon path update
shekarpendem Apr 2, 2018
9a54d50
Merge pull request #692 from nciinc/634_thumbnails
shekarpendem Apr 2, 2018
340b211
Merge pull request #694 from nciinc/587_hide_progress
sadlerw Apr 2, 2018
c3e5313
Map location change
shekarpendem Apr 2, 2018
6455d32
Merge branch 'sprint-12-development' into 556_content
shekarpendem Apr 2, 2018
38e357b
Merge pull request #696 from nciinc/508_skip_nav
shekarpendem Apr 2, 2018
ca1f434
Merge branch 'sprint-12-development' into sprint-11-map-alt-txt-src
cameronwolf Apr 2, 2018
10ae777
confirmation page frontend console error fix
shekarpendem Apr 2, 2018
2e4bfc7
Merge branch 'sprint-12-development' of https://github.com/nciinc/fs-…
shekarpendem Apr 2, 2018
54d9924
Merge pull request #695 from nciinc/556_content
shekarpendem Apr 2, 2018
5be3351
add error handler to intercept authentication errors and redirect use…
sethalt Apr 2, 2018
b6b2886
Merge branch 'sprint-12-development' into 125_uswds_images
shekarpendem Apr 2, 2018
558a469
556 fix formatting on home page
sadlerw Apr 2, 2018
f4d4027
Merge pull request #697 from nciinc/sprint-11-map-alt-txt-src
cameronwolf Apr 2, 2018
519def9
Merge pull request #699 from nciinc/125_uswds_images
sethalt Apr 2, 2018
1ca993b
Merge pull request #700 from nciinc/auth_error_handling
sethalt Apr 2, 2018
dff2cf7
Merge pull request #701 from nciinc/556_home_formatting
sadlerw Apr 2, 2018
a8fb9ac
non-transparent mt hood maps
sadlerw Apr 2, 2018
003c382
Merge pull request #702 from nciinc/634_performance
sadlerw Apr 2, 2018
03d74e3
556 season dates IE issue
sadlerw Apr 2, 2018
e1c0d6b
Merge pull request #703 from nciinc/634_thumbnails
sadlerw Apr 2, 2018
e77ae71
556 print rules image missing
sadlerw Apr 2, 2018
2bb9130
Merge pull request #704 from nciinc/556_fix_ie_season_dates
shekarpendem Apr 2, 2018
7f549a5
556 cancel alert
sadlerw Apr 3, 2018
a2144bf
IE date formatting
sadlerw Apr 3, 2018
dc4c28b
IE date formatting
sadlerw Apr 3, 2018
ca084ae
Merge pull request #705 from nciinc/556_cancel_alert_issue
sadlerw Apr 3, 2018
36b0ebf
lint
sadlerw Apr 3, 2018
e8c9d5e
specs
sadlerw Apr 3, 2018
ef023f2
Merge branch 'sprint-12-development' into IE_date_formatting
sadlerw Apr 3, 2018
b8c7ea4
specs
sadlerw Apr 3, 2018
0dad83b
specs
sadlerw Apr 3, 2018
372fa29
Merge pull request #706 from nciinc/IE_date_formatting
sadlerw Apr 3, 2018
a560f29
Added report to wiki on the results of the OWASP ZAP scan run on Marc…
cameronwolf Apr 3, 2018
6e332cf
Merge pull request #709 from nciinc/708_scan
shekarpendem Apr 3, 2018
98358df
Merge pull request #710 from nciinc/sprint-12-development
shekarpendem Apr 3, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 2 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -210,15 +210,15 @@ workflows:
requires:
filters:
branches:
only: sprint-11-development
only: sprint-12-development
- staging-deploy:
requires:
- run-all-other-tests
- run-e2e
- run-pa11y
filters:
branches:
only: sprint-11-development
only: sprint-12-development
- prod-deploy:
requires:
- run-all-other-tests
Expand Down
55 changes: 30 additions & 25 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,18 @@ _Staging:_

# U.S. Forest Service Permit Platform


** Platform for sale of Christmas tree permits and intake of special use applications for the U.S. Forest Service **

## Welcome

The U.S. Forest Service is engaged in an ongoing effort to modernize and simplify their permitting processes. One facet of this effort is to make special use permits available to obtain online. Flexion worked with GSA's Technology Transformation Service's Office of Acquisitions and the Forest Service to build out this platform for noncommercial and temporary use permits.
The U.S. Forest Service is engaged in an ongoing effort to modernize and simplify its permitting processes. One facet of this effort is to make special use permits available to obtain online. Flexion worked with GSA's Technology Transformation Service's Office of Acquisitions and the Forest Service to build out this platform for noncommercial and temporary use permits.

## Opportunity Statement

The opportunity statement = the problem we are trying to solve with the ePermitting project
The opportunity statement = the problem we are trying to solve with the ePermitting project.

We had the opportunity to modernize the ability to apply for special use permits within a pilot forest (Mt. Baker-Snoqualime) of the Forest Service. Our belief is that this will simplify and speed up the ability to apply for and act on special use permits.
We have the opportunity to modernize the public's ability to apply for special use permits and to purchase permits to harvest Christmas trees. For special use permits, Mt. Baker-Snoqualime is the pilot forest. For Christmas tree permits, Arapaho and Roosevelt, Flathead, Mt. Hood, and Shoshone are the pilot forests. Our belief is that these applications will simplify and speed up the ability to apply for and purchase permits.

## Table of contents

Expand All @@ -32,7 +33,6 @@ We had the opportunity to modernize the ability to apply for special use permits
- [Opportunity Statement](#opportunity-statement)
- [Table of contents](#table-of-contents)
- [Development](#development)
- [Docker Environment](#docker-environment)
- [Requirements:](#requirements)
- [Local development requirements](#local-development-requirements)
- [Package Manager](#package-manager)
Expand Down Expand Up @@ -69,34 +69,29 @@ We had the opportunity to modernize the ability to apply for special use permits
- [Pay.gov error mocking in local environment](#paygov-error-mocking-in-local-environment)
- [Pay.gov in QA environment](#paygov-in-qa-environment)
- [Christmas trees sidebar template](#christmas-trees-sidebar-template)
- [Docker Environment](#docker-environment)
- [Deployment](#deployment)
- [Continuous Integration, Continuous Deployment](#continuous-integration-continuous-deployment)
- [Cloud.gov](#cloudgov)
- [Docs](#docs)
- [Content administration](#content-administration)
- [Christmas Trees Database and seeders](#christmas-trees-database-and-seeders)
- [Markdown and Christmas trees forest content](#markdown-and-christmas-trees-forest-content)
- [Christmas trees forest JSON content](#christmas-trees-forest-json-content)
- [Enable html5 pushstate on cloud.gov](#enable-html5-pushstate-on-cloudgov)
- [Logging STMP errors](#logging-stmp-errors)
- [Docker Environment](#docker-environment)
- [Usability testing](#usability-testing)
- [Known technical Debt](#known-technical-debt)
- [Contributing](#contributing)
- [Public domain](#public-domain)

<!-- /TOC -->

## Development

** The following instructions outline tools and procedures required for local development **

#### Docker Environment

As an alternative to installing all the development tools necessary to run the entire environment on your computer, Docker can be used instead. These instructions will detail how to use Docker to setup a full environment to run the application.
## Local Development

[View instructions to get up and running with Docker](/wiki/development/docker-instructions.md)
There are two options for local development - Docker or installing the dependencies independently.

[View instructions to administer the forest json](/wiki/christmas-trees/content/forest-json-instructions.md)
** The following instructions outline tools and procedures required for local development without docker **

### Requirements:

Expand Down Expand Up @@ -282,25 +277,43 @@ Navigate to `/assets/typedoc/index.html`

[View instructions to use the Christmas trees sidebar template.](/wiki/development/christmas-trees-sidebar-template.md)

### Docker Environment

As an alternative to installing all the development tools necessary to run the entire environment on your computer, Docker can be used instead. These instructions will detail how to use Docker to setup a full environment to run the application.

[View instructions to get up and running with Docker](/wiki/development/docker-instructions.md)

[View instructions to administer the forest json](/wiki/christmas-trees/content/forest-json-instructions.md)

## Deployment

### Continuous Integration, Continuous Deployment

[Circleci 2.0](/wiki/christmas-trees/process/Circleci-2-implementation.md) is used for continuous integration/deployment. The configuration file for circleci are found at [/.circleci/config.yml](/circleci/config.yml).
[Circleci 2.0](/wiki/christmas-trees/process/Circleci-2-implementation.md) is used for continuous integration/deployment. The configuration file for circleci are found at [/.circleci/config.yml](/circleci/config.yml). An explaination of the checks performed by circleci are found at [/wiki/christmas-trees/process/circle-checks.md](/wiki/christmas-trees/process/circle-checks.md)

The circleci configuration separates e2e tests from all other tests in two different jobs that run simultaneously to decrease build time.
The circleci configuration separates the tests into three different jobs that run simultaneously to decrease build time e2e, pa11y tests, and all other tests.

Deployment to a staging server is configured to run on the sprint branch only.

#### Snyk

Check the .snyk file under frontend and server for packages ignored by [snyk](https://snyk.io/). This
Check the .snyk file under frontend and server for packages ignored by [snyk](https://snyk.io/). This
file is managed by the `snyk wizard`. `snyk-protect` is run in the Procfile at server start-up.

### Cloud.gov

Deployment to cloud.gov is configured in the [.cg-deploy](/.cg-deploy) directory. The website's client (frontend) and server (backend) are deployed to separate servers. Each deployment environment (staging, production) require their own manifest files. The manifests are attached to the environment via the [deploy script](/.cg-deploy/deploy.sh), that authenticates with cloud.gov and pushes the files.

### Build versioning

The app/frontend/replace.build.js script is run from circle-ci via config.yml to update the version and date in the transpiled javascript
frontend code for each build. This date and version will display in the application footer.

## Docs
* [Server jsDocs](https://fs-intake-api.app.cloud.gov/docs/code/)
* [Server api endpoints](https://fs-intake-api.app.cloud.gov/docs/api)
* [Frontend Typedocs](https://forest-service-epermit.app.cloud.gov/assets/typedoc/)

## Content administration

[Christmas trees README](/wiki/christmas-trees/README.md)
Expand Down Expand Up @@ -337,14 +350,6 @@ This allows you to use urls like `/some/path` instead of `/#/some/path`

SMTP errors are logged in the console and prefixed with the string `NODE_MAILER_SMTP_ERROR`. A monitoring service, such as New Relic, can be configured to create alerts when an error with `NODE_MAILER_SMTP_ERROR` is logged.

### Docker Environment

As an alternative to installing all the development tools necessary to run the entire environment on your computer, Docker can be used instead. These instructions will detail how to use Docker to setup a full environment to run the application.

[View instructions to get up and running with Docker](/wiki/development/docker-instructions.md)

[View instructions to administer the forest json](/wiki/christmas-trees/content/forest-json-instructions.md)

## Usability testing

While developing we spent time usability testing features with the correct users and applied feedback into the website.
Expand Down
68 changes: 33 additions & 35 deletions frontend/.angular-cli.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,46 +3,44 @@
"project": {
"name": "frontend"
},
"apps": [
{
"root": "src",
"outDir": "dist",
"assets": ["assets", "assets/img/*.*", "Staticfile", "Staticfile.auth"],
"index": "index.html",
"main": "main.ts",
"polyfills": "polyfills.ts",
"test": "test.ts",
"tsconfig": "tsconfig.app.json",
"testTsconfig": "tsconfig.spec.json",
"prefix": "app",
"styles": ["../node_modules/uswds/src/stylesheets/_all.scss", "forest-service.scss"],
"scripts": [],
"environmentSource": "environments/environment.ts",
"environments": {
"dev": "environments/environment.ts",
"docker": "environments/environment-docker.ts",
"prod": "environments/environment.prod.ts",
"trees": "environments/environment.trees.ts",
"staging": "environments/environment.staging.ts"
}
"apps": [{
"root": "src",
"outDir": "dist",
"assets": ["assets", "assets/img/*.*", "Staticfile", "Staticfile.auth",
{ "glob": "close.svg", "input": "../node_modules/uswds/dist/img/", "output": "./assets/img/site-wide" },
{ "glob": "favicon-57.png", "input": "../node_modules/uswds/dist/img/favicons", "output": "./assets/favicons" },
{ "glob": "search-alt.svg", "input": "../node_modules/uswds/dist/img/", "output": "./assets/img/site-wide" }
],
"index": "index.html",
"main": "main.ts",
"polyfills": "polyfills.ts",
"test": "test.ts",
"tsconfig": "tsconfig.app.json",
"testTsconfig": "tsconfig.spec.json",
"prefix": "app",
"styles": ["../node_modules/uswds/src/stylesheets/_all.scss", "forest-service.scss"],
"scripts": [],
"environmentSource": "environments/environment.ts",
"environments": {
"dev": "environments/environment.ts",
"docker": "environments/environment-docker.ts",
"prod": "environments/environment.prod.ts",
"trees": "environments/environment.trees.ts",
"staging": "environments/environment.staging.ts"
}
],
}],
"e2e": {
"protractor": {
"config": "./protractor.conf.js"
}
},
"lint": [
{
"project": "src/tsconfig.app.json"
},
{
"project": "src/tsconfig.spec.json"
},
{
"project": "e2e/tsconfig.e2e.json"
}
],
"lint": [{
"project": "src/tsconfig.app.json"
}, {
"project": "src/tsconfig.spec.json"
}, {
"project": "e2e/tsconfig.e2e.json"
}],
"test": {
"karma": {
"config": "./karma.conf.js"
Expand All @@ -52,7 +50,7 @@
"src/app/pay-gov-mocks/**/*",
"src/app/_mocks/**/*",
"src/app/_models/**/*",
"src/app/_shared/**/*"
"src/app/shared/shared.module.ts"
]
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,20 +44,19 @@ describe('Xmas tree - Admin Reports', () => {
page.startMonthInput().clear();
expect<any>(page.reportSubmit().click());
page.startMonthInput().sendKeys('13');
expect<any>(page.startMonthError().getText()).toEqual(
'Start month requires a 1 or 2 digit number that is less than 13.'
);
expect<any>(page.startDateTimeError().getText()).toEqual('Start date is invalid.');
page.startMonthInput().sendKeys(protractor.Key.TAB);
expect<any>(page.startMonthError().getText()).toEqual('Start month requires a 1 or 2 digit number that is less than 13.');
page.startMonthInput().clear();
page.startMonthInput().sendKeys('10');
expect<any>(page.startMonthError().isPresent()).toBeFalsy();

page.startDayInput().clear();
page.startDayInput().sendKeys('33');
expect<any>(page.startDateTimeError().getText()).toEqual('Start date is invalid.');
page.startDayInput().sendKeys(protractor.Key.TAB);
expect<any>(page.startDayError().getText()).toEqual('Start day requires a 1 or 2 digit number.');
page.startDayInput().clear();
page.startDayInput().sendKeys('10');
expect<any>(page.startDateTimeError().isPresent()).toBeFalsy();
expect<any>(page.startDayError().isPresent()).toBeFalsy();
});

it('should display error if start date is after end date', () => {
Expand Down Expand Up @@ -120,15 +119,15 @@ describe('Xmas tree - Admin Reports', () => {
page.permitNumber().sendKeys('a');
page.permitNumberSubmit().click();
expect<any>(page.permitNumberRequiredError().isDisplayed()).toBeTruthy();
expect<any>(page.permitNumberRequiredError().getText()).toEqual('permit number requires a 8 digit number.');
expect<any>(page.permitNumberRequiredError().getText()).toEqual('permit number requires an 8 digit number.');
});

it('should show a error if not permit number is not long enough', () => {
page.permitNumber().clear();
page.permitNumber().sendKeys('1');
page.permitNumberSubmit().click();
expect<any>(page.permitNumberRequiredError().isDisplayed()).toBeTruthy();
expect<any>(page.permitNumberRequiredError().getText()).toEqual('permit number requires a 8 digit number.');
expect<any>(page.permitNumberRequiredError().getText()).toEqual('permit number requires an 8 digit number.');
});

it('should show a error if the permit is not found', () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,16 @@ describe('Xmas tree - Update District Dates', () => {
it('should show date invalid errors if dates are invalid', () => {
page.startMonthInput().clear();
page.startMonthInput().sendKeys('13');

expect<any>(page.startDateTimeError().getText()).toEqual('Start date is invalid.');
page.startMonthInput().sendKeys(protractor.Key.TAB);
expect<any>(page.startMonthError().getText()).toEqual('Start month requires a 1 or 2 digit number that is less than 13.');
page.startMonthInput().clear();
page.startMonthInput().sendKeys('10');
expect<any>(page.startMonthError().isPresent()).toBeFalsy();

page.startDayInput().clear();
page.startDayInput().sendKeys('33');
expect<any>(page.startDateTimeError().getText()).toEqual('Start date is invalid.');
page.startDayInput().sendKeys(protractor.Key.TAB);
expect<any>(page.startDayError().getText()).toEqual('Start day requires a 1 or 2 digit number.');
page.startDayInput().clear();
page.startDayInput().sendKeys('10');
expect<any>(page.startDateTimeError().isPresent()).toBeFalsy();
Expand Down Expand Up @@ -83,7 +84,7 @@ describe('Xmas tree - Update District Dates', () => {

});

it ('should let the user update the district dates', () => {
it('should let the user update the district dates', () => {
element(by.id('3-button-label')).click();
element(by.id('1-button-label')).click();
page.updateDatesSubmit().click();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,18 +49,19 @@ describe('Xmas tree - Update Season Dates', () => {
it('should show date invalid errors if dates are invalid', () => {
page.startMonthInput().clear();
page.startMonthInput().sendKeys('13');

expect<any>(page.startDateTimeError().getText()).toEqual('Start date is invalid.');
page.startMonthInput().sendKeys(protractor.Key.TAB);
expect<any>(page.startMonthError().getText()).toEqual('Start month requires a 1 or 2 digit number that is less than 13.');
page.startMonthInput().clear();
page.startMonthInput().sendKeys('10');
expect<any>(page.startMonthError().isPresent()).toBeFalsy();

page.startDayInput().clear();
page.startDayInput().sendKeys('33');
expect<any>(page.startDateTimeError().getText()).toEqual('Start date is invalid.');
page.startDayInput().sendKeys(protractor.Key.TAB);
expect<any>(page.startDayError().getText()).toEqual('Start day requires a 1 or 2 digit number.');
page.startDayInput().clear();
page.startDayInput().sendKeys('10');
expect<any>(page.startDateTimeError().isPresent()).toBeFalsy();
expect<any>(page.startDayError().isPresent()).toBeFalsy();
});

it('should display error if start date is after end date', () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { AdminApplicationList, NoncommercialGroupForm } from '../app.po';
import { AdminApplicationList, NoncommercialGroupForm } from './app.po';
import { NoncommercialApplicationForm } from './noncommercial-application-form.po';
import { FieldValidation } from '../field-validation.po';
import { FieldValidation } from './field-validation.po';
import { browser, element, by, Key } from 'protractor';

describe('Apply for a ', () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { AdminApplicationList, NoncommercialGroupForm } from '../app.po';
import { AdminApplicationList, NoncommercialGroupForm } from './app.po';
import { NoncommercialApplicationForm } from './noncommercial-application-form.po';
import { FieldValidation } from '../field-validation.po';
import { FieldValidation } from './field-validation.po';
import { browser, element, by, Key } from 'protractor';

describe('Admin applications page', () => {
Expand Down
2 changes: 1 addition & 1 deletion frontend/e2e/authenticated/special-uses/app.e2e-spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { FrontendPage, HelpMePick } from '../app.po';
import { FrontendPage, HelpMePick } from './app.po';
import { browser, element, by, Key } from 'protractor';

describe('frontend App', () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { NoncommercialGroupForm } from '../app.po';
import { FieldValidation } from '../field-validation.po';
import { NoncommercialGroupForm } from './app.po';
import { FieldValidation } from './field-validation.po';
import { browser, element, by, Key, protractor } from 'protractor';

const checkForPrimaryPermitHolderAddress = function(state) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { TempOutfittersForm } from '../app.po';
import { FieldValidation } from '../field-validation.po';
import { TempOutfittersForm } from './app.po';
import { FieldValidation } from './field-validation.po';
import { browser, element, by, Key } from 'protractor';

describe('Apply for a temp outfitters permit', () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { NonCommercialLearnMorePage } from '../app.po';
import { NonCommercialLearnMorePage } from './app.po';
import { browser, element, by, Key, protractor } from 'protractor';

describe('NonCommercial Learn More', () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { TempOutfittersLearnMorePage } from '../app.po';
import { TempOutfittersLearnMorePage } from './app.po';
import { browser, element, by, Key, protractor } from 'protractor';

describe('Temp Outfitters Learn More', () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { FrontendPage, HelpMePick } from '../authenticated/app.po';
import { FrontendPage, HelpMePick } from '../authenticated/special-uses/app.po';
import { browser, element, by, Key } from 'protractor';

describe('frontend App', () => {
Expand Down
Loading