Skip to content

Deploy RC 252 to Production#7815

Merged
mitchellhenke merged 7 commits intostages/prodfrom
stages/rc-2023-02-13
Feb 13, 2023
Merged

Deploy RC 252 to Production#7815
mitchellhenke merged 7 commits intostages/prodfrom
stages/rc-2023-02-13

Conversation

@mitchellhenke
Copy link
Contributor

User-Facing Improvements

  • In-person proofing: Change default IPP call-to-action text to nationwide variant. (#7798)
  • Account Management: Add personal key generation date to "reactivate your account" page (#7781)

Internal

  • Attempts API: Standardize events (#7804)
  • Deployment: Add support for environment-specific content in configuration (#7742)
  • Performance: Remove progressive web app manifest to avoid extra network request (#7809)
  • Performance: Reduce session size (#7703)

jc-gsa and others added 7 commits February 8, 2023 15:55
…" page (#7781)

Add personal_key_generated_at to User model
Display personal key generation date on "reactivate your account" page
Resolves LG-6146

changelog: Internal, Deployment, Add support for environment-specific content in configuration
* LG-8771: Implement reCAPTCHA on phone setup screens

[skip changelog]

* Render captcha submit button as submit button

No-JS compatibility for feature disabled/exempt cases

* Assign exempt countries only when captcha enabled

By not assigning countries, it falls back to the "always exempt" behavior, which is how it should work when feature is disabled

* Rename exempt to isExempt

Practice what you preach: Inform as boolean

* Render hidden input from CaptchaSubmitButtonComponent

1. Allows a means to show the error message
2. Avoids awkwardness of server-side param permitting
3. Simplifies JavaScript

* Move constants top of file

* Handle Faraday errors for reCAPTCHA validation

* Add logging for reCAPTCHA result

* Move constants top of file

* Add score threshold to analytics

* Add service name to Faraday instrumentation

* Remove default button content for submit button

Needs to be customizable (e.g. "Send one time code")

* Reference submit button by form query

* Consider absence of reCAPTCHA key as exemption

Avoids needing exemption to be considered as external consideration of PhoneInputComponent

* Add README for captcha-submit-button package

* Revert SpinnerButton default action message, default in captcha button

I remember now that it was intentional to avoid the default action message as a way to force the implementer to acknowledge and include a relevant message to be announced to assistive technology. "Verifying..." is pretty widespread, but not really a great choice describing the inherent behavior of a spinner button

* Render captcha submit button as submit button

Default for spinnerbutton is plain button (probably shouldn't be =/)

* Separate configuration check from exemption

"exempt" and "doesn't have requisite config" should be considered as separate things

* Remove unused spinnerButton instance function

* Add specs for CaptchaSubmitButtonElement

* Avoid rendering reCAPTCHA script when reCAPTCHA disabled

* Add specs for CaptchaSubmitButtonComponent

* Normalize YAML

* Stop spinner spinning on invalid form

* Update PhoneSetupController specs

* Short-circuit invalid result for missing reCAPTCHA token

* Remove reCAPTCHA error expectations

Default configuration would have reCAPTCHA disabled, so there ought not be any errors

* Add specs for RecaptchaValidator

* Add specs for PhoneSetupRecaptchaValidator

* Update specs for PhoneInputComponent

* Override CSP for reCAPTCHA only when enabled

* Add specs for RecaptchaConcern

* Update NewPhoneForm specs for recaptcha handling

* Use UriService for adding URL parameters

Co-authored-by: Zach Margolis <zachmargolis@users.noreply.github.com>

* Use delegating for PhoneSetupRecaptchaValidator

See #7761 (comment)

* Remove NewRelic error notice for unsuccessful validation

See: #7761 (comment)

We are already logging a detail to CloudWatch we can track

* Handle captcha challenge exemption as event cancellation

See: #7761 (comment)

* Render SpinnerButton explicitly, not as subclass

* Remove class_name from reCAPTCHA validator analytics

We're no longer subclassing, so this wasn't providing an accurate detail. Could consider in the future if we need to disambiguate, at which point maybe we add a "context" property to the class constructor.

* Rename PhoneSetupRecaptcha to PhoneRecaptcha

More abbreviated, could allow reuse, shouldn't be restricted to setup

* Use consistent naming convention for custom events

lg:component:action

* Include evaluated result in analytics payload

* Log class name for reCAPTCHA connection exception

* Add coverage for nil analytics

* Avoid logging for exempt, blank reCAPTCHA

---------

Co-authored-by: Zach Margolis <zachmargolis@users.noreply.github.com>
…error page (#7798)

* changelog: User-facing improvements, In-person proofing, Change default IPP CTA text to nationwide variant.

* Reverting so fallback text is available, removing unnecessary prop
* LG-8188 Fix double failure reason on idv otp event

changelog: Internal, Attempts API, Standardize events
* Reduce session size with encoding and compression changes

changelog: Internal, Performance, Reduce session size

* remove metric logging

* add msgpack to Gemfile

* Update lib/legacy_session_encryptor.rb

Co-authored-by: Zach Margolis <zachmargolis@users.noreply.github.com>

* rename Small -> V2

* rename Legacy back to regular

* add specs

* add "deprecation" warnings

* add frozen_string_literal

* constantize session payload keys

---------

Co-authored-by: Zach Margolis <zachmargolis@users.noreply.github.com>
* Remove PWA manifest file

changelog: Internal, Performance, Remove progressive web app manifest to avoid extra network request

* Remove unused favicon
Copy link
Contributor

@orenyk orenyk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@mitchellhenke mitchellhenke merged commit fb3244d into stages/prod Feb 13, 2023
@mitchellhenke mitchellhenke deleted the stages/rc-2023-02-13 branch February 13, 2023 17:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants