-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add 'Ask GIS' panel and reorganize SCSS #115
Conversation
Why these changes are being introduced: There are some CSS rules in `timdexui.scss` with a note that they should be moved out of a file if there's a better place to put them. Since then, we've added several partials that might make logical sense to contain to these rules. Relevant ticket(s): N/A. How this addresses that need: This makes the following changes to `timdexui.scss`: * The `#advanced-search-panel legend` rule moves to the `panels` partial. (Though, it would also make sense in the `search` partial.) * The `.top-space` rule moves to the `results` partial, as it is only used for the filter container spacing. * The `.top-attached` and `.top-line` rules are removed. Currently, `.top-line` is only used in the style guide layout, and `.top-attached` appears not to be used anywhere. Side effects of this change: The style guide layout will no longer have a top border.
1b72751
to
0ca9462
Compare
0ca9462
to
244e421
Compare
Pull Request Test Coverage Report for Build 7892605935Details
💛 - Coveralls |
1c423d3
to
bf3985e
Compare
Sanity check request for the reviewer: try running the tests locally and let me know if you see that weird behavior I shared in Slack. It seems no longer to be a problem for me with a fresh copy of the repo, for whatever reason. |
@@ -8,11 +8,5 @@ | |||
</div> | |||
<% end %> | |||
|
|||
<div class="bit askus"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Aren't we losing this default contact logic the way this is implemented?
I wonder if we could continue down the path you started here and have a single shared/ask
partial and within that partial split out the gdt/non-gdt logic?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I think that makes sense. The original 'Ask Us' bit felt kind of placeholder-y, but that's not my assumption to make.
@jazairi tests worked as expected for me locally |
@JPrevost Sorry I missed your review on this. I just pushed a commit that I think addresses your feedback. To minimize complexity, I removed the |
app/views/record/_sidebar.html.erb
Outdated
<a class="btn button-secondary" href="https://libraries.mit.edu/ask/">Ask Us</a> | ||
</p> | ||
</div> | ||
<%= render 'shared/ask_gis' %> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we rename this partial to shared/ask
now that it is handling both use cases?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
D'oh. Yes.
Why these changes are being introduced: We want to provide users multiple paths to request help from the GIS team. Relevant ticket(s): https://mitlibraries.atlassian.net/browse/GDT-129 How this addresses that need: This adds an 'Ask GIS' link to all views except the index: * On the results page with reuslts, in the filter sidebar below the filters. * On the results page with no results, in a sidebar to the right. * On the full record page, in the sidebar below fact panels. There is a minor difference in placement for the results view in smaller viewports, which is accommodated with media queries. Side effects of this change: The new `ask` partial contains both the logic for the existing 'Ask Us' link and the 'Ask GIS' link. In order to minimize the complexity, both use the same markup. This removes the descriptive paragraph for 'Ask Us' and changes the header from 'Ask Us' to 'Need help?', both of which seem like usability improvements.
caf9f7d
to
07a35ba
Compare
The main purpose of this PR is to add 'Ask GIS' links to all views except the index, as specified in GDT-129. This is toggled by a feature flag so it does not appear in other TIMDEX UI apps. (However, a similar feature may be useful for those apps, too.)
Secondarily, this removes some rules from
timdexui.scss
. This is unrelated to the ticket, but I noticed a comment in that file suggesting that those rules should be relocated, and this seemed like a good opportunity to do so. Check the commit message for details, as two rulesets were removed altogether.Developer
our guide and
all issues introduced by these changes have been resolved or opened as new
issues (link to those issues in the Pull Request details above)
Code Reviewer
(not just this pull request message)
Requires database migrations?
NO
Includes new or updated dependencies?
NO