Skip to content

Updates to frontpage styling and content#355

Merged
matt-bernhardt merged 2 commits intomainfrom
uxws-1366-libguide-links
May 12, 2022
Merged

Updates to frontpage styling and content#355
matt-bernhardt merged 2 commits intomainfrom
uxws-1366-libguide-links

Conversation

@matt-bernhardt
Copy link
Copy Markdown
Member

@matt-bernhardt matt-bernhardt commented May 4, 2022

Why are these changes being introduced:

  • The frontpage loads a random collection of libguides to show to the
    user. While those guides have been stable over years, two of them
    recently changed their URLs.
  • Separately, there is a request to remove some lines from the hours and locations sidebar on the frontpage.

Relevant ticket(s):

How does this address that need:

  • This updates the curated set of guides that this theme stores with the
    current URLs.
  • I considered some deeper changes to this feature, including:
    • Widgetizing the area and loading one widget at random
    • Loading guide information from the libguides API
    • Creating a custom post type for guides, similar to how we handle
      expert profiles, and loading those at random using similar JS
      Each of those would involve more engineering work than I think is
      warranted at the moment (given that this is the first change in
      several years). However, if more changes start coming then each of
      these could be more viable than a static HTML document in the theme.
  • The CSS for the hours and locations sidebar has been updated to remove two declarations of a bottom border.

Document any side effects to this change:

  • None, but we are choosing to continue using a hard-to-update feature
    of the theme.

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

Todo:

  • Documentation
  • Stakeholder approval

Requires new or updated plugins, themes, or libraries?

NO

Requires change to deploy process?

NO

@matt-bernhardt matt-bernhardt force-pushed the uxws-1366-libguide-links branch from c23cf15 to 11ee0bd Compare May 5, 2022 17:55
** Why are these changes being introduced:

* The frontpage loads a random collection of libguides to show to the
  user. While those guides have been stable over years, two of them
  recently changed their URLs.

** Relevant ticket(s):

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

** How does this address that need:

* This updates the curated set of guides that this theme stores with the
  current URLs.
* I considered some deeper changes to this feature, including:
  * Widgetizing the area and loading one widget at random
  * Loading guide information from the libguides API
  * Creating a custom post type for guides, similar to how we handle
    expert profiles, and loading those at random using similar JS
  Each of those would involve more engineering work than I think is
  warranted at the moment (given that this is the first change in
  several years). However, if more changes start coming then each of
  these could be more viable than a static HTML document in the theme.

** Document any side effects to this change:

* None, but we are choosing to continue using a hard-to-update feature
  of the theme.
@matt-bernhardt matt-bernhardt force-pushed the uxws-1366-libguide-links branch from 11ee0bd to eb20e80 Compare May 5, 2022 18:01
@matt-bernhardt matt-bernhardt changed the title Update links to two libguides for frontpage Updates to frontpage styling and content May 5, 2022
@matt-bernhardt matt-bernhardt marked this pull request as draft May 5, 2022 19:14
@matt-bernhardt matt-bernhardt marked this pull request as ready for review May 11, 2022 16:29
Copy link
Copy Markdown
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.

While in some ways hard to update, it's also possible this would be a good file to encourage UX to edit themselves as it's HTML and not PHP.

@matt-bernhardt matt-bernhardt merged commit 362253a into main May 12, 2022
@matt-bernhardt matt-bernhardt deleted the uxws-1366-libguide-links branch May 12, 2022 18:10
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