Skip to content
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

Adds panel for NPS surveys #1335

Merged
merged 4 commits into from
Sep 13, 2024
Merged

Adds panel for NPS surveys #1335

merged 4 commits into from
Sep 13, 2024

Conversation

JPrevost
Copy link
Member

@JPrevost JPrevost commented Aug 1, 2024

Why are these changes being introduced:

  • UX has requested this to gather feedback from users

Relevant ticket(s):

How does this address that need:

  • Creates display panel that is configured via ENV to allow for making changes to content without redeploys of code

Document any side effects to this change:

  • Added some newish sqlite files to gitignore

Developer

  • All new ENV is documented in README
  • All new ENV has been added to Heroku Pipeline, Staging and Prod
  • ANDI or Wave has been run in accordance to
    our guide and
    all issues introduced by these changes have been resolved or opened as new
    issues (link to those issues in the Pull Request details above)
  • Stakeholder approval has been confirmed (or is not needed)

Code Reviewer

  • The commit message is clear and follows our guidelines
    (not just this pull request message)
  • There are appropriate tests covering any new functionality
  • The documentation has been updated or is unnecessary
  • The changes have been verified
  • New dependencies are appropriate or there were no changes

Requires database migrations?

NO

Includes new or updated dependencies?

NO

@mitlib mitlib temporarily deployed to mit-bento-pr-1335 August 1, 2024 13:16 Inactive
@coveralls
Copy link

coveralls commented Aug 1, 2024

Coverage Status

coverage: 99.216%. remained the same
when pulling 42b63b1 on pw102-nps-banner
into fcb079f on main.

@mitlib mitlib temporarily deployed to mit-bento-pr-1335 August 5, 2024 14:27 Inactive
@mitlib mitlib temporarily deployed to mit-bento-pr-1335 August 6, 2024 16:16 Inactive
@jazairi jazairi temporarily deployed to mit-bento-pr-1335 August 8, 2024 19:10 Inactive
@JPrevost JPrevost requested a review from a team August 29, 2024 18:59
@jazairi jazairi self-assigned this Aug 29, 2024
@jazairi jazairi temporarily deployed to mit-bento-pr-1335 August 29, 2024 21:52 Inactive
@jazairi jazairi temporarily deployed to mit-bento-pr-1335 August 29, 2024 21:58 Inactive
Copy link
Contributor

@jazairi jazairi left a comment

Choose a reason for hiding this comment

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

I realize it's a bit unorthodox for me to review this as a contributor. We can loop Matt in if it would be useful to get fresh eyes on it.

The last two commits are small refactors to the SCSS. They were quick enough that it made sense just to push up the changes rather than comment. I'd suggest taking a quick look before merging to make sure everything makes sense sense. (It's been a long day, and I wouldn't trust my code at this juncture.)

The only tangible change to the stylesheet is moving the font color from #fff to $white, which is a very slight off-white. The brand also provides $white-t if true white is what is needed here, but $white did not present any contrast issues in WAVE.

JPrevost and others added 4 commits September 13, 2024 13:29
Why are these changes being introduced:

* UX has requested this to gather feedback from users

Relevant ticket(s):

* https://mitlibraries.atlassian.net/browse/PW-102

How does this address that need:

* Creates display panel that is configured via ENV to allow for
  making changes to content without redeploys of code

Document any side effects to this change:

* Added some newish sqlite files to gitignore
Stephanie and I paired today to fine-tune the design a bit. The
goals of the session were to fix the padding, reduce the font size
in large viewports, and ensure that the text didn't wrap beyond
two lines in smaller viewports.

We made the following changes:

* Removes `copy-lead` and `box-content` classes.
* Sets padding to `20px 10px`.
* Sets font-size to `$fs-large` (20px) at viewport widths larger
than our medium breakpoint, and `$fs-base` (16px) at smaller widths.
* Explicitly sets `display: block`. (This rule is implied/inherited,
but it felt useful to declare it because inline-block does weird
things.)

Other things we tried but decided not to do:

* Put `display: block` and `text-wrap: nowrap` on the link in
smaller viewports. This mostly looked good, but squeezed the
spacing from the sides.
* Leave the font size as `$fs-large` in smaller viewports. We were
able to do this without wrapping by reducing the padding, but it
was visually out of proportion.

Co-authored-by: Stephanie Hartman <[email protected]>
@JPrevost JPrevost temporarily deployed to mit-bento-pr-1335 September 13, 2024 17:29 Inactive
@JPrevost JPrevost merged commit 29fd71f into main Sep 13, 2024
3 checks passed
@JPrevost JPrevost deleted the pw102-nps-banner branch September 13, 2024 17:30
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.

5 participants