Skip to content

Conversation

@djanelle-mit
Copy link
Contributor

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

Developer

This work implements the page chrome UI elements around the results list. This includes:

  • Add a sidebar and adjust the layout styling to use flexbox instead of the theme gem's grid system.
  • Add callout items to the sidebar
  • Add callout items below the results in the results column.
  • Style pagination

This work does not include:

  • Adding icons to sidebar and callout boxes. This work will be done in another ticket.

Note for reviewer:
This work required some structural changes in the results view. Things appear to be working correctly but double-checking the rails logic in this partial would be wise.

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-pintiz November 17, 2025 14:47 Inactive
@mitlib mitlib temporarily deployed to timdex-ui-pi-use-61-res-pintiz November 17, 2025 15:30 Inactive
@djanelle-mit djanelle-mit changed the title WIP - Implement chrome around the results list Implement page chrome around the results list Nov 17, 2025
@djanelle-mit djanelle-mit changed the title Implement page chrome around the results list USE-61: Implement page chrome around the results list Nov 17, 2025
@djanelle-mit djanelle-mit requested review from JPrevost, jazairi and matt-bernhardt and removed request for jazairi and matt-bernhardt November 17, 2025 15:54
@mitlib mitlib temporarily deployed to timdex-ui-pi-use-61-res-pintiz November 17, 2025 16:20 Inactive
@JPrevost JPrevost self-assigned this Nov 17, 2025
<%= next_url(@enhanced_query) %>
</div>
</nav>
<div id="pagination">
Copy link
Member

Choose a reason for hiding this comment

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

Non-blocking: On wide screens it feels a bit odd to have the pagination not align with the results and instead align with the fill width content that includes the right side callouts. Since the right side callouts are often not-visible at the same time as the pagination it looks uneven when the intent seems to be to justified pagination.

Copy link
Member

Choose a reason for hiding this comment

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

Just caught up on Slack and you noted there that this is known.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This irks me, but I think it's a practical starting point for the short term until we have the stepped pagination ("Show X more")

@@ -0,0 +1,18 @@
<div id="callout-wrapper">
Copy link
Member

Choose a reason for hiding this comment

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

Non-blocking: This appears to be using 4 spaces instead of two whereas most of our views are using 2 spaces for indents.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated my VS code to default to tabs with 2 spaces. Those were net new files so they used the 4 space default.

@@ -0,0 +1,18 @@
<aside id="results-sidebar">
Copy link
Member

Choose a reason for hiding this comment

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

Non-blocking: This appears to be using 4 spaces instead of two whereas most of our views are using 2 spaces for indents.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated my VS code to default to tabs with 2 spaces. Those were net new files so they used the 4 space default.

<div class="no-results">
<p class="hd-2">No results found for your search</p>
</div>
</main>
Copy link
Member

Choose a reason for hiding this comment

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

This tag ends up closed twice in certain scenarios I believe.

I'd suggest realigning the if/elsif statements so it is easier to keep track of them. I suspect the line 45 closing main might need to move into a condition? Not sure though.

Copy link
Member

Choose a reason for hiding this comment

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

If it isn't clear what I'm suggesting, I'd be happy to put in a commit and hop on a call to explain.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I pushed a new version that reorganizes the markup a bit. I checked both results and no results on local and the deployed version and things look good.

Is this what you had in mind? I removed all of the duplicate conditionals and things are easier to read.

I also brought the #results-layout-wrapper into the No Results version to keep the nested styles working as intended. This will help us when it's time to lay out whatever we decide here.

Copy link
Member

Choose a reason for hiding this comment

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

Yes, all the tags close as expected now (I think!). 👍🏻

@mitlib mitlib temporarily deployed to timdex-ui-pi-use-61-res-pintiz November 17, 2025 17:34 Inactive
@coveralls
Copy link

coveralls commented Nov 17, 2025

Pull Request Test Coverage Report for Build 19438742667

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.992%

Totals Coverage Status
Change from base Build 19372698818: 0.0%
Covered Lines: 927
Relevant Lines: 946

💛 - Coveralls

@djanelle-mit djanelle-mit merged commit 77970ca into main Nov 17, 2025
5 checks passed
@djanelle-mit djanelle-mit deleted the use-61-results-chrome branch November 17, 2025 19:24
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