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

Update docs #723

Merged
merged 6 commits into from
Aug 22, 2023
Merged

Update docs #723

merged 6 commits into from
Aug 22, 2023

Conversation

JPrevost
Copy link
Member

Requires database migrations?

NO

Includes new or updated dependencies?

YES

@mitlib mitlib temporarily deployed to timdex-pr-723 August 18, 2023 15:03 Inactive
Adds additional config settings even though most are left on default
Results were sliding behind content. For some reason, this solves the problem.
We initially didn't switch this app to our shared CI config because it was transitioning from ElasticSearch to OpenSearch which required running two separate sets of tests. That work has been completed so we can move to our shared CI as planned.
@JPrevost JPrevost temporarily deployed to timdex-pr-723 August 18, 2023 20:24 Inactive
Copy link
Member

@matt-bernhardt matt-bernhardt left a comment

Choose a reason for hiding this comment

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

I've asked some questions in comments throughout this PR, but none what I ask is a blocker for this merging - just me trying to make sure I understand the change.

My only request is for a follow-up ticket (you can assign it to me if you'd like) to look at the color contrast for the search results in the docs resource.

My general response: :shipit:


jobs:
shared:
uses: mitlibraries/.github/.github/workflows/ruby-shared-ci.yml@main
Copy link
Member

Choose a reason for hiding this comment

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

It looks like this shared workflow is essentially the same as the ci.yml file that's being removed in this PR? I'm definitely okay with that.

Copy link
Member Author

Choose a reason for hiding this comment

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

It's very similar but requires a normalized *.lcov filename. The default is the repo name but apps using the shared ci workflow all have to use the same filename so there is a related change in this repo to allow for moving to the share workflow in test_helper.rb as you noted in a comment on that file. So yes, those two changes together make the shared workflow, er, work :)

@@ -10,72 +10,72 @@ GIT
GEM
Copy link
Member

Choose a reason for hiding this comment

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

As you mentioned on Slack, I'm ignoring the changes to the Gemfile.lock as those are regular dep updates.

bin/rails test
```

The following additional manual testing should be performed in the PR build on Heroku.
Copy link
Member

Choose a reason for hiding this comment

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

This structure looks pretty clear to me, and I agree with the recommendations being made here. Thanks for including specific steps to take, and including the same searches to perform - that's very repeatable :-)

# Set the search token separator
# Default: /[\s\-/]+/
# Example: enable support for hyphenated search words
tokenizer_separator: /[\s/]+/
Copy link
Member

Choose a reason for hiding this comment

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

This looks like the only value we're setting in this section that isn't using the default value? Is that correct?

I know we've chosen various paths around this in the past (whether to specify default values explicitly or let them be assigned a value by the default setup) - I don't have a problem with any particular value being set, nor the choice to set them specifically. I just want to put this change in context.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah in this case I felt it was useful to understand what the configuration options were even if we were leaving defaults. I'm also not entirely sure why this particular setting isn't using the default. I suspect the default changed between our initial setup and now upstream.

@@ -63,7 +63,6 @@ body {

.main {
min-height: 100vh;
display: flex;
Copy link
Member

Choose a reason for hiding this comment

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

🙈 that this works (I've confirmed that), but I'm mystified why it does.

At some point I think we should look at the background color applied to that area, as the blue-on-gray I don't think passes a contrast check:

Screenshot 2023-08-21 at 1 42 16 PM

(WebAIM has this at a 1.69:1 ratio right now, assuming this change does what I think it will. I'm fine with doing this in a subsequent PR, though - the contrast problem exists now, so we aren't introducing it here.)

Copy link
Member Author

Choose a reason for hiding this comment

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

Ah interesting. This is a bug between the light and dark modes. Dark mode the contrast is a bit better. I'll do a quick fix for light mode now as I'm worried it may take us a while to actually get back to this.

Copy link
Member Author

Choose a reason for hiding this comment

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

I've increased contrast for this search preview in both light and dark modes. It likely isn't perfect yet but it is better. I am having a bit of a hard time actually getting the contrast report to display for the hidden content so I could use a pairing session at some point to better understand how to do that.

@@ -3,6 +3,7 @@
require 'simplecov'
require 'simplecov-lcov'
SimpleCov::Formatter::LcovFormatter.config.report_with_single_file = true
SimpleCov::Formatter::LcovFormatter.config.lcov_file_name = 'coverage.lcov'
Copy link
Member

Choose a reason for hiding this comment

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

My assumption is that this filename matches the one being defined in the shared workflow?

Increases contrast for both light and dark modes for the search preview
@JPrevost
Copy link
Member Author

@matt-bernhardt I'm merging but would like to chat more about how to test the contrast for the search preview. I think this is an improvement so I don't want to hold it up, but I wasn't able to confirm if it meets our desired target. We likely need some targeted effort to clean up this theme overall and maybe we can use this contrast issue to spark that discussion.

@JPrevost JPrevost merged commit 976fc56 into main Aug 22, 2023
1 check passed
@JPrevost JPrevost deleted the update-docs branch August 22, 2023 13:39
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.

3 participants