-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TGR-50: Remediation update #2155
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes look fine but I think there is some commented code that I've marked to remove (unless there is some reason to keep it).
logger.js
Outdated
// Supress error handling | ||
winston.emitErrs = false; | ||
// winston.emitErrs = false; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
commented code?
logger.js
Outdated
// const logLevel = (process.env.NODE_ENV === 'production') ? 'info' : 'debug'; | ||
const timestamp = () => new Date().toISOString(); | ||
const formatter = (options) => { | ||
// const timestamp = () => new Date().toISOString(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
commented code?
@@ -1,7 +1,7 @@ | |||
import React, { useState } from 'react'; | |||
import PropTypes from 'prop-types'; | |||
import { Button, Checkbox, Icon } from '@nypl/design-system-react-components'; | |||
import FocusTrap from 'focus-trap-react'; | |||
// import FocusTrap from 'focus-trap-react'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
commented code?
// <FocusTrap | ||
// focusTrapOptions={{ | ||
// clickOutsideDeactivates: true, | ||
// onDeactivate: () => { | ||
// if (!mobile) manageFilterDisplay('none'); | ||
// }, | ||
// returnFocusOnDeactivate: false, | ||
// }} | ||
// active={isOpen} | ||
// className="item-filter" | ||
// > |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
commented code?
// <FocusTrap | ||
// focusTrapOptions={{ | ||
// onDeactivate: () => { | ||
// if (focus) { | ||
// focus(); | ||
// } | ||
// }, | ||
// }} | ||
// > |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
commented code?
@@ -45,7 +45,7 @@ const LoadingLayer = ({ loading, title, focus }) => { | |||
</div> | |||
</div> | |||
</div> | |||
</FocusTrap> | |||
// {/* </FocusTrap> */} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
commented code?
src/client/App.jsx
Outdated
@@ -8,7 +8,7 @@ import ReactDOM from 'react-dom'; | |||
import { Router, browserHistory, applyRouterMiddleware } from 'react-router'; | |||
import a11y from 'react-a11y'; | |||
import { Provider } from 'react-redux'; | |||
import useScroll from 'react-router-scroll/lib/useScroll'; | |||
// import useScroll from 'react-router-scroll/lib/useScroll'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
commented code?
Good point, thanks, I'll remove the commented code. |
@EdwinGuzman are there specs for this work? the ticket seems to be more documentation of the work itself than a directive describing what needs to happen. |
@@ -1,5 +1,36 @@ | |||
## CHANGE LOG | |||
|
|||
### 1.9.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this warrant a new major version?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was debating that. I don't think so since the update is for the codebase and not any features. Do you think it should be a major bump?
active={isOpen} | ||
className="item-filter" | ||
> | ||
<div className="item-filter"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
does this have any accessibility implications? ie is focus going to be affected?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, but this page will soon be replaced so I'm not too concerned.
webpack-dev.config.js
Outdated
const path = require('path'); | ||
const webpack = require('webpack'); | ||
|
||
// Sets appEnv so the the header component will point to the search app on either Dev or Prod |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what is the search app?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm just copy/paste issue.
per our discussion, please update the readme to indicate the |
This update is on the QA, Train, and Production live envs. Merging into |
…es-hit-reverse-proxy SCC-4324 - Make bib link on hold pages hit reverse proxy
Add fix to fix use of discovery.nypl.org in redirect_uri
NOTE: Tests currently DO NOT run. This might be the tradeoff we deal with now or spend a week or so updating tests to jest/rtl for Hold and SHEP pages (since those are/will be left in the app until the refactor project is complete).
This is still a WIP because we are waiting on tech stacks butplease test locally. Make sure you haveAWS_ACCESS_KEY_ID
andAWS_SECRET_ACCESS_KEY
set in.env
for the Docker image to build correctly.1.9.0
Remediation Project Update
Adds
AWS_ACCESS_KEY_ID
andAWS_SECRET_ACCESS_KEY
as example env vars needed in.env-sample
. They are required for building Docker images.Dockerfile
and instructions on how to use it locally.sass
,webpack-dev-middleware
Updates
.nvmrc
to use Node 20.build
anddev
.react-number-format
package is used in theFieldsetDate
component.focus-trap-react
package.@babel/preset-env
,@babel/preset-react
,@babel/preset-register
,@nypl/nypl-core-objects
,@nypl/nypl-data-api-client
,@typescript-eslint/eslint-plugin
,axios
,babel-plugin-module-resolver
,body-parser
,chai
,clean-webpack-plugin
,compression
,cookie-parser
,cross-env
,css-loader
,doctoc
,dotenv
,ejs
,enzyme-adapter-react-16
,eslint
,eslint-config-airbnb
,eslint-config-prettier
,eslint-plugin-import
,eslint-plugin-jsx-a11y
,eslint-plugin-prettier
,eslint-plugin-react
,eslint-plugin-react-hooks
,express
,file-loader
,focus-trap-react
,jsonwebtoken
,mini-css-extract-plugin
,mocha
,mock-local-storage
,nock
,react
,react-autosuggest
,react-dom
,react-number-format
,react-redux
,redux
,redux-thunk
,prettier
,sass-loader
,sinon
,sinon-chai
,style-loader
,supertest
,typescript
,webpack
,webpack-cli
,winston
,underscore
,url-parse
,validator
Removals
.ebextensions
folder since this repos should no longer deploy to ElasticBeanstalk..travis.yml
file to not use Travis CI.Procfile
since this we don't use Heroku.@babel/core
,@babel/polyfill
,@nypl/dgx-header-component
,@nypl/dgx-react-footer
,@typescript-eslint/parser
,node-sass
,node-sass-glob-importer
,react-router-scroll
,webpack-bundle-analyzer
,webpack-dev-server
,webpack-merge