Skip to content
This repository has been archived by the owner on Sep 9, 2019. It is now read-only.

Temporarily disable quarterly messages #235

Merged
merged 1 commit into from
Oct 12, 2016

Conversation

jmhooper
Copy link
Member

Changes proposed in this pull request:

  • Comment out quarterly message code in clockwork config
  • Add notice about quarterly messages being disabled to views

This temporarily disables quarterly messages to prevent confusion / miscommunication until we move forward on #234.

The Clockwork config was modified so the code that automatically sends quarterly messages is commented out.

Additionally, notices that quarterly messages are temporarily disabled were added to each quarterly message view and to the sidenav.
@@ -4,7 +4,6 @@
background-color: #d0e9c6;
font-size: 0.8rem;
padding: 0.5em;
@include span-columns(10);
Copy link
Member Author

Choose a reason for hiding this comment

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

It looked to me like I'm safe to change the styles here. I did not see anywhere that the alert class was used in the markup.

Copy link
Contributor

Choose a reason for hiding this comment

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

I think it is used automatically when we have a flash but could be wrong

Copy link
Member Author

Choose a reason for hiding this comment

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

I had the same thought, and when I looked it seemed like those are rendered with the class flash-alert:

<div class="flashes">
  <% user_facing_flashes.each do |key, value| -%>
    <div class="flash-<%= key %>"><%= value %></div>
  <% end -%>
</div>

Ref:

<div class="flash-<%= key %>"><%= value %></div>

The styles for that seems to live in app/assets/stylesheets/components/_flashes.scss.

Ref: https://github.com/18F/dolores-landingham-slack-bot/blob/c88f124da52a741db47c66e4e44d529eab36862c/app/assets/stylesheets/components/_flashes.scss

@jmhooper
Copy link
Member Author

Here's what the quarterly message views look like now:

image

@jessieay
Copy link
Contributor

LGTM! Thanks for doing this. Merging.

@jessieay jessieay merged commit d77f4df into develop Oct 12, 2016
@jessieay jessieay deleted the jmhooper-disable-quarterly-messages branch October 12, 2016 20:52
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants