Commit graph

69 commits

Author SHA1 Message Date
Nat Hillard
f0e81cb7c9 attempting progress 2021-06-10 00:00:24 -04:00
Nat Hillard
5d9bc38b22 WIP dockerfile 2021-06-09 15:51:02 -04:00
Nat Hillard
7ab14c7f3d
Adding Simple URL-based feature flags (#117)
* Fixes #66: As a developer, I want to limit the audience
that sees new features, so that we can control
the message and positioning of our tool.
Implements simple feature flagging via URL parameters.
Provide "?flags=x,y,z" to enable flags x, y, and z.
* Fixing type to use Location instead of URL
* Updating README with info on how to use feature flags
2021-06-09 15:32:59 -04:00
Nat Hillard
c07a14a8db
Fixes issue #107 Geoplatform AWS throws errors on load - we had configured a prefix-path for use with github pages, but this didn't match the path within the s3 bucket. Upload content to a subfolder and ensure pusers access site from /justice40-tool/ (#115) 2021-06-08 10:44:56 -04:00
Jorge Escobar
cd06100925
Adding fork methodology to contributions (#106) 2021-06-07 12:23:31 -04:00
TomNUSDS
acfcf523a7
Add timeline page (#105)
* Add timeline page
* Factor out common aside into component.
* Update J40Footer.spec.tsx.snap
TODO: Get nav menu working.
2021-06-07 09:22:07 -07:00
Nat Hillard
13a5bd008e
Addresses issue #13 - adding workflow to deploy to Geoplatform AWS (#103) 2021-06-07 11:57:46 -04:00
TomNUSDS
63d33b40d0
More layout fixes (#94)
* More layout fixes
* Get aside flush with top/bottom
* Media change iconlist to one column on mobile
* Misc other fixes
* convert className to use React syntax consistently.
* Update J40Footer.spec.tsx.snap
TODO: body font need to be addressed at the theme level?
2021-06-04 07:36:16 -07:00
Nat Hillard
55d6e6635b
addresses issue #11 sub-item 'license checker' (#92) 2021-06-03 15:03:10 -04:00
Nat Hillard
dddd6d5e03
Warning Banner (#86)
* Addresses #78 - As a member of the public, I want to know that our site is a work in progress, so I can set appropriate expectations

* updating wording

* eslint changes

* package-lock updates

* Updating styling slightly and moving to top of page
2021-06-03 13:49:38 -04:00
TomNUSDS
f9ac170c6a
More tweaks from today's meeting (#87)
Just playing with layout.
- Inverted header
- updated snapshot
- adjusted column widths
- Update J40Footer.spec.tsx.snap
2021-06-02 18:34:21 -07:00
Nat Hillard
426f596c7a
Adding Cypress for e2e testing (#85)
* using the higher-level react-testing-library, and regenerating snapshot - renders real DOM elements
* Basic e2e testing with Cypress, following the guide here: https://www.gatsbyjs.com/docs/how-to/testing/end-to-end-testing/ ; needed to install cypress-local to avoid jest-cypress collision
* Adding accessibility testing support and basic a11y tests
* adding failure logging
* Adding nightly test run
* Fix misc stuff from lighthouse (#81)
* Removing local-cypress, relying instead on a combination
of type reference and eslint-plugin-cypress;
adding cypress to jest ignore paths to avoid conflict -
`npm test` is now jest-only, use `npm run test:e2e` to run cypress tests
* updating comment to clarify timezone
2021-06-02 20:53:22 -04:00
Jorge Escobar
7e6144c96f
Create .gitattributes (#89) 2021-06-02 18:08:11 -04:00
Nat Hillard
394260bbec
Splitting dev and prod dependencies, adding npm audit step to catch security vulnerabilities (#88) 2021-06-02 13:21:23 -04:00
TomNUSDS
9f3a030fd5
Fix misc stuff from lighthouse (#81)
* Fix misc stuff from lighthouse

- Icons in list were resizing to be too small.
- Added robots.txt (full exclude for now)
- Add favicon.ico placeholder
- Added page title using helmet (react-helmet + gatsby-plugin-react-helmet)
Note: not sure if react-helmet can be in dev section of package.json?

* Move helmet to header file
- Moved  `<Helmet><title>{title}</title></Helmet>` to Header.
- Added ts support for Helmet.
* Fix title header
2021-05-28 17:07:50 -07:00
Nat Hillard
cf3d14d3b1
Update MAINTAINERS.md
typo
2021-05-28 10:30:45 -04:00
Nat Hillard
668236ec6e
Update MAINTAINERS.md
Formatting MAINTAINERS file
2021-05-28 10:29:34 -04:00
Shelby Switzer
09a06aad56
Update README (#82)
* Update README

* Add info on Community channels (google group, chats)
* Restructure main section on background and core team

* Fix typos and add CODEOWNERS

* Rename CODEOWNERS to MAINTAINERS

This includes all team members, not just engineers, and we are already
tracking code owner engineers under .github/CODEOWNERS

* Add link to and explanation of CODEOWNERS

Co-authored-by: Shelby Switzer <shelby.switzer@cms.hhs.gov>
2021-05-28 10:23:29 -04:00
TomNUSDS
3ca4ca9e6d
Basic Layout (#80)
* Basic Layout

 - Merge with main into new branch
 - Most of main content and footer working.
 - Could not get fixed branch of trussworks to `npm install` correctly, so reverted back to public version. (`trussworks/react-uswds#kh-serverside-rendering-fix-1250"`)

TODO:
 - stack sgv warning+cloud icons
 - get timeline image (which as text that needs to scale)
 - localization support
 - move icon includes out of header?
 - start converting elements over to trussworks

* Cleanup

- removed unused styles
- added some better comments

* Revert trussworks to fixed branch
* Update package-lock.json
* Temporarily pointing toward personal fork until SSR issue has been addressed
* Update J40Footer.spec.tsx.snap
* setting jestEnvironment to the proper 'jsdom' value, needed for snapshot tests
* lingering prettier fix
* small version bump

Co-authored-by: Nat Hillard <Nathaniel.K.Hillard@omb.eop.gov>
2021-05-27 09:54:42 -07:00
Nat Hillard
ce7245b1a2
Addresses issue #11 items unit testing, snapshot testing. Follows instructions from https://www.gatsbyjs.com/docs/how-to/testing/unit-testing/ ; Adding typescript config, mocks, snapshot capabilities; initial test for j40footer and snapshot, readme update, test helper for intl plugin (#79) 2021-05-26 10:01:05 -04:00
Nat Hillard
a432a0d8c9
Adding Linting and Formatting (#77)
Addresses #11 item "Linting/formatting (eg eslnt, prettier)":
* Adding eslint, prettier, and config targeting Google, typescript, and both nodejs and client builds
* Addressing linter-found issues
* Adding lint and lint:fix commands
* Adding documentation
* Renaming workflow and adding lint check
* Adding documentation about VSCode linting/formatting, ran formatting on a few files, set up exclude list for gatsby develop, setup build to fail on error
2021-05-25 16:21:21 -04:00
Nat Hillard
16a9e67db0
Static Deploy to Github Pages (#73)
Addresses #58 , "As a member of the public, I want to see J40's website live on the internet, so that I know it's real!" - hosting on github pages for now as a temporary measure. This fix does NOT: 1) add .gov domain hosting, or 2) post to the geoplatform s3 bucket. This will need to happen in a subsequent fix. 

The changes made specifically to enable this for now:
* Adding github action to build, test, and deploy on pushes to client/
* Adding path prefix to build gh-pages at https://usds.github.io/justice40-tool/
* (Temporarily) pointing to fix branch for trussworks to enable SSR building
* Removing the workaround for the above bug in gatsby-node.js
* Setting build target to be 14.x due to version number limitations
* Adding gh-pages dependency, deploy action for manual deploy
* Force renaming J40header -> J40Header and J40footer -> J40Footer due to Linux case sensitivity
2021-05-25 12:07:45 -04:00
Nat Hillard
da76d6b180 Update issue templates
Updating reviewer list
2021-05-24 10:51:28 -04:00
Shelby Switzer
4430b401de
As an open source community member, I want to know what Justice40-specific terms and acronyms mean. (#75)
* Add glossary from open source kickoff

* Updates to glossary

* Add EVCM because we use this in user stories in this repo's sprint
backlog (which is visible / recorded in the form of Github Issuess)
* Update Climate and Environment Justice Screening Tool to Climate and
Economic Justice Screening Tool, as per the original Executive Order

Co-authored-by: Shelby Switzer <shelby.switzer@cms.hhs.gov>
2021-05-24 10:14:39 -04:00
Nat Hillard
a579cb13bf
Addresses part of #16, (#71)
Integrate gatsby-plugin-intl for internationalization
Replaces static text with `intl.formatMessage` call and Links with `gatsby-plugin-intl` equivalent
Note: `npm install` now requires `--force` to install the latest `gatsby-plugin-intl` as it doesn't explicitly support gatsby3.0
2021-05-21 13:05:27 -04:00
Nat Hillard
5c3a3c022a
Temporarily removing the use of useStaticQuery as it seems to have introduced a bug in page rendering. Hard-coding for now; incidentally we will need to load this as a string anyway for localization purposes (#70) 2021-05-21 10:57:20 -04:00
Nat Hillard
a587482967
Typed Sass Styling (#69)
* Addresses issue #16 -
Add styles via sass and module imports
Adds typed scss imports via gatsby-plugin-sass.
Makes use of .d.scss file generated by gatsby-plugin-scss-typescript,
but avoids importing that directly while they work out issue in gatsby v3.

* adding vscode config for easier local debugging
2021-05-20 23:59:20 -04:00
Nat Hillard
13a4e5f47a
Adding Trussworks USWDS React Wrapper (#67)
* removing unused js
* Working for first load, second raises 'failed to SSR' without DEV_SSR enabled. We will need to fix this before prod
2021-05-20 21:54:08 -04:00
Nat Hillard
be319cbe0b
Create decision-record.md
Adding a new issue template for architecture decision records - Work in progress, these will shortly be integrated with a dedicated project board
2021-05-20 20:19:48 -04:00
Nat Hillard
ad72a5014c
Informational Site: Typescript (#63)
* #16 pt 2 - adding typescript
* Updating package/package-lock
2021-05-19 18:55:10 -04:00
Nat Hillard
6045f32157
Update compile_mermaid.yml (#65) 2021-05-19 18:41:48 -04:00
Nat Hillard
cb99b509de
Update compile_mermaid.yml
Updating to only file in `docs` tree
2021-05-19 18:33:31 -04:00
Nat Hillard
edfe94d2ef
Informational Site: Initial Gatsby Init (#62)
* Initial 'npm init gatsby'
* npm update
2021-05-19 18:19:38 -04:00
Nat Hillard
45317ab5d3
Create CODEOWNERS (#64)
Adding additional core engineer team members
2021-05-19 18:19:13 -04:00
Nat Hillard
148da8b1ec
Update CODEOWNERS
Adding additional core engineer team members
2021-05-19 18:16:49 -04:00
Shelby Switzer
0021908263
Client-side framework decision (#47)
* Add initial draft of front end ADR

* Merging with master to get latest ADRs, renaming to account for numbering, adding some thoughts for Gatsby, NextJS, and Gridsome

* Update client side framework ADR

* Remove options we didn't go to deep into considering
* Add pros/cons of eleventy and create react app

* fixup! Update client side framework ADR

* Update clientside ADR with decision

Co-authored-by: Shelby Switzer <shelby.switzer@cms.hhs.gov>
Co-authored-by: Nat Hillard <Nathaniel.K.Hillard@omb.eop.gov>
2021-05-19 10:03:37 -04:00
Nat Hillard
788c303483
Fixes #18 - Addresses potential architecture on geoplatform.gov (#45)
* Fixes #18 - Addresses potential architecture on geoplatform.gov

* Add changes

* Adding commuinity input into processing

* Add changes

* Add ADR for Hosting

* Update from PR review

Co-authored-by: GitHub Action <action@github.com>
Co-authored-by: Shelby Switzer <shelby.switzer@cms.hhs.gov>
2021-05-19 08:40:05 -04:00
Lucas Merrill Brown
f2503e71fb
Yamale schema validation for data set descriptions (#34)
* https://app.zenhub.com/workspaces/justice40-60993f6e05473d0010ec44e3/issues/usds/justice40-tool/40
2021-05-17 09:12:19 -07:00
Steven Linn
0a2ab57e76
Fix 'Peer authentication failed' error flooding in pg_isready (#59) 2021-05-17 09:52:01 -04:00
Nat Hillard
7ffb8cf2e9
As a repo contributor, I want to understand how large decisions are made, so that I can contribute to making them myself (#46)
* Cleaning up 0002 decision

* Fixes issue #35 - As a repo contributor, I want to understand how large decisions are made, so that I can contribute to making them myself

* Add changes

* fixing link

* removing adr-tools reference per review comments

Co-authored-by: GitHub Action <action@github.com>
2021-05-13 22:22:42 -04:00
Nat Hillard
54fa016af1
Architecture Diagram and Process (#33)
* Use compile mermaid extension

* initial Mermaid arch diagram

* updating mmd extension

* small mmd update

* Adding git add step

* Expanding acronym

* adding branch spec

* Add changes

* outputting SVG instead as PNG is too small

* Add changes

* updating readme

* Backlog->Roadmap

* Add changes

* Updating casing for consistency

* Updating documentation to specify 'update' section applies just to diagram

Co-authored-by: GitHub Action <action@github.com>
2021-05-10 16:15:42 -04:00
Lucas Merrill Brown
534f8b2308
Data roadmap proposal (#24)
* Proposal documented for data roadmap
2021-05-10 12:22:23 -07:00
Shelby Switzer
645e6d8acf
Merge pull request #23 from usds/shelby/update-coc
Update CODE_OF_CONDUCT.md
2021-05-09 14:59:16 -04:00
Shelby Switzer
8eb03b6490
Update CODE_OF_CONDUCT.md
Use code of conduct from VA project: b3ceb03807/CODE_OF_CONDUCT.md

The reason for the change is to start with an already approved-for-government code of conduct and add language incrementally as needed with review.
2021-05-07 17:14:05 -04:00
Nat Hillard
9f754b7216
Rename LICENSE to LICENSE.md 2021-05-07 13:01:22 -04:00
Nat Hillard
1e4c121c6b
Merge pull request #20 from usds/shelby/12-repo-docs
Add contribution info and license
2021-05-07 10:07:46 -04:00
Nat Hillard
be98e2e82d Typo 2021-05-07 10:06:36 -04:00
Nat Hillard
56ab58ce97 updating to add attribution link 2021-05-07 09:27:04 -04:00
Nat Hillard
a6843f78d4 Adding attribution 2021-05-06 15:04:41 -04:00
Nat Hillard
d890ff64ca updating CONTRIBUTING 2021-05-06 15:00:49 -04:00