Skip to content

UXWS template updates#346

Merged
matt-bernhardt merged 5 commits intomainfrom
uxws-template-updates
Oct 27, 2021
Merged

UXWS template updates#346
matt-bernhardt merged 5 commits intomainfrom
uxws-template-updates

Conversation

@matt-bernhardt
Copy link
Copy Markdown
Member

@matt-bernhardt matt-bernhardt commented Oct 21, 2021

This rolls up a number of requested changes to the theme. Details are in the linked tickets.

What does this PR do?

A few sentences describing the overall goals of the pull request's commits.
Why are we making these changes? Is there more work to be done to fully
achieve these goals?

Helpful background context (if appropriate)

How can a reviewer manually see the effects of these changes?

What are the relevant tickets?

Todo:

  • Documentation
  • Stakeholder approval

Requires new or updated plugins, themes, or libraries?

YES - this PR has been developed alongside an update to the MITlib Pull Hours plugin, which provides the widget that will be placed on the newly-added sidebar.

Requires change to deploy process?

NO

@matt-bernhardt matt-bernhardt changed the title Uxws template updates UXWS template updates Oct 22, 2021
** Why are these changes being introduced:

* Rather than adding a content-specific condition to the location
  template, hard-coding the Courtyard hours to the Hayden location page,
  this adds a sidebar to that area of the location template, with a
  default condition of the current content, allowing site builders to
  drop any number of widgets into the location header that will display
  hours information.
* If accepted, this would be matched with a new release of our Pull
  Hours plugin, which would release a slim widget that would be placed
  in this sidebar for the Hayden page.

** Relevant ticket(s):

* https://mitlibraries.atlassian.net/browse/uxws-1281

** How does this address that need:

* Adds a new Location Hours sidebar to the theme, with rendering of the
  sidebar added to the two location content templates (content-location
  and content-location-2021). The templates will continue to render
  their existing content for all location pages until a widget is added,
  making the transition seamless and requiring only two widgets be
  created.

** Document any side effects to this change:

* The theme gets slightly more complex, with another sidebar added. The
  theme already has six sidebars defined, such as the front page hours
  area, the migrated content notice on the 404 template, and the search
  area of the home and search templates.
* The designation of a location being available as a 24x7 study space
  is moved to the bottom of the "sidebar", just above the link to the
  hours grid. When there are no widgets in this sidebar, the display is
  unchanged, appearing after the location's hours information after a
  pipe.
* Some improvements have been made in how this markup is handled. This
  includes treatment of boolean fields from the location record, and
  escaping the URL being output for the Study24 link.
@jazairi jazairi self-assigned this Oct 26, 2021
Copy link
Copy Markdown
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.

This looks good to me, and worth the slight increase in complexity I think. Nice work! :shipit:

@matt-bernhardt matt-bernhardt merged commit c47650a into main Oct 27, 2021
@matt-bernhardt matt-bernhardt deleted the uxws-template-updates branch October 27, 2021 15:06
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.

2 participants