Skip to content

Conversation

@djanelle-mit
Copy link
Contributor

@djanelle-mit djanelle-mit commented Nov 10, 2025

Developer

As part of the visual design for USE UI we decided to have the title of the page reflect the count of results, and have a line of text below it describing what is contained in that set of results. This PR implements that title and description, as well as makes relevant style changes to layout and typography to accommodate this.

This work includes:

  • Adding new static description text below results count title
  • Overriding theme gem styles for existing elements
  • Removing logic to the old site title shared between USE and GEO
  • Removing logic and partial for the "you searched for" text
  • Fixing typography color bugs (including overriding some theme gem rules)
  • Adjusting spacing between page containers, title, description, and suggested resources when present.

This work does NOT include:

  • Dynamically updating the results description to match the selected tab. I'll create a ticket for that work.
Accessibility
  • ANDI or WAVE has been run in accordance to our guide.
  • This PR contains no changes to the view layer.
  • New issues flagged by ANDI or WAVE have been resolved.
  • New issues flagged by ANDI or WAVE have been ticketed (link in the Pull Request details above).
  • No new accessibility issues have been flagged.
New ENV
  • All new ENV is documented in README.
  • All new ENV has been added to Heroku Pipeline, Staging and Prod.
  • ENV has not changed.
Approval beyond code review
  • UXWS/stakeholder approval has been confirmed.
  • UXWS/stakeholder review will be completed retroactively.
  • UXWS/stakeholder review is not needed.
Additional context needed to review

E.g., if the PR includes updated dependencies and/or data
migration, or how to confirm the feature is working.

Code Reviewer

Code
  • I have confirmed that the code works as intended.
  • Any CodeClimate issues have been fixed or confirmed as
    added technical debt.
Documentation
  • The commit message is clear and follows our guidelines
    (not just this pull request message).
  • The documentation has been updated or is unnecessary.
  • New dependencies are appropriate or there were no changes.
Testing
  • There are appropriate tests covering any new functionality.
  • No additional test coverage is required.

@mitlib mitlib temporarily deployed to timdex-ui-pi-use-61-res-bwmiie November 10, 2025 19:42 Inactive
@djanelle-mit djanelle-mit requested review from JPrevost, jazairi and matt-bernhardt and removed request for jazairi and matt-bernhardt November 10, 2025 20:10
@djanelle-mit
Copy link
Contributor Author

djanelle-mit commented Nov 10, 2025

Note for reviewer: It looks like the failing test is this one, but would love confirmation on that and tips on how to proceed, testing like this is completely new to me.

test 'results uses simplified search summary for USE app' do
mock_primo_search_success

get '/results?q=test'
assert_response :success
assert_select 'aside.search-summary', count: 1
assert_select 'aside.search-summary', text: /You searched for: test/

end

search_controller_test line 621

@JPrevost JPrevost self-assigned this Nov 12, 2025
@JPrevost JPrevost temporarily deployed to timdex-ui-pi-use-61-res-bwmiie November 12, 2025 14:53 Inactive
@coveralls
Copy link

Pull Request Test Coverage Report for Build 19301578737

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 97.865%

Totals Coverage Status
Change from base Build 19241636129: 0.0%
Covered Lines: 871
Relevant Lines: 890

💛 - Coveralls

Copy link
Member

@JPrevost JPrevost left a comment

Choose a reason for hiding this comment

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

When you open a ticket to update the text based on the selected tab, can you add to the success criteria that we add tests? I updated the existing tests to look for the "all tab" text as that is currently hard coded so we should either remove that or add tests that ensure we end in the correct state for each tab as expected when implemented.

@djanelle-mit djanelle-mit merged commit 3f1acf8 into main Nov 12, 2025
5 checks passed
@djanelle-mit djanelle-mit deleted the use-61-results-title branch November 12, 2025 15:23
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