Skip to content

Ap 749: Update the app UI#85

Merged
yzhoubk merged 21 commits into
mainfrom
AP-749
Jul 14, 2026
Merged

Ap 749: Update the app UI#85
yzhoubk merged 21 commits into
mainfrom
AP-749

Conversation

@yzhoubk

@yzhoubk yzhoubk commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

Take and refactor the Blacklight base layout to integrate existing CSS styles, apply additional CSS and layout modifications; Updated Bootstrap partial helper.

Note: Please ignore the added CalNet, Google Tag Manger, and email-related code in this PR.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR refactors the application layout to align with the Blacklight/GeoBlacklight Bootstrap-based UI, introducing new header/footer partials and restoring site-specific styling via updated SCSS customizations.

Changes:

  • Replaces the default application.html.erb layout with a Blacklight-style layout structure (header, main container, footer, modal, skip links).
  • Adds new UI partials for the header navbar, user utility links, footer, and updated home/downloads view fragments.
  • Consolidates legacy commented SCSS into active customizations and updates Bootstrap styling variables.

Reviewed changes

Copilot reviewed 13 out of 13 changed files in this pull request and generated 6 comments.

Show a summary per file
File Description
app/views/shared/_user_util_links.html.erb Adds user login/logout links for the new header navbar.
app/views/shared/_header_navbar.html.erb Introduces a top header navbar with logo + user util collapse.
app/views/shared/_footer.html.erb Adds a new site footer with library links/logos.
app/views/layouts/application.html.erb Rebuilds the main application layout around Blacklight components and new partials.
app/views/catalog/_show_downloads.html.erb Adds a collapsible “Download” UI in the show sidebar + login CTA for restricted items.
app/views/catalog/_home_text.html.erb Adds homepage content blocks (featured facets + map + version).
app/models/user.rb Updates the User model’s Devise/OmniAuth integration and display behavior.
app/assets/stylesheets/legacy_files/_geoblacklight.scss Removes unused legacy commented import.
app/assets/stylesheets/legacy_files/_footer.scss Removes unused legacy commented footer styles.
app/assets/stylesheets/legacy_files/_customizations.scss Removes unused legacy commented customization styles.
app/assets/stylesheets/legacy_files/_blacklight.scss Removes unused legacy commented import.
app/assets/stylesheets/application.bootstrap.scss Sets $link-color and imports Bootstrap/Blacklight/GeoBlacklight + custom styles.
app/assets/stylesheets/_customizations.scss Adds active site-specific layout/header/footer/button customizations.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread app/views/shared/_header_navbar.html.erb Outdated
Comment thread app/views/layouts/application.html.erb
Comment thread app/views/shared/_footer.html.erb Outdated
Comment thread app/views/catalog/_show_downloads.html.erb Outdated
Comment thread app/views/catalog/_show_downloads.html.erb Outdated
Comment on lines +1 to +13
<div class="navbar-right">
<ul class="nav navbar-nav">
<% if signed_in? %>
<li>
<%= link_to t('links.logout'), destroy_user_session_path %>
</li>
<% else %>
<li>
<%= link_to t('links.login'), user_calnet_omniauth_authorize_path, method: 'post'%>
</li>
<% end %>
</ul>
</div>
yzhoubk and others added 2 commits July 10, 2026 18:12
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

@anarchivist anarchivist left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

r+, looks good to me presuming all tests are passing.

Comment thread app/models/user.rb
Comment on lines +20 to +24
# Generates a random email address
def fake_email
"fake-#{SecureRandom.hex[0, 16]}@noemail.com"
end
end

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

did we pull out devise-guest? if so, is this still necessary?

yzhoubk and others added 3 commits July 13, 2026 14:09
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

@jason-raitz jason-raitz left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

r+; great job!

@yzhoubk
yzhoubk merged commit dcafa21 into main Jul 14, 2026
5 checks passed
@yzhoubk
yzhoubk deleted the AP-749 branch July 14, 2026 16:44
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.

4 participants