You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Haudenosaunee community has requested that we add a feature to "pin" a story, so that it shows up first on the StoryList. Let's make it happen!
Let's go about this the following way:
Create a new boolean in the Story model called storyPinned.
In the CMS, for a logged in user with editor or admin permissions, add the ability to "pin" a story by showing a grayed out icon-pushpin from font-awesome to the right of a story title in the story dashboard edit view. Upon being clicked, the pushpin will turn to black, and the story will be set to storyPinned = true; any other story that was previously set to storyPinned = true will then be storyPinned = false.
Once a story is "pinned", the story will have an icon-pushpin from font-awesome in the top right of a Story card upon hover over the card.
Upon hovering over the icon-pushpin, the icon should be highlighted with a box-shadow in the same way that the card is highlighted upon hover.
Users with member permissions are able to see that a story is pinned, but can't themselves pin or unpin any stories. (And they do not see any hover box-shadow behavior.)
Once clicked, the Story card should move to the top of the list (top left in the CMS).
Additionally, on the application front end (/home/), the story should show first in the StoryList in the sidebar, regardless of how the story is sorted, and the icon-pushpin should show up in the top right here, too.
However, if either on the CMS side or the application front end, the stories are filtered in such a way that the pinned story does not meet the criteria, it should disappear from the list.
In the CMS, once a story has been pinned, a user with editor or admin permissions can unpin the story by clicking on the icon-pushpin in the top right, which removes it from being pinned and returns it to its normal order in the list of stories.
Default state is that no stories are pinned.
Bonus if the user can somehow see the "pinned" story move to the top of the list in the CMS (e.g. by briefly fading out from current position, and fading in to top level) -- and vice versa if unpinned -- but not necessary for completion.
The text was updated successfully, but these errors were encountered:
The Haudenosaunee community has requested that we add a feature to "pin" a story, so that it shows up first on the StoryList. Let's make it happen!
Let's go about this the following way:
storyPinned
.editor
oradmin
permissions, add the ability to "pin" a story by showing a grayed outicon-pushpin
from font-awesome to the right of a story title in the story dashboard edit view. Upon being clicked, the pushpin will turn to black, and the story will be set tostoryPinned = true
; any other story that was previously set tostoryPinned = true
will then bestoryPinned = false
.icon-pushpin
from font-awesome in the top right of a Story card upon hover over the card.icon-pushpin
, the icon should be highlighted with a box-shadow in the same way that the card is highlighted upon hover.member
permissions are able to see that a story is pinned, but can't themselves pin or unpin any stories. (And they do not see any hover box-shadow behavior.)/home/
), the story should show first in the StoryList in the sidebar, regardless of how the story is sorted, and theicon-pushpin
should show up in the top right here, too.editor
oradmin
permissions can unpin the story by clicking on theicon-pushpin
in the top right, which removes it from being pinned and returns it to its normal order in the list of stories.Bonus if the user can somehow see the "pinned" story move to the top of the list in the CMS (e.g. by briefly fading out from current position, and fading in to top level) -- and vice versa if unpinned -- but not necessary for completion.
The text was updated successfully, but these errors were encountered: